PrestaShop Forums: Skip payment method choice - PrestaShop Forums

Jump to content


Welcome to the PrestaShop Forum! We hope you'll share your comments and suggestions with us. We ask that you please post in English to the main sections of the PrestaShop Forum. If you want to write in another language, please post in the corresponding PrestaShop Community section below.

Please note that PrestaShop Community sections are largely self-moderated. PrestaShop team members may or may not participate in non-English sections. To improve the chances of receiving feedback to your question or comment, please post it in English to the main sections of our Forum.

NYC

Vous parlez français ? par ici !


Skip payment method choice


Skip payment method choice

#1 lordanthony

    PrestaShop Apprentice

  • 09 May 2008
  • Members
  • PipPip
  • 33 posts

Posted 08 November 2008 - 11:33 PM

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

  • 06 Nov 2008
  • Members
  • Pip
  • 2 posts
  • Location:Germany

Posted 10 January 2009 - 10:26 PM

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

  • 02 Nov 2009
  • Members
  • Pip
  • 2 posts

Posted 20 March 2010 - 12:53 PM

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

  • 28 Aug 2010
  • Members
  • Pip
  • 20 posts

Posted 28 September 2010 - 10:21 PM

So many dead ends

#5 pjssms

    PrestaShop Apprentice

  • 05 Jul 2009
  • Members
  • PipPip
  • 26 posts

Posted 08 October 2010 - 09:54 AM

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





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users