= (function(event) {
var rParent =
jQuery(
this).parent().parent();
var quantity = rParent.find('input[name="quantity[]"]');
var Ste = parseInt(quantity.attr("step"));
if (isNaN(Ste)) Ste = 1;
var minQtt = parseInt(quantity.attr("init"));
if (isNaN(minQtt)) minQtt = 1;
var Qtt = parseInt(quantity.val());
if (!isNaN(Qtt) && Qtt>Ste) {
quantity.val(Qtt - Ste);
if(!isNaN(minQtt) && quantity.val()<minQtt){
quantity.val(minQtt);
}
} else quantity.val(minQtt);
Virtuemart.setproducttype(event.data.cart,virtuemart_product_id);
})
function jQuery
Definition: dynotable.js:9
$emptyItem virtuemart_product_id
Definition: order.php:450