Author Topic: BUG: Payment method radio list w. shopper groups  (Read 4280 times)

DansKO

  • Beginner
  • *
  • Posts: 38
BUG: Payment method radio list w. shopper groups
« 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
Code: [Select]
$q .= "(shopper_group_id='$default_shopper_group_id' ";
$q .= "OR shopper_group_id='".$auth["shopper_group_id"]."') ";
with this one:
Code: [Select]
$q .= "shopper_group_id='".$auth["shopper_group_id"]."' ";
Bugtracker task #:
-

System info:
Windows XP Prof, Apache, PHP < 5, mysql version ?).

rainboww

  • Beginner
  • *
  • Posts: 5
Re: BUG: Payment method radio list w. shopper groups
« Reply #1 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

DansKO

  • Beginner
  • *
  • Posts: 38
Re: BUG: Payment method radio list w. shopper groups
« Reply #2 on: July 22, 2009, 13:29:08 pm »
great! that it helped someone.