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

#   User Group after purchase free item bug

##

- **[rhinoboy82](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")**
- [![rhinoboy82's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5708.png)](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile") Topic Author
- [ Offline](/forum/user/5708-rhinoboy82)

Less More

- Posts: 45
- Thank you received: 7
-
-
- [](http://disctraininghub.com)
-

14 years 3 months ago [\#59921](#59921) by [rhinoboy82](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")  *[User Group after purchase free item bug](/forum/3-bug-report/59921-user-group-after-purchase-free-item-bug#59921 "Our store has a free item called 8 Dimensions Book Map. &quot;Purchase&quot; of that item should set the User Group After Purchase to &quot;Book Map&quot;. While the checkout of the item works perfectly (I use HikaSerial...")* was created by *[rhinoboy82](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")*

Our store has a free item called 8 Dimensions Book Map. "Purchase" of that item should set the User Group After Purchase to "Book Map". While the checkout of the item works perfectly (I use HikaSerial to assign an access code for the product), the user is not added to the group.

I would think the problem is that the checkout of a free item skips some code where the User Group should be set.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMtYnVnLXJlcG9ydC81OTkyMS11c2VyLWdyb3VwLWFmdGVyLXB1cmNoYXNlLWZyZWUtaXRlbS1idWc/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: 86541
- Thank you received: 14304
-
-

14 years 3 months ago [\#59986](#59986) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Re: User Group after purchase free item bug](/forum/3-bug-report/59921-user-group-after-purchase-free-item-bug#59986 "Our store has a free item called 8 Dimensions Book Map. &quot;Purchase&quot; of that item should set the User Group After Purchase to &quot;Book Map&quot;. While the checkout of the item works perfectly (I use HikaSerial...")*

Can you try to add the code:

function onAfterOrderCreate( &amp;$order,&amp;$send_email){
return $this-&gt;onAfterOrderUpdate( $order,$send_email);
}

before the code:
function onAfterOrderUpdate(&amp;$order,&amp;$send_email){

in the file plugins/hikashop/group/group.php and see if that helps ?

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

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

- **[rhinoboy82](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")**
- [![rhinoboy82's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar5708.png)](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile") Topic Author
- [ Offline](/forum/user/5708-rhinoboy82)

Less More

- Posts: 45
- Thank you received: 7
-
-
- [](http://disctraininghub.com)
-

14 years 3 months ago [\#60548](#60548) by [rhinoboy82](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")  Replied by *[rhinoboy82](/forum/user/5708-rhinoboy82 "View rhinoboy82's Profile")* on topic *[Re: User Group after purchase free item bug](/forum/3-bug-report/59921-user-group-after-purchase-free-item-bug#60548 "Our store has a free item called 8 Dimensions Book Map. &quot;Purchase&quot; of that item should set the User Group After Purchase to &quot;Book Map&quot;. While the checkout of the item works perfectly (I use HikaSerial...")*

That corrected the problem.

Sorry it took so long for me to get this tested!

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

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