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

#   Serious bug with Alphauserpoints plugin

##

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

Less More

- Posts: 121
- Thank you received: 7
-
-

13 years 3 months ago [\#116347](#116347) by [jeremynsl](/forum/user/489-jeremynsl "View jeremynsl's Profile")  *[Serious bug with Alphauserpoints plugin](/forum/19-hikamarket/85879-serious-bug-with-alphauserpoints-plugin#116347 "Hi there,  I user AUP to provide points to users as a percentage of their purchase prices. I noticed some discrepancies in user's points since I installed Hikamarket. It appears that the 'sub-orders' that Hikamarket generates for vendors also provide points to users! As an example, if a user was supposed to earn 500 points from a purchase, they will earn 500 points plus another 500 points for the vendor 'sub-orders'.  This is an extremely serious bug for me that has generated a huge amount of erroneous points. For now I'm disabling HikaMarket plugin. Can you please look into this for me? Thanks,  Jeremy")* was created by *[jeremynsl](/forum/user/489-jeremynsl "View jeremynsl's Profile")*

Hi there,

I user AUP to provide points to users as a percentage of their purchase prices. I noticed some discrepancies in user's points since I installed Hikamarket. It appears that the 'sub-orders' that Hikamarket generates for vendors also provide points to users! As an example, if a user was supposed to earn 500 points from a purchase, they will earn 500 points plus another 500 points for the vendor 'sub-orders'.

This is an extremely serious bug for me that has generated a huge amount of erroneous points. For now I'm disabling HikaMarket plugin. Can you please look into this for me? Thanks,

Jeremy

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

13 years 3 months ago [\#116384](#116384) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Serious bug with Alphauserpoints plugin](/forum/19-hikamarket/85879-serious-bug-with-alphauserpoints-plugin#116384 "Hi there,  I user AUP to provide points to users as a percentage of their purchase prices. I noticed some discrepancies in user's points since I installed Hikamarket. It appears that the 'sub-orders' that Hikamarket generates for vendors also provide points to users! As an example, if a user was supposed to earn 500 points from a purchase, they will earn 500 points plus another 500 points for the vendor 'sub-orders'.  This is an extremely serious bug for me that has generated a huge amount of erroneous points. For now I'm disabling HikaMarket plugin. Can you please look into this for me? Thanks,  Jeremy")*

Hi,

We made a new implementation of the integration plugin with AlphaUserPoints but the plugin is not finished yet.

For the moment you can edit the plugin "plugins/hikashoppayment/alphauserpoints/alphauserpoints.php" and replace the code: Code:

function onAfterOrderUpdate(&amp;$order,&amp;$send_email){ $method = $this-&gt;getMethod(); if(!isset($order-&gt;order_status)) return true; $this-&gt;_giveAndGiveBack($order, $method, 0); }

By Code:

function onAfterOrderUpdate(&amp;$order,&amp;$send_email){ $method = $this-&gt;getMethod(); if(!isset($order-&gt;order_status)) return true; if( !empty($order-&gt;order_type) &amp;&amp; $order-&gt;order_type != 'sale' ) return true; $this-&gt;_giveAndGiveBack($order, $method, 0); }

And the code: Code:

function onAfterOrderCreate(&amp;$order,&amp;$send_email){ $app =&amp; JFactory::getApplication(); if($app-&gt;isAdmin()) { return true; }

By: Code:

function onAfterOrderCreate(&amp;$order,&amp;$send_email){ $app =&amp; JFactory::getApplication(); if($app-&gt;isAdmin()) { return true; } if( !empty($order-&gt;order_type) &amp;&amp; $order-&gt;order_type != 'sale' ) return true;

It will not process points for other things that the HikaShop orders.

Regards,

---

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

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

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

Less More

- Posts: 121
- Thank you received: 7
-
-

12 years 10 months ago [\#138506](#138506) by [jeremynsl](/forum/user/489-jeremynsl "View jeremynsl's Profile")  Replied by *[jeremynsl](/forum/user/489-jeremynsl "View jeremynsl's Profile")* on topic *[Serious bug with Alphauserpoints plugin](/forum/19-hikamarket/85879-serious-bug-with-alphauserpoints-plugin#138506 "Hi there,  I user AUP to provide points to users as a percentage of their purchase prices. I noticed some discrepancies in user's points since I installed Hikamarket. It appears that the 'sub-orders' that Hikamarket generates for vendors also provide points to users! As an example, if a user was supposed to earn 500 points from a purchase, they will earn 500 points plus another 500 points for the vendor 'sub-orders'.  This is an extremely serious bug for me that has generated a huge amount of erroneous points. For now I'm disabling HikaMarket plugin. Can you please look into this for me? Thanks,  Jeremy")*

Hi Jerome,

Sorry to resurrect this old topic.

I disabled Hikamarket after this problem and haven't used it since. I'm wondering if you have officially fixed this bug in the meantime? Or if I would still need to manually apply the fix you showed here?

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

12 years 10 months ago [\#138507](#138507) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Serious bug with Alphauserpoints plugin](/forum/19-hikamarket/85879-serious-bug-with-alphauserpoints-plugin#138507 "Hi there,  I user AUP to provide points to users as a percentage of their purchase prices. I noticed some discrepancies in user's points since I installed Hikamarket. It appears that the 'sub-orders' that Hikamarket generates for vendors also provide points to users! As an example, if a user was supposed to earn 500 points from a purchase, they will earn 500 points plus another 500 points for the vendor 'sub-orders'.  This is an extremely serious bug for me that has generated a huge amount of erroneous points. For now I'm disabling HikaMarket plugin. Can you please look into this for me? Thanks,  Jeremy")*

Hi,

The day that I posted the patch, I submitted it too.
So It's fixed since HikaShop 2.2.2

Regards,

---

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

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

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

Less More

- Posts: 121
- Thank you received: 7
-
-

12 years 10 months ago [\#138511](#138511) by [jeremynsl](/forum/user/489-jeremynsl "View jeremynsl's Profile")  Replied by *[jeremynsl](/forum/user/489-jeremynsl "View jeremynsl's Profile")* on topic *[Serious bug with Alphauserpoints plugin](/forum/19-hikamarket/85879-serious-bug-with-alphauserpoints-plugin#138511 "Hi there,  I user AUP to provide points to users as a percentage of their purchase prices. I noticed some discrepancies in user's points since I installed Hikamarket. It appears that the 'sub-orders' that Hikamarket generates for vendors also provide points to users! As an example, if a user was supposed to earn 500 points from a purchase, they will earn 500 points plus another 500 points for the vendor 'sub-orders'.  This is an extremely serious bug for me that has generated a huge amount of erroneous points. For now I'm disabling HikaMarket plugin. Can you please look into this for me? Thanks,  Jeremy")*

Thank you Jerome. One more question (perhaps this is more general Hikashop-related?): does it matter that I'm still using the old AUP plugin? I have not switched to the Hikashop-specific version you guys made. I'm a bit scared to, to be honest. I can't afford to mess up thousands of users points.

And if I did transition, what would be the advantage?

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

12 years 10 months ago [\#138542](#138542) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[Serious bug with Alphauserpoints plugin](/forum/19-hikamarket/85879-serious-bug-with-alphauserpoints-plugin#138542 "Hi there,  I user AUP to provide points to users as a percentage of their purchase prices. I noticed some discrepancies in user's points since I installed Hikamarket. It appears that the 'sub-orders' that Hikamarket generates for vendors also provide points to users! As an example, if a user was supposed to earn 500 points from a purchase, they will earn 500 points plus another 500 points for the vendor 'sub-orders'.  This is an extremely serious bug for me that has generated a huge amount of erroneous points. For now I'm disabling HikaMarket plugin. Can you please look into this for me? Thanks,  Jeremy")*

Hi,

You can still use the old plugin but you have to know that it won't be updated anymore (except if we found a bug into).
The new system "user points" is compatible with AUP so you won't loose your points (which are stored into AUP).
It allow new options and features, the really important point is the separation between the "gain" and the "earn" of points.
So you can have a lot of different configurations to earn points, depending the category, the sum, the access level, etc.

If your configuration is good like that, you do not have specific reason to change.

Regards,

---

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

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

Moderators: [Obsidev](/forum/user/7040-obsidev "View Obsidev's Profile")

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

Time to create page: 0.058 seconds

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