Hi,
i have a strange problem. I am using AWO Coupons 3.6.0.7, VirtueMart 4.0.6, System - VP One Page Checkout 7.10.2 , Joomla 3.10.11, PHP 8.0.
i have a strange problem. I am using AWO Coupons 3.6.0.7, VirtueMart 4.0.6, System - VP One Page Checkout 7.10.2 , Joomla 3.10.11, PHP 8.0.
If I use a coupon in the checkout process, then everything is
discounted correctly. But when I complete the purchase, it can happen
that the coupon is not sent with it. The original price will then
appear again in the completed order. I haven't found a pattern yet.
I contacted the developer of System - VP One Page Checkout but they say it must have something to do with AwoCoupons.
I saw something in my Error-Log, but i dont know if thats the problem:
1. Undefined array key "billSub" in /xxx/administrator/components/com_awocoupon/helper/estore/virtuemart/class-awocoupon-helper-estore-virtuemart-discount.php on line 1017
2. Undefined array key "billTaxAmount" in /xxx/administrator/components/com_awocoupon/helper/estore/virtuemart/class-awocoupon-helper-estore-virtuemart-discount.php on line 1018
2. Undefined array key "billTaxAmount" in /xxx/administrator/components/com_awocoupon/helper/estore/virtuemart/class-awocoupon-helper-estore-virtuemart-discount.php on line 1018
In addition there was also an PHP 8 issue in /xxx/administrator/components/com_awocoupon/helper/estore/virtuemart/class-awocoupon-helper-estore-virtuemart-discount.php in the public function convertWeightUnit (line: 2243):
i had to change:
$value = str_replace (',', '.', $value);
if ($from === $to) {
return $value;
}
$g = (float)$value;
TO:
$value = str_replace (',', '.', $value);
if ($from === $to) {
return $value;
}
if($value == ''){
$value = 0;
}
$g = (float)$value;
i had to change:
$value = str_replace (',', '.', $value);
if ($from === $to) {
return $value;
}
$g = (float)$value;
TO:
$value = str_replace (',', '.', $value);
if ($from === $to) {
return $value;
}
if($value == ''){
$value = 0;
}
$g = (float)$value;
I think there are still some issues with php 8.
Any
idea?
Many thanks in advance!
Dirk