VirtueMart Forum

VirtueMart 2 + 3 + 4 => Virtuemart Development and bug reports => Topic started by: DayCounts on April 30, 2012, 07:50:36 AM

Title: Payment plugin bug
Post by: DayCounts on April 30, 2012, 07:50:36 AM
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
Title: Re: Payment plugin bug
Post by: Milbo on April 30, 2012, 12:49:06 PM
thanks, is corrected.