Jump to content

Paypal error: 'submit.php' blank page


starsec

Recommended Posts

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

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

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

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

  • 4 weeks later...
  • 3 months later...
  • 5 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...