购物车产品在刷新页面上消失 [英] Cart products dissapear on refresh page Prestashop

查看:71
本文介绍了购物车产品在刷新页面上消失的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几个星期以来,我的Prestashop 1.4.0.12出现了问题



将产品添加到购物车后,ajax可以正常工作,并且添加产品效果很好。 / p>

但是,如果我更改页面或有时添加产品,购物车更改将删除所有产品,并刷新新页面。



有时我可以在某些页面中移动,但会消失购物车中的产品,如果以后有新的购物车返回到旧购物车,则会消失。



任何人都知道关于它?我认为问题出在id_guest上,但我想知道是否有人可以解决问题



谢谢!

解决方案

问题出在域名上,该站点有3个域,我对工具类的功能进行了评论,因为



例如,


,它会在Cache上保存一些有时会显示 .com链接的数据。



您在网站www.blablabla.com上输入,然后smarty捕获了所有数据并将其保存到服务器中。但是该网站上也有www.blablabla.org,如果输入,您可以将产品放到购物车上并访问页面(域名上带有.org),但是当您输入产品类别时,可以巧妙地链接到 .com网站,并且



对不起,我的英语不好,我希望您已经了解了:P


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!

解决方案

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

这篇关于购物车产品在刷新页面上消失的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆