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

#   Rounding and decimal in the component AlphaUserPoi

##

- **[unlockalicante](/forum/user/30721-unlockalicante "View unlockalicante's Profile")**
- [![unlockalicante's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30721.jpg)](/forum/user/30721-unlockalicante "View unlockalicante's Profile") Topic Author
- [ Offline](/forum/user/30721-unlockalicante)

Less More

- Posts: 8
- Thank you received: 0
-
-
- [](http://www.apli.movil-plus.com)
-

12 years 9 months ago -  12 years 9 months ago [\#140191](#140191) by [unlockalicante](/forum/user/30721-unlockalicante "View unlockalicante's Profile")  *[Rounding and decimal in the component AlphaUserPoi](/forum/29-payment-methods/865101-rounding-and-decimal-in-the-component-alphauserpoi#140191 "-- url of the page with the problem -- :   www.apli.movil-plus.com  -- HikaShop version -- : 2.0.0 -- Joomla version -- : 3.1.5  Good afternoon, I resort to this means, I do not find anything on the network, or in this forum.  I have the AlphaUserPoints component installed HikaShop along recharging system by Paypal, so far so good.  The problem is that when I try to pay for an item, the price always rounds, as seen in the picture.  I think I have the options correctly. Would appreciate a help from someone to present the same problem as me.  Thanks in advance!")* was created by *[unlockalicante](/forum/user/30721-unlockalicante "View unlockalicante's Profile")*

-- url of the page with the problem -- : [ www.apli.movil-plus.com](http://www.apli.movil-plus.com)
-- HikaShop version -- : 2.0.0
-- Joomla version -- : 3.1.5

Good afternoon, I resort to this means, I do not find anything on the network, or in this forum.

I have the AlphaUserPoints component installed HikaShop along recharging system by Paypal, so far so good.

The problem is that when I try to pay for an item, the price always rounds, as seen in the picture.

I think I have the options correctly. Would appreciate a help from someone to present the same problem as me.

Thanks in advance!

- [ ![h0e2465a.jpg](/forum/attachment/14740) ](/forum/attachment/14740 "h0e2465a.jpg") [ ](/forum/attachment/14740?download=1 "h0e2465a.jpg")
- [ ![h635555e&#95;2014-01-18.png](/forum/attachment/14742) ](/forum/attachment/14742 "...2014-01-18.png") [ ](/forum/attachment/14742?download=1 "...2014-01-18.png")
- [ ![hab16616.png](/forum/attachment/14743) ](/forum/attachment/14743 "hab16616.png") [ ](/forum/attachment/14743?download=1 "hab16616.png")

Last edit: 12 years 9 months ago by [unlockalicante](/forum/user/30721-unlockalicante "View unlockalicante's Profile").

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjUxMDEtcm91bmRpbmctYW5kLWRlY2ltYWwtaW4tdGhlLWNvbXBvbmVudC1hbHBoYXVzZXJwb2k/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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86293
- Thank you received: 14271
-
-

12 years 9 months ago [\#140194](#140194) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Rounding and decimal in the component AlphaUserPoi](/forum/29-payment-methods/865101-rounding-and-decimal-in-the-component-alphauserpoi#140194 "-- url of the page with the problem -- :   www.apli.movil-plus.com  -- HikaShop version -- : 2.0.0 -- Joomla version -- : 3.1.5  Good afternoon, I resort to this means, I do not find anything on the network, or in this forum.  I have the AlphaUserPoints component installed HikaShop along recharging system by Paypal, so far so good.  The problem is that when I try to pay for an item, the price always rounds, as seen in the picture.  I think I have the options correctly. Would appreciate a help from someone to present the same problem as me.  Thanks in advance!")*

Hi,

The price doesn't round, but yes, the points are always rounded in order to be integers. There is no option to change that as that's the normal behavior.
You would have to edit the code of the AlphaUserPoints if you wanted to change the rounding precision to 2 decimals.
For that, you should change the line:
return round($pointsDecrease, 0);

to:
return round($pointsDecrease, 2);
in plugins/hikashoppayment/userpoints/userpoints.php

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

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

- **[unlockalicante](/forum/user/30721-unlockalicante "View unlockalicante's Profile")**
- [![unlockalicante's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar30721.jpg)](/forum/user/30721-unlockalicante "View unlockalicante's Profile") Topic Author
- [ Offline](/forum/user/30721-unlockalicante)

Less More

- Posts: 8
- Thank you received: 0
-
-
- [](http://www.apli.movil-plus.com)
-

12 years 9 months ago [\#140206](#140206) by [unlockalicante](/forum/user/30721-unlockalicante "View unlockalicante's Profile")  Replied by *[unlockalicante](/forum/user/30721-unlockalicante "View unlockalicante's Profile")* on topic *[Rounding and decimal in the component AlphaUserPoi](/forum/29-payment-methods/865101-rounding-and-decimal-in-the-component-alphauserpoi#140206 "-- url of the page with the problem -- :   www.apli.movil-plus.com  -- HikaShop version -- : 2.0.0 -- Joomla version -- : 3.1.5  Good afternoon, I resort to this means, I do not find anything on the network, or in this forum.  I have the AlphaUserPoints component installed HikaShop along recharging system by Paypal, so far so good.  The problem is that when I try to pay for an item, the price always rounds, as seen in the picture.  I think I have the options correctly. Would appreciate a help from someone to present the same problem as me.  Thanks in advance!")*

Solved!

Again, thanks for the speed and efficiency!

Greetings.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjUxMDEtcm91bmRpbmctYW5kLWRlY2ltYWwtaW4tdGhlLWNvbXBvbmVudC1hbHBoYXVzZXJwb2k/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.122 seconds

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

[](#top)
