- Posts: 53
- Thank you received: 2
Payment with points is broken in 2.4
11 years 6 months ago - 11 years 6 months ago #194317
by otx
Payment with points is broken in 2.4 was created by otx
-- HikaShop version -- : 2.4
-- Joomla version -- : 3.4
-- PHP version -- : 5.5.9
-- Browser(s) name and version -- : Firefox 36
Hello,
I want to upgrade our shop to 2.4 to use the newly implemented caching, but unfortunately there is some strange problem with the pay with points plugin. If the user has more points than necessary to pay for the current order, then the plugin tries to substract again a different sum after selecting the "Yes" option. I have attached 3 screenshots.
On the first one, when the customer doesn't have enough points to pay the total, the plugin works as expected. It substracts some value from the order and displays the result.
On the second one the customer has more points than necessary, and he has the option to pay with points for the current order ( he can not pay for the shipment ). The calculations are correct until this point.
On the third one however, after selecting the "Yes" option the plugin displays a different scenario for the same order, and also miscalculates the final total. It looks like the plugin adds the discount to the order and then offers a different amount of points to use. In our example before selecting the "Yes" option we had 940 points to use for 47 Ron, and after selecting the "Yes" option we have 1500 points for 75 Ron....
Any idea what's happening?
Regards,
Dezso
-- Joomla version -- : 3.4
-- PHP version -- : 5.5.9
-- Browser(s) name and version -- : Firefox 36
Hello,
I want to upgrade our shop to 2.4 to use the newly implemented caching, but unfortunately there is some strange problem with the pay with points plugin. If the user has more points than necessary to pay for the current order, then the plugin tries to substract again a different sum after selecting the "Yes" option. I have attached 3 screenshots.
On the first one, when the customer doesn't have enough points to pay the total, the plugin works as expected. It substracts some value from the order and displays the result.
On the second one the customer has more points than necessary, and he has the option to pay with points for the current order ( he can not pay for the shipment ). The calculations are correct until this point.
On the third one however, after selecting the "Yes" option the plugin displays a different scenario for the same order, and also miscalculates the final total. It looks like the plugin adds the discount to the order and then offers a different amount of points to use. In our example before selecting the "Yes" option we had 940 points to use for 47 Ron, and after selecting the "Yes" option we have 1500 points for 75 Ron....
Any idea what's happening?
Regards,
Dezso
Last edit: 11 years 6 months ago by otx.
Please Log in or Create an account to join the conversation.
11 years 6 months ago #194333
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Payment with points is broken in 2.4
Hi,
Would it be possible to have more details about your "user points" payment plugin configuration ?
Regards,
Would it be possible to have more details about your "user points" payment plugin configuration ?
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Please Log in or Create an account to join the conversation.
11 years 6 months ago - 11 years 6 months ago #194457
by otx
Replied by otx on topic Payment with points is broken in 2.4
Last edit: 11 years 6 months ago by otx.
Please Log in or Create an account to join the conversation.
11 years 6 months ago #194548
by Jerome
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
Replied by Jerome on topic Payment with points is broken in 2.4
Hi,
I'm performing some new tests and I can't reproduce your exact issue but I found a potential issue which could be linked.
Can you please edit the plugin "plugins/hikashoppayment/userpoints/userpoints.php" and replace
By (to comment it)
So the check of the additional userpoints won't be include in the processing of the final price.
It is the main modification made in the plugin between the two releases and even if the patch solve some things for some configurations, it looks like it requires a different test to just be use on specific cases.
Regards,
I'm performing some new tests and I can't reproduce your exact issue but I found a potential issue which could be linked.
Can you please edit the plugin "plugins/hikashoppayment/userpoints/userpoints.php" and replace
Code:
if(isset($order->additional['userpoints']) && $additional)
$final_price -= $order->additional['userpoints']->price_value_with_tax;
Code:
//if(isset($order->additional['userpoints']) && $additional)
// $final_price -= $order->additional['userpoints']->price_value_with_tax;
It is the main modification made in the plugin between the two releases and even if the patch solve some things for some configurations, it looks like it requires a different test to just be use on specific cases.
Regards,
Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.
The following user(s) said Thank You: otx
Please Log in or Create an account to join the conversation.
11 years 6 months ago #194608
by otx
Replied by otx on topic Payment with points is broken in 2.4
Dear Jerome,
I tried your solution, and it does work. Thank you for your quick intervention!
Though there are almost all the time some issues with the point system when we want to upgrade our shop, is good to know that the support is ALWAYS on top to fix this as quick as possible. Thank you for your care and support toward us!
Regards,
Dezso
I tried your solution, and it does work. Thank you for your quick intervention!
Though there are almost all the time some issues with the point system when we want to upgrade our shop, is good to know that the support is ALWAYS on top to fix this as quick as possible. Thank you for your care and support toward us!
Regards,
Dezso
Please Log in or Create an account to join the conversation.
Time to create page: 0.203 seconds