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

#   Add all customers who have already bought a specific product to a user group

##

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

Less More

- Posts: 46
- Thank you received: 1
-
-

6 years 1 month ago [\#323601](#323601) by [vividfish](/forum/user/18346-vividfish "View vividfish's Profile")  *[Add all customers who have already bought a specific product to a user group](/forum/33-customers/900730-add-all-customers-who-have-already-bought-a-specific-product-to-a-user-group#323601 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.3 -- Browser(s) name and version -- : Chrome  Hi,  Is it possible to add all users who have already bought a specific product to a new user group without doing it manually?  I have a list of 700 customer that now need adding to a new Joomla user group.  Thanks  KH")* was created by *[vividfish](/forum/user/18346-vividfish "View vividfish's Profile")*

-- HikaShop version -- : 4.3.0
-- Joomla version -- : 3.9.21
-- PHP version -- : 7.3
-- Browser(s) name and version -- : Chrome

Hi,

Is it possible to add all users who have already bought a specific product to a new user group without doing it manually?

I have a list of 700 customer that now need adding to a new Joomla user group.

Thanks

KH

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy85MDA3MzAtYWRkLWFsbC1jdXN0b21lcnMtd2hvLWhhdmUtYWxyZWFkeS1ib3VnaHQtYS1zcGVjaWZpYy1wcm9kdWN0LXRvLWEtdXNlci1ncm91cD90bXBsPW1hcmtkb3du) 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)](/forum/user/63-nicolas "View nicolas's Profile")
- [ Offline](/forum/user/63-nicolas)

Less More

- Posts: 86289
- Thank you received: 14265
-
-

6 years 1 month ago [\#323610](#323610) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Add all customers who have already bought a specific product to a user group](/forum/33-customers/900730-add-all-customers-who-have-already-bought-a-specific-product-to-a-user-group#323610 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.3 -- Browser(s) name and version -- : Chrome  Hi,  Is it possible to add all users who have already bought a specific product to a new user group without doing it manually?  I have a list of 700 customer that now need adding to a new Joomla user group.  Thanks  KH")*

Hi,

Yes.
First, for future customers, you can use the "user group after purchase" setting of the product to set that up.
For existing customers, you want to create a mass action via the menu System&gt;Mass actions, and select the type "order". There, you'll need one filter on the order_product column "order_product_code" being equal to the product_code of the product. And you'll want an action "change the user group" and configure the action to target the user group you want.
Once you click on the "process" button of the mass action, it will do it all at once.
Note that if you mess it up, it can have dire consequences. So I would recommend to make backups, and to use an action "display the results" first to check what "elements" are found when running the filter(s) of a mass action, before using an action which change things.
[ www.hikashop.com/support/documentation/167-massaction-form.html](https://www.hikashop.com/support/documentation/167-massaction-form.html)

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

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

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

Less More

- Posts: 46
- Thank you received: 1
-
-

6 years 1 month ago [\#323626](#323626) by [vividfish](/forum/user/18346-vividfish "View vividfish's Profile")  Replied by *[vividfish](/forum/user/18346-vividfish "View vividfish's Profile")* on topic *[Add all customers who have already bought a specific product to a user group](/forum/33-customers/900730-add-all-customers-who-have-already-bought-a-specific-product-to-a-user-group#323626 "-- HikaShop version -- : 4.3.0 -- Joomla version -- : 3.9.21 -- PHP version -- : 7.3 -- Browser(s) name and version -- : Chrome  Hi,  Is it possible to add all users who have already bought a specific product to a new user group without doing it manually?  I have a list of 700 customer that now need adding to a new Joomla user group.  Thanks  KH")*

Thanks, Nicolas,

That worked jsut as required.

Best

KH

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

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

[](#top)
