Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread
Can anyone confirm this module is working with ZC 1.5.7 and OPC?
Any changes required?
thank you
Re: Reward Points Full Suite v2.5 (for ZC v1.5x) Support Thread
Hi, I've run into a 500 fatal error on my site. I got this in my error log
PHP 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
I found this code around 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;
}
Re: Reward Points Full Suite for 1.56c...
Quote:
Originally Posted by
twitchtoo
These changes will be considered or included in the new version when it is released publicly. Thanks!
Any plans on updating this to 1.5.8? I'm slowly working through it but php is not my strongest subject. thanks
Re: Reward Points Full Suite for 1.56c...
Quote:
Originally Posted by
southshorepizza
Any plans on updating this to 1.5.8? I'm slowly working through it but php is not my strongest subject. thanks
how much did you get done?
1 Attachment(s)
Re: Reward Points Full Suite for 1.56c...
Quote:
Originally Posted by
mito0930
Hi, I've run into a 500 fatal error on my site. I got this in my error log
PHP 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
I found this code around 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 /your-admin/includes/functions/extra_functions/reward_points_functions.php
with attached:
that got my admin working but front end has a error but I'll post the fixe when I have one.
1 Attachment(s)
Re: Reward Points Full Suite for 1.56c...
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
Re: Reward Points Full Suite for 1.56c...
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.
Re: Reward Points Full Suite for 1.56c...
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
Re: Reward Points Full Suite for 1.56c...
Quote:
Originally Posted by
swguy
I'll carry on tying to fix this one as customer loyalty discount is not what I'm looking for I need a points system a totally different type of system
Re: Reward Points Full Suite for 1.56c...
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.