From 44855a7b75046bad256c6fdd14e16a9384160da8 Mon Sep 17 00:00:00 2001 From: mediarox Date: Sun, 20 May 2012 16:05:02 +0300 Subject: [PATCH] Prevent javascript errors if the original select element in catalog/product/view/type/options/configurable.phtml has the attribute "size". --- .../base/default/js/scp_product_extension.js | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/skin/frontend/base/default/js/scp_product_extension.js b/skin/frontend/base/default/js/scp_product_extension.js index 7e72154..53c4234 100644 --- a/skin/frontend/base/default/js/scp_product_extension.js +++ b/skin/frontend/base/default/js/scp_product_extension.js @@ -385,11 +385,13 @@ Product.Config.prototype.configureElement = function(element) { Product.Config.prototype.reloadOptionLabels = function(element){ var selectedPrice; var childProducts = this.config.childProducts; - - //Don't update elements that have a selected option - if(element.options[element.selectedIndex].config){ - return; - } + + try { + //Don't update elements that have a selected option + if(element.options[element.selectedIndex].config){ + return; + } + } catch(e){} for(var i=0;i