Lift It1.2.9https://gtr-inc.com/partsbackup/storefront/view/default/image/apple-touch-icon.pngstorefront/view/default/image/apple-touch-icon-76x76.pngstorefront/view/default/image/apple-touch-icon-120x120.pngstorefront/view/default/image/apple-touch-icon-152x152.pngstorefront/view/default/image/icon-192x192.png function update_cart(product_id){ var senddata = {}, result = false; if(product_id){ senddata['product_id'] = product_id; } $.ajax({ url:'https://gtr-inc.com/partsbackup/index.php?rt=r/product/product/addToCart', type:'GET', dataType:'json', data: senddata, async: false, success:function (data) { //top cart $('.nav.topcart .dropdown-toggle span').first().html(data.item_count); $('.nav.topcart .dropdown-toggle .cart_total').html(data.total); if($('#top_cart_product_list')){ $('#top_cart_product_list').html(data.cart_details); }; result = true; } }); return result; } //event for adding product to cart by ajax $(document).on('click', 'a.productcart', function() { var item = $(this); //check if href provided for product details access if ( item.attr('href') && item.attr('href') != '#') { return true; } if(item.attr('data-id')){ if( update_cart(item.attr('data-id')) == true ) { var alert_msg = '
' + '' + '
'; item.closest('.thumbnail .pricetag').prepend(alert_msg); } } return false; }); $(window).on('load', function(){ update_cart(); }); https://gtr-inc.com/partsbackup/index.php?rt=content/contacthttps://gtr-inc.com/partsbackup/index.php?rt=product/search'; var filter_keyword = $('#filter_keyword').val(); if (filter_keyword) { url += '&keyword=' + encodeURIComponent(filter_keyword); } var filter_category_id = $('#filter_category_id').attr('value'); if (filter_category_id) { url += '&category_id=' + filter_category_id; } location = url; return false; }