i magento bin mit 1.9.3.1 und unter Fehler auftritt auf konfigurierbaren ProduktdetailseiteTypeerror: Product.ConfigurableSwatches ist kein Konstruktor in MAGENTO 1.9.3
TypeError: Product.ConfigurableSwatches is not a constructor
i magento bin mit 1.9.3.1 und unter Fehler auftritt auf konfigurierbaren ProduktdetailseiteTypeerror: Product.ConfigurableSwatches ist kein Konstruktor in MAGENTO 1.9.3
TypeError: Product.ConfigurableSwatches is not a constructor
Das ist ein Fehler in Magento zu sein scheint, da Ich konnte es bei einer Neuinstallation reproduzieren, wenn die folgenden beiden Bedingungen erfüllt sind:
Sie können es durch Überprüfung zu lösen, wenn Product.ConfigurableSwatches
vorhanden ist, bevor es ruft:
1) Öffnen Sie diese Datei: app/design/frontend/RWD/default/template/configurableswatches/catalog/product/view/Typ /configurable/swatch-js.phtml
2) verändern:
<script type="text/javascript">
document.observe('dom:loaded', function() {
var swatchesConfig = new Product.ConfigurableSwatches(spConfig);
});
</script>
Um dies:
<script type="text/javascript">
document.observe('dom:loaded', function() {
if (Product.ConfigurableSwatches) {
var swatchesConfig = new Product.ConfigurableSwatches(spConfig);
}
});
</script>