Jump to content

Which file has the code to modify paypal button?


Recommended Posts

Hi

 

I need to add some code to my paypal button to tell it which paypal payment page to show (I have 2 sites linked to same account).

 

Paypal have sent me the code but I don't know which file (or where) to add it.

 

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

 

Anybody know?

 

I use latest version prestashop, currently default template.

 

Thanks.

Link to comment
Share on other sites

So Paypal have just written again to say that the code they gave me (above) is wrong:

 

You only have to specify the name of the style to show in the code of request API SetExpressCheckout :

 

PAGESTYLE=NameOfTheStyleYouHaveCreated

 

But they can't tell me where to change/add it. Can anyone tell me please?

Link to comment
Share on other sites

  On 8/2/2013 at 11:36 AM, Mariem KPMC said:

Hi

Normally it's in the module folder..

 

Thanks, but which file in which of the folders? ../modules/paypal/express_checkout>payment.php ?

 

or

 

/modules/paypal>paypal_install.php ?

 

I don't know which .php file to add the code to.

Link to comment
Share on other sites

Thanks for your reply.

 

Ok, paypal told me tp modify a php file... will modifying a template file affect updates or something?

 

I found express_checkout_payment.tpl, which has this code at the bottom:

 

<form id="paypal_payment_form" action="{$base_dir_ssl}modules/paypal/express_checkout/payment.php" data-ajax="false" title="{l s='Pay with PayPal' mod='paypal'}" method="post">

<input type="hidden" name="express_checkout" value="{$PayPal_payment_type}"/>

<input type="hidden" name="current_shop_url" value="{$PayPal_current_page}" />

</form>

 

Any advice on which code and where to put it? This is just so paypal directs to the correct page style.

Link to comment
Share on other sites

Hi

 

To make things easier, i have disabled the paypal buttons on product pages, I only have the one button in the last step of the order.

 

(I would like to add Express Checkout later, but for now I just need to get it working!)

 

I have 2 payment page styles for 2 sites, I need the button to direct to the correct page style.

Link to comment
Share on other sites

  On 8/2/2013 at 2:38 PM, vekia said:

hello

 

just say something more about paypal button that you want to change,

you're talking about express checkout button on product page? or about paypal button in last step of your order?

 

Can you help please? :rolleyes:

Link to comment
Share on other sites

  • 1 year 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...