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

#   User points and currency changer

##

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

Less More

- Posts: 41
- Thank you received: 2
-
-

7 years 9 months ago [\#303865](#303865) by [frik](/forum/user/52036-frik "View frik's Profile")  *[User points and currency changer](/forum/29-payment-methods/896920-user-points-and-currency-changer#303865 "-- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.1.26 -- Browser(s) name and version -- : Chrome  Hi There!  We have user points plugin and 3 different currency activated (EUR, RON, HUF)  After first purchase user gets his points. That's work correctly. But for the next purchase: when user want to use points but total amount is less then the user points all the points gets used. How to configure properly?  And a second question: user points are calculating from gross. Is there a way to calculate from net? So there's no 0 total amount bill.  Thanks in advance")* was created by *[frik](/forum/user/52036-frik "View frik's Profile")*

-- HikaShop version -- : 4.0.2
-- Joomla version -- : 3.9.2
-- PHP version -- : 7.1.26
-- Browser(s) name and version -- : Chrome

Hi There!

We have user points plugin and 3 different currency activated (EUR, RON, HUF)

After first purchase user gets his points. That's work correctly. But for the next purchase: when user want to use points but total amount is less then the user points all the points gets used. How to configure properly?

And a second question: user points are calculating from gross. Is there a way to calculate from net? So there's no 0 total amount bill.

Thanks in advance

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

- **[nicolas](/forum/user/63-nicolas "View nicolas's Profile")**
- [![nicolas's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar63.png?1793428657)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86593
- Thank you received: 14334
-
-

7 years 9 months ago [\#303885](#303885) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[User points and currency changer](/forum/29-payment-methods/896920-user-points-and-currency-changer#303885 "-- HikaShop version -- : 4.0.2 -- Joomla version -- : 3.9.2 -- PHP version -- : 7.1.26 -- Browser(s) name and version -- : Chrome  Hi There!  We have user points plugin and 3 different currency activated (EUR, RON, HUF)  After first purchase user gets his points. That's work correctly. But for the next purchase: when user want to use points but total amount is less then the user points all the points gets used. How to configure properly?  And a second question: user points are calculating from gross. Is there a way to calculate from net? So there's no 0 total amount bill.  Thanks in advance")*

Hi,

1. Could you provide a screenshot of the settings of the user points plugin and the user points payment plugin in the menus System&gt;Plugins and System&gt;Payment methods ?
Could you also provide precise instructions to reproduce the problem on your website (with a test user account) ?

2. There is no option to do that. You would have to modify the code: Code:

if(isset($order-&gt;order_subtotal) &amp;&amp; isset($order-&gt;order_shipping_price)) { if($this-&gt;plugin_params-&gt;allowshipping == 1) { $final_price = @$order-&gt;order_subtotal + $order-&gt;order_shipping_price; } else { $final_price = @$order-&gt;order_subtotal; } } else if(empty($order-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax)) { if($this-&gt;plugin_params-&gt;allowshipping == 1) { $final_price = @$order-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax; if(!empty($order-&gt;additional['userpoints']-&gt;price_value_with_tax)){ $final_price -= $order-&gt;additional['userpoints']-&gt;price_value_with_tax; } }else{ $final_price = @$order-&gt;total-&gt;prices[0]-&gt;price_value_with_tax; } } else { if($this-&gt;plugin_params-&gt;allowshipping == 1) { $final_price = @$order-&gt;cart-&gt;full_total-&gt;prices[0]-&gt;price_value_with_tax; if(!empty($order-&gt;cart-&gt;additional['userpoints']-&gt;price_value_with_tax)){ $final_price -= $order-&gt;cart-&gt;additional['userpoints']-&gt;price_value_with_tax; } } else { $final_price = @$order-&gt;cart-&gt;total-&gt;prices[0]-&gt;price_value_with_tax; } }

in the file plugins/hikashoppayment/userpoints/userpoints.php in order to use the price_value instead of price_value_with_tax.
Note that in doing so, you'll loose the change after each update and thus you would have to reapply the change... unless you make a copy of the plugin but it's not that easy as it's linked to the other user points plugin in plugins/hikashop/userpoints/userpoints.php and making a copy of plugins require coding skills.
So if you're not a developer it's best to have a developer work on that for you.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84OTY5MjAtdXNlci1wb2ludHMtYW5kLWN1cnJlbmN5LWNoYW5nZXI/dG1wbD1tYXJrZG93bg==) 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.048 seconds

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