Internet Explorer jQuery重定向
我目前正在使用 http://thetradinghouse.co.nz ,并且在访问购物车采取的过程是.
I am currently working on http://thetradinghouse.co.nz and I have an issue when accessing the cart the process that is taken is.
-
选择类别.
Select Category.
选择一个产品并打开产品页面.
Select a product and open the products page.
点击添加到购物车.
该产品已添加到购物车,但页面使用uri http://www.thetradinghouse.co.nz/sporting-goods/index.php?route=checkout/cart
The product adds to the cart but the page redirects to the category page with the 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中一样
The above step should just load http://www.thetradinghouse.co.nz/index.php?route=checkout/cart
Like it does in Chrome and Firefox
我正在使用以下 SEO模块,并与我为此问题感到困惑的开发人员保持联系.
I am using the following SEO Module and have been in contact with the developer whom I have stumped with this issue.
这里是与我的product.tpl和common.js的链接,因为它太大而无法实现在这里.
Here is a link to my product.tpl and common.js as it was too big to implement here.
对此的最佳解决方法是执行以下操作
The best fix for this is to do the following
打开/catalog/view/javascript/common.js
在该文件中找到addToCart
函数,然后找到
Find the addToCart
function in that file, and then find the first instance of
window.location.href = 'index.php?route=checkout/cart';
之后.将该行更改为
window.location.href = $('base').attr('href') + 'index.php?route=checkout/cart';
保存,并在必要时通过FTP上传到您的服务器
Save, and upload to your server via FTP if necessary