Domanda

I removed the jQuery elevate script from my site using this in the local.xml:

<catalog_product_view translate="label">
    <reference name="head">
        <action method="removeItem"><type>skin_js</type><name>js/lib/elevatezoom/jquery.elevateZoom-3.0.8.min.js</name></action>
    </reference>
</catalog_product_view>

Only problem, is that there is an error in the console that says it misses this file:

app.js:649 Uncaught TypeError: image.elevateZoom is not a function

Is there any clean way to remove this error, while also removing the script?

UPDATE

I noticed, by removing the script, the image switching does not work anymore (switching between images to display them in the bigger image)

È stato utile?

Soluzione

Well I guess you want to disable the zoom so you will have to override the skin/frontend/rwd/default/js/app.js in your custom theme and remove/comment the following line:

image.elevateZoom();

It's line 1194 in Magento 1.9.2.4

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a magento.stackexchange
scroll top