Skip to content

Instantly share code, notes, and snippets.

@ChaituVR
Last active September 13, 2017 05:41
Show Gist options
  • Save ChaituVR/126cc6451693bb1b243ccff2aa98affa to your computer and use it in GitHub Desktop.
Save ChaituVR/126cc6451693bb1b243ccff2aa98affa to your computer and use it in GitHub Desktop.
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