izar74:
Hi, Edit order has an issue with Reward Point full 2.1b
It works great until You try to save an adited order. After hitting update You got a blank page. If You go back and check you will see that the Total of the order had not changed even if the single quantity of a product had been changed.
here the error code:
[08-Nov-2013 11:13:02 UTC] PHP Fatal error: Call to undefined function GetRewardPoints() in C:\wamp\www\negozio152\includes\modules\order_total\ot_reward_points_display.php on line 40
[08-Nov-2013 11:13:02 UTC] PHP Stack trace:
[08-Nov-2013 11:13:02 UTC] PHP 1. {main}() C:\wamp\www\negozio152\adzenmin\edit_orders.php:0
[08-Nov-2013 11:13:02 UTC] PHP 2. eo_update_database_order_totals() C:\wamp\www\negozio152\adzenmin\edit_orders.php:317
[08-Nov-2013 11:13:02 UTC] PHP 3. order_total->process() C:\wamp\www\negozio152\adzenmin\includes\functions\extra_functions\edit_orders_functions.php:1090
[08-Nov-2013 11:13:02 UTC] PHP 4. ot_reward_points_display->process() C:\wamp\www\negozio152\includes\classes\order_total.php:72
I'm using:
Edit Orders 4.1.2
Reward Point full 2.1b
MySQL 5.5.24
PHP/5.4.3
Zencart 1.51
If someone figure it out please help, meanwhile I'll look for a solution
swguy:
I could have sworn I posted the fix for this but I don't see it right now after a quick search. But here it is:
For people running Rewards Points and Edit Orders, you must copy the file
includes/functions/extra_functions/reward_points_functions.php
to
admin/includes/functions/extra_functions/reward_points_functions.php
Also, although this was an example of a local installation, the actual name of the admin directory should be obfuscted. My suggestion would be to always list as admin if displayed in a forum.
Also to aid in trouble shooting problems similar to this, a search of files for the function names like the one that was identified as "missing" would have shown that the function was in the store's include directory and not in the admin directory's includes directory leading to the fix posted by swguy.