Jump to content

[SOLVED]: Impossible to add the product to the cart


joergenaj

Recommended Posts

This message suddently appeared after deleting the cache files in smarty/ That was after working to get a module to work, bought from addons.prestashop.com: Darique - Gift products on order. The module might have been in conflict somehow. I even disabled all non-prestashop modules, but the error remained. When disabling AJAX for the cart, it goes to a cart page that is just blank.

Edited by joergenaj (see edit history)
Link to comment
Share on other sites

Thanks. Now enabled, and it says:
 

Warning: Cannot modify header information - headers already sent by (output started at /home/ddk1/shop/config/calltracking-script.html:7) in /home/ddk1/shop/controllers/front/CartController.php on line 56

 

Warning: Cannot modify header information - headers already sent by (output started at /home/ddk1/shop/config/calltracking-script.html:7) in /home/ddk1/shop/classes/Tools.php on line 110

Edited by joergenaj (see edit history)
Link to comment
Share on other sites

FOUND THE ERROR:

It was that calltracking that the marketing company put in that blocked the cart button. I found it in index.php:

require(dirname(__FILE__).'/config/config.inc.php');
require(dirname(__FILE__).'/config/calltracking-script.html');
Dispatcher::getInstance()->dispatch();

Then I just uploaded the old local index.php, and no problem anymore.

Anywhere to mark as solved?

  • Like 1
Link to comment
Share on other sites

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...