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

#   Issue with User Joomla group change mass action

##

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

Less More

- Posts: 8
- Thank you received: 1
-
-

4 years 10 months ago [\#338190](#338190) by [aftertaf](/forum/user/13416-aftertaf "View aftertaf's Profile")  *[Issue with User Joomla group change mass action](/forum/44-mass-actions/903719-issue-with-user-joomla-group-change-mass-action#338190 "-- url of the page with the problem -- :   socouture-rouen.fr/  -- HikaShop version -- : 4.4.5 -- Joomla version -- : 4.0.5 -- PHP version -- : 8.0.13  Hi, I've setup a mass action to replace a user group (tried also with just adding, same issue occurs...) when a client purchases a certain product. I want them to be a member of a new group, that is not under 'registered' group, and to remove them from the 'registered' group' I want to make some of the site content available only to a user having purchased this type of product.  However, when I enable this mass action trigger, the user does the purchase and when the checkout process is completed, the user is automatically logged out of their session. When they log back in, the order has gone thru but their cart still shows the product.  I've checked the pages and menu items that are accessed after checkout and have adjusted the access levels (i may have missed something but i have checked 2/3 times...) to make sure that their new group has access (and so being removed from 'registered' shouldn't cause a loss of access rights).  When i disable the trigger, the order &amp; checkout process goes thru to the end and the user is not logged out. Any ideas ?")* was created by *[aftertaf](/forum/user/13416-aftertaf "View aftertaf's Profile")*

-- url of the page with the problem -- : [ socouture-rouen.fr/](https://socouture-rouen.fr/)
-- HikaShop version -- : 4.4.5
-- Joomla version -- : 4.0.5
-- PHP version -- : 8.0.13

Hi,
I've setup a mass action to replace a user group (tried also with just adding, same issue occurs...) when a client purchases a certain product. I want them to be a member of a new group, that is not under 'registered' group, and to remove them from the 'registered' group'
I want to make some of the site content available only to a user having purchased this type of product.

However, when I enable this mass action trigger, the user does the purchase and when the checkout process is completed, the user is automatically logged out of their session.
When they log back in, the order has gone thru but their cart still shows the product.

I've checked the pages and menu items that are accessed after checkout and have adjusted the access levels (i may have missed something but i have checked 2/3 times...) to make sure that their new group has access (and so being removed from 'registered' shouldn't cause a loss of access rights).

When i disable the trigger, the order &amp; checkout process goes thru to the end and the user is not logged out.
Any ideas ?

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

Less More

- Posts: 86295
- Thank you received: 14273
-
-

4 years 10 months ago [\#338207](#338207) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[Issue with User Joomla group change mass action](/forum/44-mass-actions/903719-issue-with-user-joomla-group-change-mass-action#338207 "-- url of the page with the problem -- :   socouture-rouen.fr/  -- HikaShop version -- : 4.4.5 -- Joomla version -- : 4.0.5 -- PHP version -- : 8.0.13  Hi, I've setup a mass action to replace a user group (tried also with just adding, same issue occurs...) when a client purchases a certain product. I want them to be a member of a new group, that is not under 'registered' group, and to remove them from the 'registered' group' I want to make some of the site content available only to a user having purchased this type of product.  However, when I enable this mass action trigger, the user does the purchase and when the checkout process is completed, the user is automatically logged out of their session. When they log back in, the order has gone thru but their cart still shows the product.  I've checked the pages and menu items that are accessed after checkout and have adjusted the access levels (i may have missed something but i have checked 2/3 times...) to make sure that their new group has access (and so being removed from 'registered' shouldn't cause a loss of access rights).  When i disable the trigger, the order &amp; checkout process goes thru to the end and the user is not logged out. Any ideas ?")*

Hi,

Yes, the mass action system will logout the users when it changes their user groups.
That's because Joomla caches the user groups data of the current user in its user session.
And thus if a mass action changes the user groups without logging out the corresponding users, they wouldn't see any change until they logout and login again.
So we force the logout as the mass action system cannot clear the user session caching data as it can be done from other user sessions where that information is not accessible to it.

Now regarding the cart, you have a setting "clean cart when order is" in the HikaShop configuration.
If that setting is set to "created", then the cart data will be cleared when the order is created, before the user is redirected to the payment gateway for the payment.
If that setting is set to "confirmed", then the cart data will be cleared when the customer comes back from the payment gateway, just before displaying the thank you page.
If you set that setting to "confirmed" and you have a mass action forcefully logging out the user when the order is confirmed (so after the payment, but before the user is redirected back to the website), the user will indeed be redirected to the login form, and the cart won't be cleared.
In that case, I would recommend changing that setting to "created" so that the cart is cleared before the redirection to the payment gateway.

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

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

[](#top)
