Zen Cart Logo
Forums / Built-in Shipping and Payment Modules / No radio button for PayPal IPN as sole payment module

No radio button for PayPal IPN as sole payment module

Locked

Views: 1,482

Results 1 to 5 of 5
This thread is locked. New replies are disabled.
22 May 2007, 9:45 AM
#1
sakwoya avatar

sakwoya

New Zenner

Join Date:
Jan 2004
Posts:
26
Plugin Contributions:
2

No radio button for PayPal IPN as sole payment module

Hi

I'm working on a Zencart installation which is throwing up a problem with payment modules. If PayPal IPN is installed by itself then no radio button for the customer to select it as a payment option appears during the checkout process. If we install Cash on delivery then both will show up as options.

The PayPal IPN looks to be properly configured.

Any suggestions?

GT

23 May 2007, 9:23 PM
#2
sakwoya avatar

sakwoya

New Zenner

Join Date:
Jan 2004
Posts:
26
Plugin Contributions:
2

Re: No radio button for PayPal IPN as sole payment module

OK - looks like this may be due to the code in includes/classes/payment.php
around line 71 I have

  // if there is only one payment method, select it as default because in
  // checkout_confirmation.php the $payment variable is being assigned the
  // $_POST['payment'] value which will be empty (no radio button selection possible)
  if ( (zen_count_payment_modules() == 1) && (!isset($_SESSION['payment']) || (isset($_SESSION['payment']) && !is_object($_SESSION['payment']))) ) {
    if (!$credit_covers) $_SESSION['payment'] = $include_modules[0]['class'];
  }

  if ( (zen_not_null($module)) && (in_array($module, $this->modules)) && (isset($GLOBALS[$module]->form_action_url)) ) {
    $this->form_action_url = $GLOBALS[$module]->form_action_url;
  }
}

}

If I make ANY payment module the only available one then there is no radio button at all

Any ideas?

23 May 2007, 9:52 PM
#3
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,694
Plugin Contributions:
56

Re: No radio button for PayPal IPN as sole payment module

This is the way it's supposed to work. You don't need a radio button if there's no choice to be made.

23 May 2007, 10:15 PM
#4
sakwoya avatar

sakwoya

New Zenner

Join Date:
Jan 2004
Posts:
26
Plugin Contributions:
2

Re: No radio button for PayPal IPN as sole payment module

Hi - I've just found that out!
You don't need the radio button - just need to click onto part 3 of the checkout! If only one payment module is selected then you get no radio button. I've checked a default installation of 1.3.7 and it looks fine - in the store I'm working on the layout and wording has been changed to a quite ambiguous expression (it's certainly wasted a few minutes of my time).

Thanks for the help

23 May 2007, 10:25 PM
#5
swguy avatar

swguy

Administrator

Join Date:
Feb 2006
Location:
Tampa Bay, Florida
Posts:
10,694
Plugin Contributions:
56

Re: No radio button for PayPal IPN as sole payment module

I suppose you could put one in and have it checked if you wanted to. It would be like radio in North Korea - one choice! :)

Good luck,
Software Guy