function addToCartInList(id) {
    if (jQuery('#commerce-order-item-default-add-to-cart-' + id + '-form').length) {
        jQuery('#commerce-order-item-default-add-to-cart-' + id + '-form').submit();
    }
}
// add to cart in product list
add to cart in product list
add to cart in product list
function addToCartInList(id) {
    if (jQuery('#commerce-order-item-default-add-to-cart-' + id + '-form').length) {
        jQuery('#commerce-order-item-default-add-to-cart-' + id + '-form').submit();
    }
}
function addToCartInList ( id ) { if ( jQuery ( '#commerce-order-item-default-add-to-cart-' + id + '-form' ) . length ) { jQuery ( '#commerce-order-item-default-add-to-cart-' + id + '-form' ) . submit ( ) ; } }
add to cart in product list
add to cart in product list