nocturnal Posted May 3, 2014 Share Posted May 3, 2014 I'm using Paypal on 2 different stores. Each store has its own different checkout page style. Paypal sets one of these as the primary style, saying: 'Your Primary page style will automatically be applied to all of your payment pages unless you specify otherwise.' How do we specify otherwise in Prestashop? I've looked through the configuration of the Paypal module and cannot find anywhere to type in the name of the store's page style. All advice gratefully received! 1 Link to comment Share on other sites More sharing options...
nocturnal Posted May 5, 2014 Author Share Posted May 5, 2014 Okay, I've contacted Paypal and they've sent me the following reply: "During the checkout from your site to PayPal, if your website is using PayPal Payment Standard, your website can pass in "page_style=YOUR STYLE NAME" so PayPal can display the correct style for that site. If your website is using express checkout, you can pass in "pagestyle=YOUR STYLE NAME". This require coding change in your site to achieve it. If you do not have control of your shopping cart code, you will have to consult them to see if they provide you option to change it or not. They can refer to the following documentation for more information.https://developer.paypal.com/webapps/developer/docs/classic/paypal-payments-standard/integration-guide/Appx_websitestandard_htmlvariables/https://developer.paypal.com/webapps/developer/docs/classic/api/merchant/SetExpressCheckout_API_Operation_NVP/ End of message. My store uses Paypal Express Checkout. Can anyone tell me exactly which file (and which line in the file) in the Paypal Gateway module I should place "pagestyle=YOUR STYLE NAME" ? Cheers! Link to comment Share on other sites More sharing options...
nocturnal Posted May 7, 2014 Author Share Posted May 7, 2014 A forum member has PMd me asking 'Hi Im in NZ and am looking for paypal to work i need the same one as you, where did you find the link?' so I thought I'd post the answer here. https://www.paypal.com/au/cgi-bin/webscr?cmd=p/mer/cowp_summary-outside Link to comment Share on other sites More sharing options...
jumbo Posted May 19, 2014 Share Posted May 19, 2014 After you create your style in your Paypal settings under "Custom payment pages" and given your style a unique name (say, 'paystyle83'), open the template file 'standard.tpl' (considering you are using the standard checkout in Prestashop) in the Paypal module directory and add the following line: <input type="hidden" name="page_style" value="paystyle83" /> So that must go in the HTML of the form that makes up the Paypal checkout button. When your customer clicks this, they're taken to the styled page mentioned. Hope this helps. 1 Link to comment Share on other sites More sharing options...
nocturnal Posted May 24, 2014 Author Share Posted May 24, 2014 Brilliant! Thank you jumbo! Link to comment Share on other sites More sharing options...
jumbo Posted May 24, 2014 Share Posted May 24, 2014 Brilliant! Thank you jumbo! You're welcome Link to comment Share on other sites More sharing options...
Recommended Posts