starsec Posted September 21, 2011 Share Posted September 21, 2011 Hello, I've installed the PayPal module to my PrestaShop but, when I try to put through a purchase and select PayPal icon, it takes me back to my sites main page. The link for this is: http://starsec.com.au/StarOnline/modules/paypal/payment/submit.php Seems to be an issue with the 'submit.php' communicating with PayPal. Can anyone help me with this problem? Thank you for your time Link to comment Share on other sites More sharing options...
Fabien Serny Posted September 21, 2011 Share Posted September 21, 2011 Hi, What version of PrestaShop are you using ? What is the version of the PayPal module ? Link to comment Share on other sites More sharing options...
starsec Posted September 22, 2011 Author Share Posted September 22, 2011 Prestastore: Version 1.3.2.3 PayPal: Version 2.8 I have reservations in updating Prestastore because I don't want to have issues with design, products being lost, database etc. If this is why PayPal module isn't working, is there: An older version of the PayPal module? Link to comment Share on other sites More sharing options...
Noe Omohundro Posted September 23, 2011 Share Posted September 23, 2011 You use <? print_r($_REQUEST); exit; ?> On redirect page and check what data you Post on page is it blank or not? -------------------- iPhone 5 Cases Link to comment Share on other sites More sharing options...
starsec Posted September 23, 2011 Author Share Posted September 23, 2011 Noe, thanks for that but, which file do I add that code to? Fabien, thanks for your help- please assist in what is the best way to solve this problem Link to comment Share on other sites More sharing options...
Fabien Serny Posted September 23, 2011 Share Posted September 23, 2011 Hi, There is a problem of retrocompatibility between PrestaShop 1.3 and PayPal 2.8 When you sait Prestastore, you mean PrestaShop or PrestaBox ? By memory you should do something like this : - Open your /config/config.inc.php and set display_errors to on - Open your /classes/Cart.php and add these lines just before the function "getFields" : const ONLY_PRODUCTS = 1; const ONLY_DISCOUNTS = 2; const BOTH = 3; const BOTH_WITHOUT_SHIPPING = 4; const ONLY_SHIPPING = 5; const ONLY_WRAPPING = 6; const ONLY_PRODUCTS_WITHOUT_SHIPPING = 7; - Copy your .tpl file of your PayPal directory in /themes/yourtheme/modules/paypal/ You will have to create a directory modules and paypal in your theme. - Open the tpl, and delete the this->getPageLink For example : {$link->getPageLink('contact-form.php', true)} become contact-form.php I will release a new version of the module but I don't have any release date for now. Best regards, Link to comment Share on other sites More sharing options...
starsec Posted September 27, 2011 Author Share Posted September 27, 2011 Hello Fabien, I very much appreciate your help and time in typing out this guide. After following the steps, I still seem to be having the same issue. The problem comes with the redirect.tpl file located in the 'standard' folder in PayPal's directory. It seems as if the 'redirect.tpl' file is not loading correctly. Thank you again Link to comment Share on other sites More sharing options...
Fabien Serny Posted September 28, 2011 Share Posted September 28, 2011 Hi Starsec, Have you tried to place the file redirect.tpl in the directory /themes/yourtheme/modules/paypal/ ? Link to comment Share on other sites More sharing options...
Jevgen Posted September 29, 2011 Share Posted September 29, 2011 Hi there. Use PayPal version 2.4 perfectly works with PS 1.3.6.0 paypal_2.4.zip 1 Link to comment Share on other sites More sharing options...
starsec Posted September 30, 2011 Author Share Posted September 30, 2011 Jevgen... THANK YOU! Link to comment Share on other sites More sharing options...
Jevgen Posted September 30, 2011 Share Posted September 30, 2011 no problem man ) Link to comment Share on other sites More sharing options...
Fabien Serny Posted September 30, 2011 Share Posted September 30, 2011 Thanks Jevgen Link to comment Share on other sites More sharing options...
hiepnn Posted October 25, 2011 Share Posted October 25, 2011 thanks it's really perfect work! Link to comment Share on other sites More sharing options...
Informatos Posted October 27, 2011 Share Posted October 27, 2011 I have the same problema here, with version 1.4.4.1 and the native module that comes with PS. gives a blank page. I tried tu use the version 2.4 of paypal, but give a error "No template found for module PaypalPayment" Any solution? Link to comment Share on other sites More sharing options...
Fabien Serny Posted October 29, 2011 Share Posted October 29, 2011 Yes, you can use PayPal 2.8.2 available for free on PrestaShop Addons Link to comment Share on other sites More sharing options...
dsavaq Posted February 7, 2012 Share Posted February 7, 2012 I have the same problem (PayPal icon, it takes me back to my main page) I'm running PrestaShop 1.4.4.0 and PayPal v2.8.5 any ideas? Link to comment Share on other sites More sharing options...
petersf Posted August 1, 2012 Share Posted August 1, 2012 It was very good.. I tried with your suggestions and works perfectly fine. Thanks for starsec for asking the question which now I was facing the problem. 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