VirtueMart Forum

VirtueMart Dev/Coding Central: VM1 (old version) => Virtuemart 1.1 Development (Archiv) => Quality & Testing VirtueMart 1.1.x => Topic started by: DansKO on May 15, 2008, 19:07:16 PM

Title: BUG: Payment method radio list w. shopper groups
Post by: DansKO on May 15, 2008, 19:07:16 PM
Description:
On checkout process, the payment methods list to choose from (the ones with radio buttons) don't reflect the shopper group the shopper is a member of.

VirtueMart Version:
VM 1.1.0

Joomla/Mambo Version:
1.0.15

Steps to replicate:
Create two shooper groups, one is default. Create different payment modules ( i used only nocheck-payments, like COD) for those shopper groups. Now when shopping as a non-default-shopping group member, all the published payment modules are listed on checkout process.

Proposed fix(es):
In ps_payment_method.php replace those two lines 402, 403

$q .= "(shopper_group_id='$default_shopper_group_id' ";
$q .= "OR shopper_group_id='".$auth["shopper_group_id"]."') ";

with this one:
$q .= "shopper_group_id='".$auth["shopper_group_id"]."' ";

Bugtracker task #:
-

System info:
Windows XP Prof, Apache, PHP < 5, mysql version ?).
Title: Re: BUG: Payment method radio list w. shopper groups
Post by: rainboww on July 22, 2009, 12:58:48 PM
Thanks a lot. ;)
I had the same problem with joomla 1.5.11 and virtuemart 1.1.3
Title: Re: BUG: Payment method radio list w. shopper groups
Post by: DansKO on July 22, 2009, 13:29:08 PM
great! that it helped someone.