Jump to content

Product in cart disappear when changing page


Recommended Posts

Hello, I've got a problem with prestashop 1.5.6.2 cart on top of the pages.

When I add a product to the cart it correctly show on the top page cart widget.

If I change page it show cart empty and to see the product I need to refresh the page. 

If a try to do check out, the products are correctly inside the cart.

The problem seems to be related only to the cart widget on the top of the page.

Someone can help me?

Thank you

Link to comment
Share on other sites

Strange, I have another problem when I delete a product in the ajax cart: if I delete a product and change page the ajax cart still show it. After refreshing the page it go away. Seems to be some cookie problem..

Thank you

Link to comment
Share on other sites

Hi, I'v tried to disable the chrome cache in the developer tools setting and after doing so all works well. Is there a way to make it work properly also with cache or disabe the chrome cache by default? Or users with chrome will have some problems..

Link to comment
Share on other sites

Hi, I've resolved the problem in this way:

 

in the .htaccess file added ExpiresDefault: "access plus 1 second"

 

in this way the browsers are forced to not use the cached version of the page.

In any case this behaviour is strange, we have other 2 e-commerce prestashop same version with default values that do not show this problem in any browser.

I even don't know if this work-around represents the best solution, but at the moment it seems working.

Link to comment
Share on other sites

Hi,

 

For me the same problem. I am braking my head over this. Tried all browsers on mac. Clean cache, smarty cache, paypal not activated,   the default theme on and off, empty cache when all pages of the webshop  are closed, etc. Sometimes it works for a little bit but than again I have the same problem.

In all other posts there are some ideas but none of them help me permanent. I am getting desperate :-(

 

PS 1.5.6.2 updated from 1.4.9

Theme Alysum

 

Cheers

Link to comment
Share on other sites

I just saw something in my apache error log that is very interesting:

 

[Tue Mar 25 11:55:28 2014] [error] [client 66.249.76.143] PHP Notice: Undefined index: productPriceWithoutRedution in /home/xxx/domains/xxxxxxxxxxxxxxxx.nl/public_html/cache/smarty/compile/62/ae/18/62ae18cd547478bbe7dcf7c76c0a0de55de3e9fb.file.product.tpl.php on line 1130

 

This is coming back every time I try to buy something! If I go and look where this folder 62 is, its not there. Is he trying to call something that is not there anymore?


Hi MarcoVan,

have you tried my workaround?

To me it seems to work.

Tried that but no luck. I am not sure if I put it ok in htaccess:

 
<ifModule mod_expires.c>
ExpiresDefault "access plus 1 seconds"
</ifModule>
 
Is this right?
Link to comment
Share on other sites

On the laptop at home it does work. So I can't test it here.

 

But anyway, I would like to know what is causing the error. Can you take a look at your apache error logs? Maybe there are some answers that hit both of us? Can you place your whole htaccess file here?

 

I now see the folder that I talked about earlier. Maybe I was not looking at the right place. I am seeing things flying after a long time looking at the screen :-).

 

Maybe some moderator can tell me what the cache file is telling me?

 

Cheers

Link to comment
Share on other sites

×
×
  • Create New...