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

#   Part Points. Half points. Rounding. AlphaUserPoint

##

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

Less More

- Posts: 20
- Thank you received: 0
-
-

12 years 3 months ago [\#164912](#164912) by [AcresPetProducts](/forum/user/9725-acrespetproducts "View AcresPetProducts's Profile")  *[Part Points. Half points. Rounding. AlphaUserPoint](/forum/29-payment-methods/869858-part-points-half-points-rounding-alphauserpoint#164912 "Is it possible to have AUP and HikaShop assign part points?  As an example we have a product that sells for $75.00  $10 = 1 point  So what is happening is this is being rounded up to 8 points when in fact we want it to be 7.5 points or just 7 points as it is not a full $10 spend for a point.  I've read the FAQ's and searched the forums on anything I can think of for search terms and haven't found anything so I hope I'm not posting unnecessarily.  Many thanks  Acres")* was created by *[AcresPetProducts](/forum/user/9725-acrespetproducts "View AcresPetProducts's Profile")*

Is it possible to have AUP and HikaShop assign part points?

As an example we have a product that sells for $75.00

$10 = 1 point

So what is happening is this is being rounded up to 8 points when in fact we want it to be 7.5 points or just 7 points as it is not a full $10 spend for a point.

I've read the FAQ's and searched the forums on anything I can think of for search terms and haven't found anything so I hope I'm not posting unnecessarily.

Many thanks

Acres

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

12 years 3 months ago [\#164932](#164932) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Part Points. Half points. Rounding. AlphaUserPoint](/forum/29-payment-methods/869858-part-points-half-points-rounding-alphauserpoint#164932 "Is it possible to have AUP and HikaShop assign part points?  As an example we have a product that sells for $75.00  $10 = 1 point  So what is happening is this is being rounded up to 8 points when in fact we want it to be 7.5 points or just 7 points as it is not a full $10 spend for a point.  I've read the FAQ's and searched the forums on anything I can think of for search terms and haven't found anything so I hope I'm not posting unnecessarily.  Many thanks  Acres")*

Hi,
As it's said on that [ thread](http://www.hikashop.com/forum/payment-methods/866161-at-what-step-should-alphauserpoints-appear.html#145675) :

> They are both payment plugins, but the difference is that Hikashop AlphaUserPoints Plugin is the old one (deprecated now) so you'll have to use the HikaShop User Points payment plugin.

So you should probably use the HikaShop User Points payment plugin

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

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

Less More

- Posts: 20
- Thank you received: 0
-
-

12 years 3 months ago [\#165044](#165044) by [AcresPetProducts](/forum/user/9725-acrespetproducts "View AcresPetProducts's Profile")  Replied by *[AcresPetProducts](/forum/user/9725-acrespetproducts "View AcresPetProducts's Profile")* on topic *[Part Points. Half points. Rounding. AlphaUserPoint](/forum/29-payment-methods/869858-part-points-half-points-rounding-alphauserpoint#165044 "Is it possible to have AUP and HikaShop assign part points?  As an example we have a product that sells for $75.00  $10 = 1 point  So what is happening is this is being rounded up to 8 points when in fact we want it to be 7.5 points or just 7 points as it is not a full $10 spend for a point.  I've read the FAQ's and searched the forums on anything I can think of for search terms and haven't found anything so I hope I'm not posting unnecessarily.  Many thanks  Acres")*

Thanks Mohamed

Had an issue with updating to the latest version of HikaShop Business which Nicolas knows about.

We are testing and debugging on a copy of the website before updating again. We have to schedule a maintenance window to do it anyway.

The part points or in our case half points issue needs to be resolved and we could leave it until we do this maintenance update.

Having said that will HikaShop User Points do part points/half points/rounding down? I only ask as this was the original question and would rather not plan a migration of AUP to HUP to find it won't do it anyway.

Thanks Mohamed

Acres

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

12 years 3 months ago [\#165117](#165117) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Part Points. Half points. Rounding. AlphaUserPoint](/forum/29-payment-methods/869858-part-points-half-points-rounding-alphauserpoint#165117 "Is it possible to have AUP and HikaShop assign part points?  As an example we have a product that sells for $75.00  $10 = 1 point  So what is happening is this is being rounded up to 8 points when in fact we want it to be 7.5 points or just 7 points as it is not a full $10 spend for a point.  I've read the FAQ's and searched the forums on anything I can think of for search terms and haven't found anything so I hope I'm not posting unnecessarily.  Many thanks  Acres")*

Hi,

There is no option in AlphaUserPoints or in UserPoints to choose the round mode for the earn points.
For that part, the code in UserPoints plugin is the same than in the AlphaUserPoints one.

But you can edit the plugin "plugins/hikashop/userpoints/userpoints.php" and replace Code:

return round($points, 0);

By: Code:

if($this-&gt;plugin_params-&gt;rounddown) return floor($points); return round($points, 0);

And the file "plugins/hikashop/userpoints/userpoints_configuration.php", replacing Code:

&lt;td&gt;&lt;?php echo JHTML::_('hikaselect.booleanlist', "data[plugin][plugin_params][notgivewhenuse]" , '', @$this-&gt;element-&gt;plugin_params-&gt;notgivewhenuse); ?&gt;&lt;/td&gt; &lt;/tr&gt;

By Code:

&lt;td&gt;&lt;?php echo JHTML::_('hikaselect.booleanlist', "data[plugin][plugin_params][notgivewhenuse]" , '', @$this-&gt;element-&gt;plugin_params-&gt;notgivewhenuse); ?&gt;&lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td class="key"&gt; &lt;label for="data[plugin][plugin_params][rounddown]"&gt;&lt;?php echo JText::_('POINTS_ROUND_DOWN'); ?&gt;&lt;/label&gt; &lt;/td&gt; &lt;td&gt;&lt;?php echo JHTML::_('hikaselect.booleanlist', "data[plugin][plugin_params][rounddown]" , '', @$this-&gt;element-&gt;plugin_params-&gt;rounddown); ?&gt;&lt;/td&gt; &lt;/tr&gt;

It will add the new option for the rounding mode.

Regards,

---

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

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

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

[](#top)
