我刚刚开始使用Magento 1.9.1 CE来构建我的网站的新版本。在做了一些小改动后,我注意到在产品视图页面上,图像缩放和在更多视图下选择不同产品图像的功能都不起作用。下面是一个显示行为的产品页面示例:
经过深入研究,我发现Magento使用ElevateZoom插件来实现此功能。然而,我不知道我可能做了什么改变来导致它崩溃。
这是我看到的错误消息:
Uncaught TypeError: undefined is not a function app.js:1194
ProductMediaManager.createZoom app.js:1194
ProductMediaMan
我在使用magicZoom时遇到了麻烦。当我快速更改已激活magicZoom的2张图片时,magicZoom库在控制台中显示:
Uncaught TypeError: Cannot read property 'width' of null
at d.eval (eval at <anonymous> (magiczoom.min.js:11), <anonymous>:1:84962)
at Function.eval (eval at <anonymous> (magiczoom.min.js:11), <anony
在我发起一个JS应用程序之后,我将使用这两个函数来设置和重置meta标记
function setMeta(){
alert("meta set");
$('meta[name=viewport]').attr('content', 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, user-scalable=0');
}
function resetMeta(){
al