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

#   how to disable shop function \*after\* order?

##

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

Less More

- Posts: 79
- Thank you received: 0
-
-

11 years 1 week ago [\#219722](#219722) by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")  *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#219722 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")* was created by *[proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")*

-- HikaShop version -- : 2.6.0
-- Joomla version -- : 3.4.3
-- PHP version -- : 5.5.23

Hi,
i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.

Perhaps by changing the acl groups after the last step of the checkout process?
for instance by removing the shopper from the shopper group and placing the shopper in the group "has-already-shopped".

Would this be possible?

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

- **[Jerome](/forum/user/80-jerome "View Jerome's Profile")**
- [![Jerome's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar80.png)](/forum/user/80-jerome "View Jerome's Profile")
- [ Offline](/forum/user/80-jerome)
- HikaShop core developer

Less More

- Posts: 26400
- Thank you received: 4079
-
- [](http://obsi.dev)
-

11 years 1 week ago [\#219723](#219723) by [Jerome](/forum/user/80-jerome "View Jerome's Profile")  Replied by *[Jerome](/forum/user/80-jerome "View Jerome's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#219723 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hi,

You can use the plugin "user group after purchase".
You can also use the HikaShop limitation system to create a general limitation.

Regards,

---

Jerome - Obsidev.com
HikaMarket &amp; HikaSerial developer / HikaShop core dev team.

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

11 years 6 days ago [\#219771](#219771) by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")  Replied by *[proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#219771 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hi,
is this a hikashop plugin or a third party plugin?

and what do you mean with the limitation system?

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

11 years 6 days ago [\#219777](#219777) by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")  Replied by *[proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#219777 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hi again,
If you mean the hikashop plugin, how would i *remove* a user from group? I seem to be only able to add the user to a new group?

And... when would this action (group change) take place, after checkout? (otherwise it wouldn't work of course)

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

11 years 5 days ago [\#219837](#219837) by [nicolas](/forum/user/63-nicolas "View nicolas's Profile")  Replied by *[nicolas](/forum/user/63-nicolas "View nicolas's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#219837 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hi,

I think the best would be to create a mass action via the menu System&gt;Mass actions.
There, you can configure a mass action like that:
[ take.ms/H2T5Q](http://take.ms/H2T5Q)
So you could move the user from his user group to another user group, and then configure your shop menu items' access to only the former user group. The rest would then be automatic.

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

11 years 5 days ago -  11 years 5 days ago [\#219851](#219851) by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")  Replied by *[proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#219851 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hi,
i've just tried this out.

The 'adding to a group' is working properly --&gt; i've placed the user in a "has shopped" group. so, that is fine.

but 'removing' from a group isn't working properly. I need to remove the 'shopper' group but keep all other groups intact. What it actually did, it removed all groups except shopper.

How do i remove a single group (only shopper) and leave the other groups intact? (my users are in different groups)

Last edit: 11 years 5 days ago by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 4 days ago -  11 years 4 days ago [\#219964](#219964) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#219964 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hi,

This action was not implemented. We could only add a user group or replace all the groups by another one.
But I just added this feature, so please install these plugins on your website and enjoy ![;)](/media/kunena/emoticons/24.png ";)")

*This attachment is hidden for guests.
Please log in or register to see it.*

*This attachment is hidden for guests.
Please log in or register to see it.*

Last edit: 11 years 4 days ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

11 years 4 days ago -  11 years 4 days ago [\#220021](#220021) by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")  Replied by *[proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#220021 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hi, i tried this all and I see the groups are changed after order, so this part is working.

So, all groups were removed (shopper and such) the only group left was a registered group.

In my configuration, all webshop functionality is only available for group "shopper".

But... the user (who is no longer in 'shopper') can still access the webshop! Only if he logs out and in again, the rights are changed.
So, how do i force that the change in acl really takes place?

Last edit: 11 years 4 days ago by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile").

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

11 years 4 days ago -  11 years 4 days ago [\#220025](#220025) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#220025 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hi,

This version of the plugin will delete the user session and log him out in order to force the use of the new groups and so the new ACLs.

*This attachment is hidden for guests.
Please log in or register to see it.*

Last edit: 11 years 4 days ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

11 years 2 days ago [\#220264](#220264) by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")  Replied by *[proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#220264 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hello Xavier,

I've been testen with the 3 new plugins:
plg_hikashop_massaction_user.zip
plg_system_hikashopmassaction.zip
plg_hikashop_massaction_user_2015-11-09

What happens,
1) the massaction is performed, so the condition and filter is working
2) it is adding the new group "reeds geshopt"
3) it should remove groups but it is not doing that. It is actually *adding* the groups it should remove
4) it's not logging out the user. The user can actually shop again (my shop is for registered only)

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

10 years 11 months ago [\#220552](#220552) by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")  Replied by *[proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#220552 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hello Xavier

the biggest issue is that the auto-logout doesn't work after the order.

It stops at the END step of the checkout process and doesn't logout the user. It would be ideal if the system would pauze 2-3 seconds at the END step, then Logout and then switch to a final good-bye page.

So, this part of your last php isn't doing anything:
if(!$app-&gt;isAdmin()){
foreach($user_ids as $user_id){
if($user_id != hikashop_loadUser())
continue;
$app-&gt;logout( $data-&gt;user_cms_id );
}
}

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 11 months ago -  10 years 11 months ago [\#220679](#220679) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#220679 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hi,

My bad, I gave you the new version of the massaction_user plugin instead of the massaction_order one.
And as you are using an order mass action, that couldn't work as expected.

Here is the new version of the massaction order plugin:
*This attachment is hidden for guests.
Please log in or register to see it.*

Last edit: 10 years 11 months ago by [Xavier](/forum/user/4105-xavier "View Xavier's Profile").

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

10 years 11 months ago [\#220862](#220862) by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")  Replied by *[proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#220862 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hi Xavier,

it's still not working:
- adding 1 new group = OK
- removing 1 group = NOT OK (it does nothing)
- logout user after order = NOT OK (it does nothing)

Wouldn't you need a "Force user logout on group update" option for the order-plugin like you have for the group-plugin?

Can perhaps one of the other plugins conflict with my order plugin?

regards
Suzanne

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 11 months ago [\#220927](#220927) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#220927 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hi,

The code: Code:

$app = JFactory::getApplication(); $config = JFactory::getConfig(); $handler = $config-&gt;get('session_handler', 'none'); if($handler=='database'){ $db-&gt;setQuery('DELETE FROM '.hikashop_table('session',false).' WHERE client_id=0 AND userid IN ('.implode(',',$user_ids).')'); $db-&gt;query(); } if(!$app-&gt;isAdmin()){ foreach($user_ids as $user_id){ if($user_id != hikashop_loadUser()) continue; $app-&gt;logout( $data-&gt;user_cms_id ); } }

should handle the logout.

Does the install of the latest plugin has been done correctly ? No errors returned ?
If it is, please provide a backend and a FTP access via our contact form (with a link to that topic).

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

10 years 11 months ago [\#221074](#221074) by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")  Replied by *[proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#221074 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

I've mailed everything.

Shop is non-public and still in maintenance so you can test.

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 11 months ago [\#221141](#221141) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#221141 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hi,

I am not able to log via FTP, please check the sent informations.

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

10 years 11 months ago [\#221233](#221233) by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")  Replied by *[proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#221233 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

i've just send the right hostname (my mistake), but had to reset the password as well, so there's another password too.

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

- **[Xavier](/forum/user/4105-xavier "View Xavier's Profile")**
- [![Xavier's Avatar](https://www.hikashop.com/media/kunena/avatars/resized/size144/users/avatar4105.png)](/forum/user/4105-xavier "View Xavier's Profile")
- [ Offline](/forum/user/4105-xavier)

Less More

- Posts: 13201
- Thank you received: 2322
-
-
-
- [](http://www.kidiweb.fr)
-

10 years 11 months ago [\#221278](#221278) by [Xavier](/forum/user/4105-xavier "View Xavier's Profile")  Replied by *[Xavier](/forum/user/4105-xavier "View Xavier's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#221278 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

Hi,

I just tried with the new FTP informations you give, but I have a timeout when trying to reach the FTP.
Don't you have IP restrictions of things like that ?

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

10 years 11 months ago [\#221325](#221325) by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")  Replied by *[proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#221325 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

In my filezilla config i have to use:
Encryption-&gt; Only use plain FTP

otherwise same problem

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

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

Less More

- Posts: 79
- Thank you received: 0
-
-

10 years 11 months ago -  10 years 11 months ago [\#221326](#221326) by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")  Replied by *[proo4509](/forum/user/37936-proo4509 "View proo4509's Profile")* on topic *[how to disable shop function \*after\* order?](/forum/27-checkout/880304-how-to-disable-shop-function-after-order#221326 "-- HikaShop version -- : 2.6.0 -- Joomla version -- : 3.4.3 -- PHP version -- : 5.5.23  Hi, i have a webshop for invitees only. My shoppers are already registred (by import) and allowed to shop only once. So, i need to disable the access to the shop after they haved shopped.  Perhaps by changing the acl groups after the last step of the checkout process? for instance by removing the shopper from the shopper group and placing the shopper in the group &quot;has-already-shopped&quot;.  Would this be possible?")*

BTW, I see some improvements:

the groups are changed now after the order and status of the order also changed.
But, there is still no forced logout after order.

and I've disabled caching totally (also disabled jotcache)

Last edit: 10 years 11 months ago by [proo4509](/forum/user/37936-proo4509 "View proo4509's Profile").

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

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