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

#   Remove user from group if order is refunded/cancelled

##

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

8 years 5 months ago [\#293278](#293278) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  *[Remove user from group if order is refunded/cancelled](/forum/33-customers/894837-remove-user-from-group-if-order-is-refunded-cancelled#293278 "Hello, I want to sell access to contents by assigniging users to different groups upon purchase, some questions:  1. What happens if an order is being refunded/cancelled? Does Hikashop is smart enough to remove th euser form the assigned user group  2. If not, can I achieve this using a Mass Action? I've plaied with it but I dont' see a way to narrow down the action to a certain product, what I need looks like this: if product X &gt; order refunded or cancelled &gt; remove user from group Y If I choose &quot;product&quot; in the &quot;data&quot; tab, thne I dont' have the option to choose the order status as filter, and viceversa if I choose &quot;order&quot; in the data tab  3. when a user is being assigned to a certain group upon purchase, it remains also assigned to the &quot;Registered&quot; gorup, right?  Thank you!")* was created by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")*

Hello,
I want to sell access to contents by assigniging users to different groups upon purchase,
some questions:

1.
What happens if an order is being refunded/cancelled?
Does Hikashop is smart enough to remove th euser form the assigned user group

2.
If not, can I achieve this using a Mass Action?
I've plaied with it but I dont' see a way to narrow down the action to a certain product, what I need looks like this:
*if product X &gt; order refunded or cancelled &gt; remove user from group Y*
If I choose "product" in the "data" tab, thne I dont' have the option to choose the order status as filter, and viceversa if I choose "order" in the data tab

3.
when a user is being assigned to a certain group upon purchase, it remains also assigned to the "Registered" gorup, right?

Thank you!

Please [Log in](/login?return=aHR0cHM6Ly93d3cuaGlrYXNob3AuY29tL2ZvcnVtLzMzLWN1c3RvbWVycy84OTQ4MzctcmVtb3ZlLXVzZXItZnJvbS1ncm91cC1pZi1vcmRlci1pcy1yZWZ1bmRlZC1jYW5jZWxsZWQ/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: 86584
- Thank you received: 14325
-
-

8 years 5 months ago [\#293279](#293279) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Remove user from group if order is refunded/cancelled](/forum/33-customers/894837-remove-user-from-group-if-order-is-refunded-cancelled#293279 "Hello, I want to sell access to contents by assigniging users to different groups upon purchase, some questions:  1. What happens if an order is being refunded/cancelled? Does Hikashop is smart enough to remove th euser form the assigned user group  2. If not, can I achieve this using a Mass Action? I've plaied with it but I dont' see a way to narrow down the action to a certain product, what I need looks like this: if product X &gt; order refunded or cancelled &gt; remove user from group Y If I choose &quot;product&quot; in the &quot;data&quot; tab, thne I dont' have the option to choose the order status as filter, and viceversa if I choose &quot;order&quot; in the data tab  3. when a user is being assigned to a certain group upon purchase, it remains also assigned to the &quot;Registered&quot; gorup, right?  Thank you!")*

Hi,

1. No the user group after purchase plugin doesn't handle that.

2. Mass action yes. You need to use the "order" data. For the "product X" product, you have the "order product column" filter you can use.

3. That's right.

Note that if you want something more advanced, you can use HikaSubscriptions:
[ www.hikashop.com/component/hikashop/product/cid-227.html](https://www.hikashop.com/component/hikashop/product/cid-227.html)
It's made to sell access to content, remove the access, etc. So it will do that without the need for a mass action / coding.

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

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

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

8 years 5 months ago -  8 years 5 months ago [\#293289](#293289) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  Replied by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")* on topic *[Remove user from group if order is refunded/cancelled](/forum/33-customers/894837-remove-user-from-group-if-order-is-refunded-cancelled#293289 "Hello, I want to sell access to contents by assigniging users to different groups upon purchase, some questions:  1. What happens if an order is being refunded/cancelled? Does Hikashop is smart enough to remove th euser form the assigned user group  2. If not, can I achieve this using a Mass Action? I've plaied with it but I dont' see a way to narrow down the action to a certain product, what I need looks like this: if product X &gt; order refunded or cancelled &gt; remove user from group Y If I choose &quot;product&quot; in the &quot;data&quot; tab, thne I dont' have the option to choose the order status as filter, and viceversa if I choose &quot;order&quot; in the data tab  3. when a user is being assigned to a certain group upon purchase, it remains also assigned to the &quot;Registered&quot; gorup, right?  Thank you!")*

I followed your instructions, but when I go to set the action I only see an option "change the user group" which when selected does not show any additional setting.
What I need is to remove the user from a group to which he was assigned after purchase.
[ ![hikashop&#95;mass&#95;action.png](/forum/attachment/43794) ](/forum/attachment/43794 "...ass&#95;action.png")

UPDATE:
none of the action options display other settings when selected, I see this error in console
Uncaught TypeError: Cannot set property 'innerHTML' of null
at updateMassAction (index.php?option=com_hikashop&amp;ctrl=massaction:152)
at HTMLSelectElement.onchange (index.php?option=com_hikashop&amp;ctrl=massaction:2329)

Thank you

- [ ![hikashop&#95;mass&#95;action.png](/forum/attachment/43794) ](/forum/attachment/43794 "...ass&#95;action.png") [ ](/forum/attachment/43794?download=1 "...ass&#95;action.png")

Last edit: 8 years 5 months ago by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile").

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

- **[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")**
- [![Mohamed Thelji's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar6861.png)](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")
- [ Offline](/forum/user/6861-mohamed-thelji)

Less More

- Posts: 12953
- Thank you received: 1778
-
-
-

8 years 5 months ago [\#293296](#293296) by [Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")  Replied by *[Mohamed Thelji](/forum/user/6861-mohamed-thelji "View Mohamed Thelji's Profile")* on topic *[Remove user from group if order is refunded/cancelled](/forum/33-customers/894837-remove-user-from-group-if-order-is-refunded-cancelled#293296 "Hello, I want to sell access to contents by assigniging users to different groups upon purchase, some questions:  1. What happens if an order is being refunded/cancelled? Does Hikashop is smart enough to remove th euser form the assigned user group  2. If not, can I achieve this using a Mass Action? I've plaied with it but I dont' see a way to narrow down the action to a certain product, what I need looks like this: if product X &gt; order refunded or cancelled &gt; remove user from group Y If I choose &quot;product&quot; in the &quot;data&quot; tab, thne I dont' have the option to choose the order status as filter, and viceversa if I choose &quot;order&quot; in the data tab  3. when a user is being assigned to a certain group upon purchase, it remains also assigned to the &quot;Registered&quot; gorup, right?  Thank you!")*

Hello,

Thank you for your feedback, can you set the "Action" tab option to "Change the user group" and save your mass action once. After saving your other options should be displayed through the "Action" tab.

Best regards,
Mohamed Thelji.

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

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

- **[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")**
- [![oloccina's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar23273.jpg)](/forum/user/23273-oloccina "View oloccina's Profile") Topic Author
- [ Offline](/forum/user/23273-oloccina)

Less More

- Posts: 224
- Thank you received: 8
-
-

8 years 5 months ago [\#293332](#293332) by [oloccina](/forum/user/23273-oloccina "View oloccina's Profile")  Replied by *[oloccina](/forum/user/23273-oloccina "View oloccina's Profile")* on topic *[Remove user from group if order is refunded/cancelled](/forum/33-customers/894837-remove-user-from-group-if-order-is-refunded-cancelled#293332 "Hello, I want to sell access to contents by assigniging users to different groups upon purchase, some questions:  1. What happens if an order is being refunded/cancelled? Does Hikashop is smart enough to remove th euser form the assigned user group  2. If not, can I achieve this using a Mass Action? I've plaied with it but I dont' see a way to narrow down the action to a certain product, what I need looks like this: if product X &gt; order refunded or cancelled &gt; remove user from group Y If I choose &quot;product&quot; in the &quot;data&quot; tab, thne I dont' have the option to choose the order status as filter, and viceversa if I choose &quot;order&quot; in the data tab  3. when a user is being assigned to a certain group upon purchase, it remains also assigned to the &quot;Registered&quot; gorup, right?  Thank you!")*

thanks, that wordked!

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

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