Jump to content

Skip payment method choice


Recommended Posts

If you only have one payment method it seems a bit pointless to ask people to click on the button to choose it.
I thought so anyway and adapted the file to skip this step and I thought I'd share it here.

It's hardcoding the payment method though so any upgrades or changes may break this in future.

You need to edit order.php.
Find the code that says:

        case 3:
           if(Tools::isSubmit('processCarrier'))
               processCarrier();
           autoStep(3);
           checkFreeOrder();
           displayPayment();
           break;



and change it to :

        case 3:
           if(Tools::isSubmit('processCarrier'))
               processCarrier();
           autoStep(3);
           checkFreeOrder();
           displayPayment();
           Tools::redirect('modules/creditcard/payment.php');
           break;



Change the "modules/creditcard/payment.php" to be the url of the payment method module that you are using.

Link to comment
Share on other sites

  • 2 months later...
  • 1 year later...
  • 6 months later...
  • 2 weeks later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...