Can anyone confirm this module is working with ZC 1.5.7 and OPC?
Any changes required?
thank you
Can anyone confirm this module is working with ZC 1.5.7 and OPC?
Any changes required?
thank you
Hi, I've run into a 500 fatal error on my site. I got this in my error log
I found this code around line 387PHP Code:
PHP Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in /website/url/admin/includes/functions/extra_functions/reward_points_functions.php on line 387
PHP Code:
{
if($value==0)
return TEXT_NO_NEW_ACCOUNT_AWARD;
else
if($value>0)
return abs((int)$value).TEXT_NEW_ACCOUNT_EARNED_AWARD;
else
return abs((int)$value).TEXT_NEW_ACCOUNT_PENDING_AWARD;
}
replace the file /includes/functions/extra_functions/reward_points_functions.php
with attached: (do not mix the 2 files up)
that got my front-end working
cross fingers, so far other then the 2 files above, it all seems to be work as expected.
Also i did not do the admin order total file as it didn't seem like anything really happening, it was not showing point's so i left it.
ToDo - Need to see if it is showing the points used on a order and on the invoice.
Last edited by OJ_SIMON; 1 Feb 2024 at 08:00 AM.
This software has been abandoned for some time.
Unless you have (or are) a developer, you might want to consider migrating to Cindy's solution to this problem, Customer Loyalty Discount.
https://www.zen-cart.com/downloads.php?do=file&id=1917
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
OK. If you're skilled enough to take over support, that would be great; please upload your fixes periodically (monthly not daily) to the Plugin Library so others can benefit. Thanks.
That Software Guy. My Store: Zen Cart Support
Available for hire - See my ad in Services
Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
Do you benefit from Zen Cart? Then please support the project.
Bookmarks