diff --git a/themes/default-bootstrap/js/product.js b/themes/default-bootstrap/js/product.js index 25019f03d..726f55127 100644 --- a/themes/default-bootstrap/js/product.js +++ b/themes/default-bootstrap/js/product.js @@ -750,7 +750,7 @@ $(document).ready(function(){ // The button to increment the product value $('.product_quantity_up').click(function(e){ e.preventDefault(); - fieldName = $(this).attr('rel'); + fieldName = $(this).data('field-qty'); var currentVal = parseInt($('input[name='+fieldName+']').val()); if (quantityAvailable > 0) { quantityAvailableT = quantityAvailable; @@ -767,7 +767,7 @@ $(document).ready(function(){ // The button to decrement the product value $(".product_quantity_down").click(function(e) { e.preventDefault(); - fieldName = $(this).attr('rel'); + fieldName = $(this).data('field-qty'); var currentVal = parseInt($('input[name='+fieldName+']').val()); if (!isNaN(currentVal) && currentVal > 1) { $('input[name='+fieldName+']').val(currentVal - 1).trigger('keyup'); diff --git a/themes/default-bootstrap/product.tpl b/themes/default-bootstrap/product.tpl index 9b0785e04..fb144625f 100644 --- a/themes/default-bootstrap/product.tpl +++ b/themes/default-bootstrap/product.tpl @@ -265,7 +265,7 @@ rel="{literal}{{/literal}gallery: 'gal1', smallimage: '{$link->getImageLink($product->link_rewrite, $imageIds, 'large_default')|escape:'html'}',largeimage: '{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')|escape:'html'}'{literal}}{/literal}" {else} href="{$link->getImageLink($product->link_rewrite, $imageIds, 'thickbox_default')|escape:'html'}" - rel="other-views" + data-fancybox-group="other-views" class="thickbox{if $smarty.foreach.thumbnails.first} shown{/if}" {/if} title="{$imageTitlte}"> @@ -482,10 +482,10 @@ value="{if isset($quantityBackup)}{$quantityBackup|intval}{else}{if $product->minimal_quantity > 1}{$product->minimal_quantity}{else}1{/if}{/if}" maxlength="3" {if $product->minimal_quantity > 1}onkeyup="checkMinimalQuantity({$product->minimal_quantity});"{/if} /> - + - + @@ -507,7 +507,7 @@ {foreach from=$groups key=id_attribute_group item=group} {if $group.attributes|@count}