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

#   Allow users to be assigned to 2nd user group based upon product variants

##

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

Less More

- Posts: 21
- Thank you received: 2
-
-

6 years 3 months ago [\#322490](#322490) by [ACMLLC](/forum/user/34241-acmllc "View ACMLLC's Profile")  *[Allow users to be assigned to 2nd user group based upon product variants](/forum/50-feature-request/900496-allow-users-to-be-assigned-to-2nd-user-group-based-upon-product-variants#322490 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.2.32 -- Browser(s) name and version -- : N/A -- Error-message(debug-mod must be tuned on) -- : N/A  Hello! Users can be assigned to a user group after purchase based upon the base product settings. If, within a product variant a user is set to be assigned to a different user group, that setting overwrites the user group after purchase setting in the base product. We have a use case, where we could use an alternate user group assignment after purchase set in a product variant. The base product user group after purchase is used to add a user to a group that is used by downstream systems, Moodle, to assign users to classes they have purchased. If we could have the ability to set a second user group based upon the product variant settings, we could use that setting to do things we cannot do otherwise because the system relies on the base product group after purchase setting to assign users to classes they've bought. We are using HikaShop with EasyProfile, Joomdle and Moodle. They ability to set a second user group based upon the product variant would allow us to display or hide appropriate fields based upon the product variant selection.  Thank you!")* was created by *[ACMLLC](/forum/user/34241-acmllc "View ACMLLC's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.20
-- PHP version -- : 7.2.32
-- Browser(s) name and version -- : N/A
-- Error-message(debug-mod must be tuned on) -- : N/A

Hello! Users can be assigned to a user group after purchase based upon the base product settings. If, within a product variant a user is set to be assigned to a different user group, that setting overwrites the user group after purchase setting in the base product. We have a use case, where we could use an alternate user group assignment after purchase set in a product variant.
The base product user group after purchase is used to add a user to a group that is used by downstream systems, Moodle, to assign users to classes they have purchased.
If we could have the ability to set a second user group based upon the product variant settings, we could use that setting to do things we cannot do otherwise because the system relies on the base product group after purchase setting to assign users to classes they've bought.
We are using HikaShop with EasyProfile, Joomdle and Moodle. They ability to set a second user group based upon the product variant would allow us to display or hide appropriate fields based upon the product variant selection.

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDA0OTYtYWxsb3ctdXNlcnMtdG8tYmUtYXNzaWduZWQtdG8tMm5kLXVzZXItZ3JvdXAtYmFzZWQtdXBvbi1wcm9kdWN0LXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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")
- [ Away](/forum/user/63-nicolas)

Less More

- Posts: 86324
- Thank you received: 14286
-
-

6 years 3 months ago [\#322497](#322497) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Allow users to be assigned to 2nd user group based upon product variants](/forum/50-feature-request/900496-allow-users-to-be-assigned-to-2nd-user-group-based-upon-product-variants#322497 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.20 -- PHP version -- : 7.2.32 -- Browser(s) name and version -- : N/A -- Error-message(debug-mod must be tuned on) -- : N/A  Hello! Users can be assigned to a user group after purchase based upon the base product settings. If, within a product variant a user is set to be assigned to a different user group, that setting overwrites the user group after purchase setting in the base product. We have a use case, where we could use an alternate user group assignment after purchase set in a product variant. The base product user group after purchase is used to add a user to a group that is used by downstream systems, Moodle, to assign users to classes they have purchased. If we could have the ability to set a second user group based upon the product variant settings, we could use that setting to do things we cannot do otherwise because the system relies on the base product group after purchase setting to assign users to classes they've bought. We are using HikaShop with EasyProfile, Joomdle and Moodle. They ability to set a second user group based upon the product variant would allow us to display or hide appropriate fields based upon the product variant selection.  Thank you!")*

Hi,

One way you could do it is to use a mass action with a filter on the "order_product_code" with the code of a variant and a filter on the order_status, a trigger "on after an order is updated", and an action "change the user group" so that you could set the variant user group with the mass action and then user the "user group after purchase" setting of the main product only.

Besides that, the only solution would be some custom development.

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzUwLWZlYXR1cmUtcmVxdWVzdC85MDA0OTYtYWxsb3ctdXNlcnMtdG8tYmUtYXNzaWduZWQtdG8tMm5kLXVzZXItZ3JvdXAtYmFzZWQtdXBvbi1wcm9kdWN0LXZhcmlhbnRzP3RtcGw9bWFya2Rvd24=) or [Create an account](/register) 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.053 seconds

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