VirtueMart  3.2.14.9808
Functions | Variables
vmprices.js File Reference

Functions

 if (typeof Virtuemart==="undefined") var Virtuemart
 

Variables

Virtuemart stopSendtocart = false
 
Virtuemart setproducttype
 
Virtuemart decrQuantity
 
Virtuemart addtocart
 
Virtuemart quantityErrorAlert
 
Virtuemart product
 

Function Documentation

if ( typeof  Virtuemart = =="undefined")

Variable Documentation

Virtuemart addtocart
Initial value:
= function (e){
var targ;
if (!e) e = window.event;
e.preventDefault();
if(!Virtuemart.quantityErrorAlert(e)){
return false;
}
if(e.hasOwnProperty('stopSendtocart') && e.stopSendtocart == true){
return false;
}
if (e.target) targ = e.target;
else if (e.srcElement) targ = e.srcElement;
if (targ.nodeType == 3)
targ = targ.parentNode;
Virtuemart.sendtocart(e.data.cart);
return false;
}
e
Definition: chosen.jquery.min.js:1
e event props e event dispatch e event e event e fn e fn e fn e fn e event e window
Definition: jquery-migrate.min.js:2
Virtuemart decrQuantity
Initial value:
= (function(event) {
var rParent = jQuery(this).parent().parent();
var quantity = rParent.find('input[name="quantity[]"]');
var virtuemart_product_id = rParent.find('input[name="virtuemart_product_id[]"]').val();
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
Virtuemart product
Virtuemart quantityErrorAlert
Initial value:
= function(e) {
var me = jQuery(this);
e.preventDefault();
if(me.is('input')){
return Virtuemart.checkQuantity(this, me.attr("step"), me.attr("data-errStr"));
}
return true;
}
e
Definition: chosen.jquery.min.js:1
function jQuery
Definition: dynotable.js:9
Virtuemart setproducttype
Virtuemart stopSendtocart = false