Post by nrno007 » Tue Jan 09, 2024 3:28 am

Hi all,

I'm using OC v 4.0.2.3
I found some issues with Gift certificates:
1. It's not possible to remove it from shopping cart. Receiving message '' Voucher could not be found!'' or ''error_voucher''

2. I made a backup of the files and DB, removed all and after few days returned back.
Now I can't terminate the purchase . I'm receiving message in error log:'' PHP Warning: Trying to access array offset on value of type null in /home/xxxxxxx/public_html/catalog/controller/mail/order.php on line 151

3. Moreover, It's not some bug, but from the other point of view:
There's no possibilities to check credit (rest) balance so the receiver can monitor it to plan future purchase. Big miss !!!

Thank you.
Nino

Newbie

Posts

Joined
Thu Aug 24, 2023 8:45 pm

Post by Johnathan » Tue Jan 09, 2024 5:30 am

1. I reported this bug and it will be fixed in the next OpenCart release. You can find my fixes here:

https://github.com/opencart/opencart/issues/13090

2. This has also been reported and fixed. I can't find the Github link but here's the fix:

------------------------------------------------------------------------------
IN:
/catalog/controller/mail/order.php

REPLACE:
$data['shipping_method'] = $order_info['shipping_method']['name'];

WITH:
$data['shipping_method'] = (!empty($order_info['shipping_method']['name'])) ? $order_info['shipping_method']['name'] : '';
------------------------------------------------------------------------------

3. I agree this should be added. There may be an extension in the opencart.com marketplace (https://www.opencart.com/index.php?rout ... /extension) that fixes this, otherwise you can report it on Github:

https://github.com/opencart/opencart/issues

Image Image Image Image Image


User avatar
Administrator

Posts

Joined
Fri Dec 18, 2009 3:08 am


Post by nrno007 » Tue Jan 09, 2024 7:31 am

Thank you so much.
Obviously, I don't like extensions (even payed) because in most of the cases they are not updated. :(
I found something but its for V2 and V3...

Newbie

Posts

Joined
Thu Aug 24, 2023 8:45 pm
Who is online

Users browsing this forum: No registered users and 2 guests