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

#   Alphapoints not working....I think

##

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

Less More

- Posts: 208
- Thank you received: 10
-
-

12 years 8 months ago [\#145816](#145816) by [simmiepam](/forum/user/30436-simmiepam "View simmiepam's Profile")  *[Alphapoints not working....I think](/forum/29-payment-methods/866204-alphapoints-not-working-i-think#145816 "-- url of the page with the problem -- :   bestedernewsletters.com  -- HikaShop version -- : 2.3.0 Essentials (purchased 2 days ago) -- Joomla version -- : 2.5.8 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Happy that I finally have the alphauser points showing up on the checkout page as an option.  But something weird is happening.  Here it shows that the user is purchasing $8.32 The points says they have 1100 points and can use 832 of them for a discount. Here's the screen shot  So..... I checked that YES I want to use the points to pay The point section NOW says that I have 1100 points and can use them for a $11.00 discount Why is it showing that??? Shouldn't it show that NOW I will have 268 points left (after I apply the 832 for the order?")* was created by *[simmiepam](/forum/user/30436-simmiepam "View simmiepam's Profile")*

-- url of the page with the problem -- : [ bestedernewsletters.com](http://bestedernewsletters.com)
-- HikaShop version -- : 2.3.0 Essentials (purchased 2 days ago)
-- Joomla version -- : 2.5.8
-- PHP version -- : x.x.x
-- Browser(s) name and version -- : XXXXX x.x.x
-- Error-message(debug-mod must be tuned on) -- : Error_message

Happy that I finally have the alphauser points showing up on the checkout page as an option.

But something weird is happening.

Here it shows that the user is purchasing $8.32
The points says they have 1100 points and can use 832 of them for a discount. Here's the screen shot

[ ![h95a1f99.jpg](/forum/attachment/15590) ](/forum/attachment/15590 "h95a1f99.jpg")

So..... I checked that YES I want to use the points to pay
The point section NOW says that I have 1100 points and can use them for a $11.00 discount
Why is it showing that??? Shouldn't it show that NOW I will have 268 points left (after I apply the 832 for the order?

[ ![h7840bbc.jpg](/forum/attachment/15591) ](/forum/attachment/15591 "h7840bbc.jpg")

- [ ![h95a1f99.jpg](/forum/attachment/15590) ](/forum/attachment/15590 "h95a1f99.jpg") [ ](/forum/attachment/15590?download=1 "h95a1f99.jpg")
- [ ![h7840bbc.jpg](/forum/attachment/15591) ](/forum/attachment/15591 "h7840bbc.jpg") [ ](/forum/attachment/15591?download=1 "h7840bbc.jpg")

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzI5LXBheW1lbnQtbWV0aG9kcy84NjYyMDQtYWxwaGFwb2ludHMtbm90LXdvcmtpbmctaS10aGluaz90bXBsPW1hcmtkb3du) 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: 26400
- Thank you received: 4080
-
- [](http://obsi.dev)
-

12 years 8 months ago [\#145908](#145908) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Alphapoints not working....I think](/forum/29-payment-methods/866204-alphapoints-not-working-i-think#145908 "-- url of the page with the problem -- :   bestedernewsletters.com  -- HikaShop version -- : 2.3.0 Essentials (purchased 2 days ago) -- Joomla version -- : 2.5.8 -- PHP version -- : x.x.x -- Browser(s) name and version -- : XXXXX x.x.x -- Error-message(debug-mod must be tuned on) -- : Error&#95;message  Happy that I finally have the alphauser points showing up on the checkout page as an option.  But something weird is happening.  Here it shows that the user is purchasing $8.32 The points says they have 1100 points and can use 832 of them for a discount. Here's the screen shot  So..... I checked that YES I want to use the points to pay The point section NOW says that I have 1100 points and can use them for a $11.00 discount Why is it showing that??? Shouldn't it show that NOW I will have 268 points left (after I apply the 832 for the order?")*

Hi,

In the plugin "plugins/hikashoppayment/userpoints/userpoints.php" can you please replace Code:

if(isset($order-&gt;additional['userpoints'])) $final_price -= $order-&gt;additional['userpoints']-&gt;price_value_with_tax; $pointsDecrease = $final_price * ( 1 / $this-&gt;plugin_params-&gt;value );

By Code:

// if(isset($order-&gt;additional['userpoints'])) // $final_price -= $order-&gt;additional['userpoints']-&gt;price_value_with_tax; $pointsDecrease = $final_price * ( 1 / $this-&gt;plugin_params-&gt;value );

It should fix your problem.

Regards,

---

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

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

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