PrestaShop Forum

The best place in the world to ask questions about PrestaShop and get advice from our passionate community!

PrestaShop Forum

Jump to content

 

Skip payment method choice

4 replies to this topic
#1
lordanthony

    PrestaShop Apprentice

  • Members
  • PipPip
  • 33 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.

#2
Naveed Awan

    PrestaShop Newbie

  • Members
  • Pip
  • 2 posts
hi iam making a pizza home delevery website and i need payment methood as on door payment . so i don,t want that in oder prosse system ask to user about payment methood and order should came on email

#3
motorider

    PrestaShop Newbie

  • Members
  • Pip
  • 2 posts
I used your method but I have an error

Fatal error: Class 'PaymentModule' not found in /public_html/modules/bankwire/bankwire.php on line 3


#4
FavMedia

    PrestaShop Newbie

  • Members
  • Pip
  • 20 posts
So many dead ends

#5
pjssms

    PrestaShop Apprentice

  • Members
  • PipPip
  • 26 posts
I am with the same issue.

I think that is due to been changing the directories ...


I can not see any payment module avaliable on finishing the order