News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Payment plugin bug

Started by DayCounts, April 30, 2012, 07:50:36 AM

Previous topic - Next topic

DayCounts

Hi,
I found a bug in Virtuemart 2.0.6 for the virtuemart Payment plugin.
When a customer is assigned to several shoppers groups, this results in an SQL Query error:

Fix is very easy :
File /administrator/components/com/virtuemart/plugins/vmpsplugin.php
Line 525
Replace code $q .= 's.`virtuemart_shoppergroup_id`= "' . (int) $groups . '" OR';
With $q .= ' s.`virtuemart_shoppergroup_id`= "' . (int) $groups . '" OR';

Note the added leading space

Milbo

Should I fix your bug, please support the VirtueMart project and become a member
______________________________________
Extensions approved by the core team: http://extensions.virtuemart.net/