2

我目前正在http://thetradinghouse.co.nz上工作,在访问购物车时遇到问题,所采取的过程是。

  • 选择类别。

  • 选择产品并打开产品页面。

  • 点击加入购物车。

  • 产品添加到购物车,但页面重定向到带有 uri 的类别页面http://www.thetradinghouse.co.nz/sporting-goods/index.php?route=checkout/cart

http://www.thetradinghouse.co.nz/index.php?route=checkout/cart上面的步骤应该像在 Chrome 和 Firefox 中一样加载

我正在使用以下SEO 模块,并已与我遇到此问题的开发人员联系。

这是我的 product.tpl 和 common.js 的链接,因为它太大而无法在此处实现。

4

2 回答 2

0

我看起来 IE 对您的重定向的解释很差。我会尝试交换

121: window.location.href = 'index.php?route=checkout/cart';

带有绝对网址:

window.location.href = 'http://www.thetradinghouse.co.nz/index.php?route=checkout/cart'

于 2011-11-23T20:05:45.833 回答
0

最好的解决方法是执行以下操作

打开/catalog/view/javascript/common.js

在该文件中找到addToCart函数,然后找到第一个实例

window.location.href = 'index.php?route=checkout/cart';

在它之后。将该行更改为

window.location.href = $('base').attr('href') + 'index.php?route=checkout/cart';

如有必要,保存并通过 FTP 上传到您的服务器

于 2011-11-23T20:46:55.207 回答