[Skip to main content](#vessel-content)

#   Payment with points is broken in 2.4

##

- **[otx](/forum/user/14566-otx "View otx's Profile")**
- [![otx's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14566-otx "View otx's Profile") Topic Author
- [ Offline](/forum/user/14566-otx)

Less More

- Posts: 53
- Thank you received: 2
-
-

11 years 7 months ago -  11 years 7 months ago [\#194317](#194317) by [otx](/forum/user/14566-otx "View otx's Profile")  *[Payment with points is broken in 2.4](/forum/29-payment-methods/875616-payment-with-points-is-broken-in-2-4#194317 "-- 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 &quot;Yes&quot; 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 &quot;Yes&quot; 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 &quot;Yes&quot; option we had 940 points to use for 47 Ron, and after selecting the &quot;Yes&quot; option we have 1500 points for 75 Ron....  Any idea what's happening?  Regards, Dezso")* was created by *[otx](/forum/user/14566-otx "View otx's Profile")*

-- 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.

[ ![Screenshot&#95;1.png](/forum/attachment/23004) ](/forum/attachment/23004 "Screenshot&#95;1.png")

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.

[ ![Screenshot&#95;2.png](/forum/attachment/23005) ](/forum/attachment/23005 "Screenshot&#95;2.png")

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....

[ ![Screenshot&#95;3.png](/forum/attachment/23006) ](/forum/attachment/23006 "Screenshot&#95;3.png")

Any idea what's happening?

Regards,
Dezso

- [ ![Screenshot&#95;1.png](/forum/attachment/23004) ](/forum/attachment/23004 "Screenshot&#95;1.png") [ ](/forum/attachment/23004?download=1 "Screenshot&#95;1.png")
- [ ![Screenshot&#95;2.png](/forum/attachment/23005) ](/forum/attachment/23005 "Screenshot&#95;2.png") [ ](/forum/attachment/23005?download=1 "Screenshot&#95;2.png")
- [ ![Screenshot&#95;3.png](/forum/attachment/23006) ](/forum/attachment/23006 "Screenshot&#95;3.png") [ ](/forum/attachment/23006?download=1 "Screenshot&#95;3.png")

Last edit: 11 years 7 months ago by [otx](/forum/user/14566-otx "View otx's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84NzU2MTYtcGF5bWVudC13aXRoLXBvaW50cy1pcy1icm9rZW4taW4tMi00P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 7 months ago [\#194333](#194333) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Payment with points is broken in 2.4](/forum/29-payment-methods/875616-payment-with-points-is-broken-in-2-4#194333 "-- 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 &quot;Yes&quot; 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 &quot;Yes&quot; 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 &quot;Yes&quot; option we had 940 points to use for 47 Ron, and after selecting the &quot;Yes&quot; option we have 1500 points for 75 Ron....  Any idea what's happening?  Regards, Dezso")*

Hi,

Would it be possible to have more details about your "user points" payment plugin configuration ?

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84NzU2MTYtcGF5bWVudC13aXRoLXBvaW50cy1pcy1icm9rZW4taW4tMi00P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[otx](/forum/user/14566-otx "View otx's Profile")**
- [![otx's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14566-otx "View otx's Profile") Topic Author
- [ Offline](/forum/user/14566-otx)

Less More

- Posts: 53
- Thank you received: 2
-
-

11 years 7 months ago -  11 years 7 months ago [\#194457](#194457) by [otx](/forum/user/14566-otx "View otx's Profile")  Replied by *[otx](/forum/user/14566-otx "View otx's Profile")* on topic *[Payment with points is broken in 2.4](/forum/29-payment-methods/875616-payment-with-points-is-broken-in-2-4#194457 "-- 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 &quot;Yes&quot; 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 &quot;Yes&quot; 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 &quot;Yes&quot; option we had 940 points to use for 47 Ron, and after selecting the &quot;Yes&quot; option we have 1500 points for 75 Ron....  Any idea what's happening?  Regards, Dezso")*

Dear Jerome,

Thank you for your reply. Here they are:

[ ![Screenshot&#95;4.png](/forum/attachment/23057) ](/forum/attachment/23057 "Screenshot&#95;4.png")

[ ![Screenshot&#95;5.png](/forum/attachment/23058) ](/forum/attachment/23058 "Screenshot&#95;5.png")

[ ![Screenshot&#95;6.png](/forum/attachment/23059) ](/forum/attachment/23059 "Screenshot&#95;6.png")

We have a separate domain for testing prior to upgrade the production site, let me know if you need access to this.

Please let me know if you have a solution, so we can start with the upgrade process. Thank you!

Regards,
Dezso

- [ ![Screenshot&#95;4.png](/forum/attachment/23057) ](/forum/attachment/23057 "Screenshot&#95;4.png") [ ](/forum/attachment/23057?download=1 "Screenshot&#95;4.png")
- [ ![Screenshot&#95;5.png](/forum/attachment/23058) ](/forum/attachment/23058 "Screenshot&#95;5.png") [ ](/forum/attachment/23058?download=1 "Screenshot&#95;5.png")
- [ ![Screenshot&#95;6.png](/forum/attachment/23059) ](/forum/attachment/23059 "Screenshot&#95;6.png") [ ](/forum/attachment/23059?download=1 "Screenshot&#95;6.png")

Last edit: 11 years 7 months ago by [otx](/forum/user/14566-otx "View otx's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84NzU2MTYtcGF5bWVudC13aXRoLXBvaW50cy1pcy1icm9rZW4taW4tMi00P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26394
- Thank you received: 4078
-
- [](http://obsi.dev)
-

11 years 7 months ago [\#194548](#194548) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Payment with points is broken in 2.4](/forum/29-payment-methods/875616-payment-with-points-is-broken-in-2-4#194548 "-- 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 &quot;Yes&quot; 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 &quot;Yes&quot; 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 &quot;Yes&quot; option we had 940 points to use for 47 Ron, and after selecting the &quot;Yes&quot; option we have 1500 points for 75 Ron....  Any idea what's happening?  Regards, Dezso")*

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 Code:

if(isset($order-&gt;additional['userpoints']) &amp;&amp; $additional) $final_price -= $order-&gt;additional['userpoints']-&gt;price_value_with_tax;

By (to comment it) Code:

//if(isset($order-&gt;additional['userpoints']) &amp;&amp; $additional) // $final_price -= $order-&gt;additional['userpoints']-&gt;price_value_with_tax;

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,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

The following user(s) said Thank You: [otx](/forum/user/14566-otx "View otx's Profile")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84NzU2MTYtcGF5bWVudC13aXRoLXBvaW50cy1pcy1icm9rZW4taW4tMi00P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

- **[otx](/forum/user/14566-otx "View otx's Profile")**
- [![otx's Avatar](https://www.hikashop.com/media/kunena/core/svg/person.svg)](/forum/user/14566-otx "View otx's Profile") Topic Author
- [ Offline](/forum/user/14566-otx)

Less More

- Posts: 53
- Thank you received: 2
-
-

11 years 7 months ago [\#194608](#194608) by [otx](/forum/user/14566-otx "View otx's Profile")  Replied by *[otx](/forum/user/14566-otx "View otx's Profile")* on topic *[Payment with points is broken in 2.4](/forum/29-payment-methods/875616-payment-with-points-is-broken-in-2-4#194608 "-- 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 &quot;Yes&quot; 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 &quot;Yes&quot; 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 &quot;Yes&quot; option we had 940 points to use for 47 Ron, and after selecting the &quot;Yes&quot; option we have 1500 points for 75 Ron....  Any idea what's happening?  Regards, Dezso")*

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

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtL3BheW1lbnQtbWV0aG9kcy84NzU2MTYtcGF5bWVudC13aXRoLXBvaW50cy1pcy1icm9rZW4taW4tMi00P3RtcGw9bWFya2Rvd24=) or [Create an account](/component/users/registration?Itemid=101) to join the conversation.

Board Categories HikaShop- Install &amp; Update- Product &amp; Category Display- Content Creation- Sales and Orders- - Orders management- - Reports &amp; Statistics- Customers- Checkout- Payment Methods- Shipping Methods- Import &amp; Export (CSV, XLS…)- Specific Features- - Affilation- - Taxes- - Wishlist- - Vote- - Carousel &amp; Slider- - Mass Actions- - Filters &amp; Search- - Discount &amp; Coupon- - Feature Request- Integrations- Showcase- General Talk about HikaShop- Development- - HikaShop 3.0 Beta- Translation- Commercial Jobs HikaShop Components- HikaMarket- - Market: Feature requests- - Market: How to?- - Market: Bug Report- HikaSerial- - General talk about HikaSerial- - Serial: Bug Report- - Serial: How to?- - Support en Français de HikaSerial (French Support)- - HikaSubscription- HikaAuction- - Auction: Feature requests- - Auction: How to?- - Auction: Bug report Hikashop around the world- Support en Français (French Support)- Russian- - FAQ. Курс выживания с Hikashop. Частые вопросы и о- - Расширения Hikashop- - Наши сайты на Hikashop- 日本語版サポート(Japanese Support)- Thai- German Archives- Bug Report- How to?

[](/forum/topics/feed/mode-topics?format=feed&type=rss)

Time to create page: 0.239 seconds

[Powered by](/forum/credits) [Kunena Forum](https://www.kunena.org)

[](#top)
