VirtueMart

WooCommerce

Others

Docs

Support

Demo

Blog

About

Forum
Welcome, Guest
Username: Password: Remember me

TOPIC: Do not remove the select gurpo

Do not remove the select gurpo 25 Apr 2016 21:13 #1

Do not remove the select gurpo

I selected a group where the user goes after purchase , so far it's all right.

when I test canceling the purchase, it does not remove the sub group.
Attachments:
The administrator has disabled public write access.

Do not remove the select gurpo 04 May 2016 00:03 #2

Dear Pandocomunicacao,
I think there is a misunderstanding about the configuration settings. The "Remove from Joomla Usergroup" is not intended to remove the user from that group when the purchase is cancelled, but rather when the purchase is done.

When an order is cancelled, everything done on purchase is reversed automatically. There is no need (and not even any way) to explicitly define which groups are removed (or added) when an order is cancelled.
I think you simply need to remove "Produto 1" from the list of groups to be removed. When an order is done, the user is added to that group (because that's what you configured the plugin to do), unless the user had already been a member of that group. The plugin keeps track of which group is added/removed on purchase. When the order is cancelled, the plugin simply looks into the database which groups have been added on purchase and removes those groups again.
If the user had already been member of "Produto 1" before his purchase, the plugin cannot add that group any more, and cancelling the order will also not remove the user, because the purchase didn't add that group.

Best regards,
Reinhold
The administrator has disabled public write access.

VM - Shopping cart

 x 

Cart empty

Login Formular