Jump to content

how to change paypal button code?? help please


Recommended Posts

Hi,

I've got two online stores with 1 paypal account. I need to change the paypal button code so each online store have its own paypal email address and page
this is what paypal said what to do, but I'm not exactly sure how to do it on prestashop

To use the a custom payment page that is not default you will need to use the "page_style" variable in the PayPal button code like so:

<input type="hidden" name="page_style" value="NEWNAME">

Also to use a different email address for the different website you will also need to set this in the PayPal button code, change the value of the business variable in the code like so:

<input type="hidden" name="business" value="[email protected]">

If you are using a third party cart system you will need to contact them directly for assistance with this as they are the code owners and will be able to advise on how to make the changes.

Link to comment
Share on other sites

To change the business value, you just need to go to Payment > PayPal > Configure and change the "PayPal business email". To change the page_layout value is more difficult, since Prestashop doesn't already have a value for it. If you are using Prestashop v1.2.5, you'll need to edit modules/paypal/paypal.tpl. If you are using Prestashop v1.3, you'll need to edit modules/paypal/redirect.tpl. Just add the following along with the other hidden inputs:

<input type="hidden" name="page_style" value="NEWNAME">



I have no idea what NEWNAME is supposed to be. Hopefully, you know what to change it to.

Link to comment
Share on other sites

  • 2 years later...

Hi Rocky,

 

Any idea how this would be done in v1.5. I have already added the hidden input field and the value is definitely passed to payment.php however the PayPal style does not seem to change.

 

Would be great to have a field in in the PayPal module config where store owners can just add the name of the style they wanted used with that PayPal module.

 

Any ideas on a fix?

 

Thanks

Link to comment
Share on other sites

  • 6 months 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...