LBPC Posted August 1, 2013 Share Posted August 1, 2013 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 More sharing options...
LBPC Posted August 2, 2013 Author Share Posted August 2, 2013 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 More sharing options...
Mariem KPMC Posted August 2, 2013 Share Posted August 2, 2013 Hi Normally it's in the module folder.. Link to comment Share on other sites More sharing options...
LBPC Posted August 2, 2013 Author Share Posted August 2, 2013 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 More sharing options...
vekia Posted August 2, 2013 Share Posted August 2, 2013 you should edit template files of the module template file means = .tpl Link to comment Share on other sites More sharing options...
LBPC Posted August 2, 2013 Author Share Posted August 2, 2013 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 More sharing options...
vekia Posted August 2, 2013 Share Posted August 2, 2013 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? 1 Link to comment Share on other sites More sharing options...
LBPC Posted August 2, 2013 Author Share Posted August 2, 2013 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 More sharing options...
LBPC Posted August 4, 2013 Author Share Posted August 4, 2013 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? Link to comment Share on other sites More sharing options...
andrewliddy Posted January 26, 2015 Share Posted January 26, 2015 ./modules/paypal/views/templates/hook/ You'll find the 'button.tpl' has html to the button image location. I guess you could hyperlink it to whatever location/site you want. 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now