Top lencero GREY

€29.00

'); } else if ($('#purchase').length) { $('#purchase').before('
'); } } var limits = "100|50|30"; var colors = "00ff00|ffff00|ff0000"; var messages = " Alto stock|Stock a la mitad|Sólo quedan unos pocos"; var data = {}; data["S"] = { 'title': "S", 'inventory_quantity': '2', 'max_inventory_quantity': '', 'inventory_management': 'shopify' } data["M"] = { 'title': "M", 'inventory_quantity': '2', 'max_inventory_quantity': '', 'inventory_management': 'shopify' } data["L"] = { 'title': "L", 'inventory_quantity': '1', 'max_inventory_quantity': '', 'inventory_management': 'shopify' } limits = limits.split('|'); colors = colors.split('|'); messages = messages.split('|'); var levels = []; for(var i=0, max=limits.length; i -->\
\
\
\
' + '' + indicatorText + '
\
\ \ '; $('div#schartContainer').html(htmlIndicator); } InventoryIndicator.data = data; InventoryIndicator.buildVariantName = function() { var options = []; $('.single-option-selector:visible').each(function(){ options.push($(this).val()); }); var name = options.join(' / '); return name; } $('.single-option-selector').bind('change', function() { if ($('.single-option-selector').length == 1) { InventoryIndicator.show($('.single-option-selector option:selected').val()); } else { InventoryIndicator.show(InventoryIndicator.buildVariantName()); } }); if ($('.single-option-selector').length) { $('.single-option-selector:first').trigger('change'); } else { InventoryIndicator.show('S'); } } window.attachEvent ? window.attachEvent('onload', asyncInventoryIndicatorLoad) : window.addEventListener('load', asyncInventoryIndicatorLoad, false); })(jQuery); //]]>