Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

How can i skip the Payment Method page cos only paypal available


Guest

Recommended Posts

there are many clicks during payment procedure and i'd like to minimize it.

How can i skip the middle part "select payment method", jumping from "delivery information" to "confirmation"?

 

Any ideas? please help.

Link to comment
Share on other sites

  • 6 months later...
Any ideas?

Try this

 

Open catalog/checkout_payment.php - around line 112 you'll see

 

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

 

add tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL')); thus:

 

tep_redirect(tep_href_link(FILENAME_CHECKOUT_CONFIRMATION, '', 'SSL'));

?>

<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

 

I'm sure there's a more elegant way of doing it but that seems to do the trick for me (i.e. you could write a little bit of php to go after line 105

load all enabled payment modules

require(DIR_WS_CLASSES . 'payment.php');

$payment_modules = new payment;

// New code

if only one payment module loaded then go to checkout-confirmation else continue

//end new code

 

Graeme

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...