Last active
September 13, 2017 05:41
-
-
Save ChaituVR/126cc6451693bb1b243ccff2aa98affa to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1) Open this file: app/design/frontend/rwd/default/template/configurableswatches/catalog/product/view/type/configurable/swatch-js.phtml | |
2) Change this: | |
<script type="text/javascript"> | |
document.observe('dom:loaded', function() { | |
var swatchesConfig = new Product.ConfigurableSwatches(spConfig); | |
}); | |
</script> | |
To this: | |
<script type="text/javascript"> | |
document.observe('dom:loaded', function() { | |
if (Product.ConfigurableSwatches) { | |
var swatchesConfig = new Product.ConfigurableSwatches(spConfig); | |
} | |
}); | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment