Cart products dissapear on refresh page Prestashop

好久不见. 提交于 2019-12-08 05:15:46

问题


since some weeks I have a problem with my Prestashop 1.4.0.12

When I add a product to cart, ajax works correctly and add the product very well.

But, if I change page, or sometimes adding a product, the cart change deleting all products on refresh a new page.

Sometimes I can move within some pages, but dissapears the products of the cart and later if I have a new cart returns to the old cart.

Anybody knows about it? I think that the problem is on id_guest but I need to know if anyone have some solution

Thanks!


回答1:


The problem is on Domain Name, that site have 3 domains, and there are a function on Tools class that I comment because it saves on Cache some data that displays sometimes ".com" link when you are on ".org" site.

For example:

You enter on your site www.blablabla.com, and smarty caught all data and saves into server. But this web also have www.blablabla.org, if you enter you can put products on cart and visit pages (with .org on domain name) but when you enter in a product category, smarty links to ".com" site, and the Cookie where you have the product cart info dissappears because regenerate a new cookie.

Sorry for my bad english... I hope you have understood :P



来源:https://stackoverflow.com/questions/10733051/cart-products-dissapear-on-refresh-page-prestashop

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!