').appendTo(cart_summary); var table = jQuery(cart_summary_id + ' div.items'); jQuery.each(value, function(i, item) { jQuery('
\
\ \ \ \
\
\
\ ' + item.product_title + '\
\
QTY: ' + item.quantity + '
\
' + Shopify.formatMoney(item.price, '£{{amount}}') + '
\
\ \
').appendTo(table); }); jQuery('
Cart Total' + Shopify.formatMoney(cart.total_price, '£{{amount}}') + '
').appendTo(cart_summary); jQuery('
Go to Cart
').appendTo(cart_summary); } else { jQuery('

Your cart is currently empty

').appendTo(cart_summary); } } }); } } updateCartDesc(cart); }; function updateCartDesc(data){ var $cartLinkText = $('.cart-target .number'); var $cartPrice = Shopify.formatMoney(data.total_price, '£{{amount}}'); switch(data.item_count){ case 0: $cartLinkText.html('0'); break; case 1: $cartLinkText.html('1'); break; default: $cartLinkText.html('' + data.item_count + ''); break; } $cartLinkText.append($cartPrice); $('.addcart-modal-subtotal').html('Cart Total:' +Shopify.formatMoney(data.total_price, '£{{amount}}')); // Update free shipping var _cart_total = data.total_price var _free_shipping_price = 500; var _free_shipping_price_100 = _free_shipping_price * 100; if (_cart_total > _free_shipping_price_100){ $('.sb-progress').html('100%'); $('.sb-text').html('Free shipping for orders over ' + Shopify.formatMoney(_free_shipping_price_100, "£{{amount}}")); $('.header-search-menu .shipping-text span').html('Free Delivery Available!'); } else{ var _progress = Math.floor(_cart_total / _free_shipping_price) ,_spend = _free_shipping_price_100 - _cart_total; $('.sb-progress').html('' + _progress + '%'); $('.sb-text').html('Spend ' + '' + Shopify.formatMoney(_spend, "£{{amount}}") + '' + ' reach FREE SHIPPING! Continue shopping to add more products to your cart and receive free shipping for orders over ' + '' + Shopify.formatMoney(_free_shipping_price_100, "£{{amount}}") + ''); $('.header-search-menu .shipping-text span').html('Remaining to
Free Delivery
' + Shopify.formatMoney(_spend, "£{{amount}}") + ''); } } Shopify.onCartUpdate = function(cart) { Shopify.updateCartInfo(cart, '#cart-info #cart-content', 'shopping-cart'); }; $(window).on('load', function () { Shopify.getCart(function(cart) { Shopify.updateCartInfo(cart, '#cart-info #cart-content'); }); $('.cart-dd').on('click', '.cart-close', function(e){ var prodId = $(e.currentTarget).data('cart-item'); $('body').addClass('cart-loading'); $.ajax({ type: 'POST', url: '/cart/change.js', data: { quantity: 0, id: prodId }, dataType: 'json', error: function(err){ console.log(err); }, success: function(resp) { $('body').removeClass('cart-loading'); Shopify.updateCartInfo(resp, '#cart-info #cart-content'); if(typeof cartObj != "undefined") { cartObj.syncCartSB(resp, prodId) } else { } // Update free shipping var _cart_total = resp.total_price var _free_shipping_price = 500; var _free_shipping_price_100 = _free_shipping_price * 100; if (_cart_total > _free_shipping_price_100){ $('.sb-progress').html('100%'); $('.sb-text').html('Free shipping for orders over ' + Shopify.formatMoney(_free_shipping_price_100, "£{{amount}}")); } else{ var _progress = Math.floor(_cart_total / _free_shipping_price) ,_spend = _free_shipping_price_100 - _cart_total; $('.sb-progress').html('' + _progress + '%'); $('.sb-text').html('Spend ' + '' + Shopify.formatMoney(_spend, "£{{amount}}") + '' + ' reach FREE SHIPPING! Continue shopping to add more products to your cart and receive free shipping for orders over ' + '' + Shopify.formatMoney(_free_shipping_price_100, "£{{amount}}") + ''); } } }) }) });
{{{subtotal_label}}} {{{subtotal}}} {{{shipping_label}}} {{{shipping}}} {{{total_label}}} {{{total}}}

Net Orders Checkout

Item Price Qty Total
Subtotal £0.00
Shipping
Total

Shipping Address

Shipping Methods