Internet Explorer jQuery Redirect

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-02 02:28:20

The best fix for this is to do the following

Open /catalog/view/javascript/common.js

Find the addToCart function in that file, and then find the first instance of

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

after it. Change that line to

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

Save, and upload to your server via FTP if necessary

I looks like IE is interpreting your redirect poorly. I'd try swapping

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

with an absolute url:

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

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