Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

"Please select a payment method for your order" Problem


cvnieman

Recommended Posts

Posted

Hi everyone,

 

I have a problem with checking out. Some users (not all) get a message that says "Please select a payment method for your order". There is only one payment method available (authorize net - AIM), so the radio buton will not show up. So, not mater what the user does, they cannot complete the order even thought the CC information is entered.

 

I found this code in payment.php which indicates that it should work when 1 payment method is available:

 

// if there is only one payment method, select it as default because in

// checkout_confirmation.php the $payment variable is being assigned the

// $HTTP_POST_VARS['payment'] value which will be empty (no radio button selection possible)

if ( (tep_count_payment_modules() == 1) && (!isset($GLOBALS[$payment]) || (isset($GLOBALS[$payment]) && !is_object($GLOBALS[$payment]))) ) {

$payment = $include_modules[0]['class'];

}

 

if ( (tep_not_null($module)) && (in_array($module, $this->modules)) && (isset($GLOBALS[$module]->form_action_url)) ) {

$this->form_action_url = $GLOBALS[$module]->form_action_url;

}

}

}

 

Not sure what is causing the problem. Certain user accounts (mine) do not have this problem.

 

Has anyone seen this before? Any help is greatly appreciated.

 

Thanks,

 

Chris

Posted

Chris,

 

It always helps if you drop your store address in your posting.

 

But I'll take a stab - could this be a Localization problem? If works for you because your account is in the correct Tax Zone.

 

Question, do you have "Payment Zone" set to "None" under Modules / Payments? If not, try it and see what happens.

 

Good luck, and don't worry. There's always small bugs to work out in a new osc installation.

 

Pete

Posted

Thanks Pete,

 

That seemed to fix the problem. I would have searched forever looking for that.

 

Thanks again!

 

Chris

Posted

Glad it worked for you, sometimes I get lucky.

 

Also, you may run into a similar problem with UPS shipping, or other shipping modules not working if they have a zone setting as well.

 

 

 

Pete

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...