Jump to content

no 'other payment methods' if there isn't any


Recommended Posts

How to make it so this button will not appear if there is just 1 payment method for selected country? Also, it is the same for 'please choose carrier' and then there is just one carrier, i.e. not much to choose from? Thank you.

Link to comment
Share on other sites

i haven't looked at mine yet but if there's no way to set that in the backend then it sounds like you would need to edit the tpl file for that stage of the checkout process. sometimes there's a way in the backend that's not all that obvious to us beginners, however which is preferred if at all possible as edits to core pieces of prestashop will be overwritten with updates.

Link to comment
Share on other sites

  • 8 months later...

Has anyone found the way to turn it off in the back end? Which .tpl should I be looking for?

 

Thank you!

 

You can remove the "Other payment methods" button by commenting out some code in one of the template files for the payment module. The template file is different, depending on the payment module. The one that you need for PayPal and Google Checkout, for example, is called confirm.tpl; for Bankwire and Cheque it's payment_execution.tpl; Cash on Delivery-validation.tpl. The code that you have to comment out is very similar for all payment modules and it can be found almost at the and of the template file. For PayPal it looks like this:

 

<a href="order.php?step=3" class="button_large">
{l s='Other payment methods' mod='paypal'}</a>

Each module has a folder in the "modules" directory, which is itself located in the root PrestaShop directory on your hosting account. Inside the folder for the particular module you can find its template files.

Link to comment
Share on other sites

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...