Assign Virtuemart product customers to Joomla usergroups according to the products they bought. This admin module allows your site admin to batch assign customers of specific products to selected Joomla user groups using multiple select list. This admin module works for j2.5 and VM2.x.

Installation und Usage

Go to the Joomla module manager, select "Admin" in the first combobox (where "Site" and "Admin" are offered) to list only admin (Joomla backend) modules.

Enable the "VM Customers to Joomla Groups Assignment" module and change its position to "cpanel"

Go to your Joomla Backend startpage. You will see the module on the right with two select boxes to select the product(s) and the available Joomla groups.

Select VM product(s) and Joomla group(s) according to your wishes and click "Assign"

If a buyer of the selected products has not yet been a member of the selected group(s), he/she will be added and a corresponding message will be printed.

Please notice that the last step might take some time if you have many orders/customers. If you get a server timeout, simply run it again. As the plugin first checks, which users are already group members, the module will continue where the timeout left off.

Ideas for future enhancements

Make list of offered groups configurable (i.e. show only selected groups in the module)

Make list of offered products configurable

Make order status configurable (currently S, C hardcoded)

Add switch to optionally REMOVE buyers of a certain product from a group rather than add them

License

This module is licenced unter the GNU GPLv2. The module is free of charge and by downloading you automatically obtain all the rights and duties that the GPL gives you. All future upgrades are included (i.e. there is no timelimit on updates). Support is provided in the forums as far as my time allows, but I cannot guarantee proper support.