Linux IPTV Set Top Box

[]
Linux IPTV Set Top Box – TangoElectronics

QTY: ‘ + item.quantity + ‘

‘ + Shopify.formatMoney(item.price, ‘${{amount}}’) + ‘

‘).appendTo(table); }); jQuery(‘

Cart Total’ + Shopify.formatMoney(cart.total_price, ‘${{amount}}’) + ‘

‘).appendTo(cart_summary); jQuery(”).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 ,_free_shipping_price = 100 ,_free_shipping_price_100 = 100*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 = _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}}”)); } currenciesCallbackSpecial(‘.cart-target span.money’, ‘.wrap-progress .sb-text span.money’); currenciesCallbackSpecial(‘#cart-info span.money’); currenciesCallbackSpecial(‘#layer-addcart-modal span.money’); } Shopify.onCartUpdate = function(cart) { Shopify.updateCartInfo(cart, ‘#cart-info #cart-content’, ‘shopping-cart’); }; $(window).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 { Currency.convertAll(‘CAD’, Currency.currentCurrency); } // Update free shipping var _cart_total = resp.total_price ,_free_shipping_price = 100 ,_free_shipping_price_100 = 100*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 = _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}}”)); } } }) }) });

  • CAD CAD USD EUR GBP AUD TRY
  • 0
  • 0

Product successfully added to your Shopping Cart

ul > li > a.social’) ,shopUri = ‘https://tangoelectronics.com’ ,defaultImg = ‘cdn.shopify.com/s/files/1/1953/5823/t/2/assets/default-image.jpg’ ; $(‘body’).on(‘click’, ‘.quick_shop:not(.unavailable)’, function(event){ AT_Main.fixNoScroll(); var $this = $(this) ,json_product = $this.find(‘.json’).html() ,productSelect = JSON.parse(json_product) ,productSelectID = productSelect.id ,productUri = shopUri + ‘/products/’ + productSelect.handle ; // Update add cart button productAddCart.data(‘product-id’, productSelectID); // Update product quantity productQty.html(‘‘) $(“.qty-inner .qty-up”).on(“click”, function() { var oldValue = $(“#qs-quantity”).val(), newVal = 1; newVal = parseInt(oldValue) + 1; $(“#qs-quantity”).val(newVal); console.log(newVal); }); $(“.qty-inner .qty-down”).on(“click”, function() { var oldValue = $(“#qs-quantity”).val(); if(oldValue > 1){ newVal = 1; newVal = parseInt(oldValue) – 1; $(“#qs-quantity”).val(newVal); } }); // Update product image productImage.html(”); var qs_images = productSelect.images; productImage.append(”); if(qs_images.length >= 1){ $.each(qs_images, function(index, value) { productImage.find(‘#gallery-qs-image’).append(‘‘); }); } else{ productImage.html(‘‘); } // Update product social-sharing if( socialList.length > 0 ){ socialList.each( function( index,value ){ var _social_href = jQuery(value).attr(‘href’) _social_href = _social_href.replace( “_bc_product_uri_”,productUri ); if( jQuery(value).hasClass(‘social-img’) ){ _social_href = ( qs_images.length >= 1 ? _social_href.replace( “_bc_product_media_”,productSelect.featured_image ) : _social_href.replace( “_bc_product_media_”,defaultImg ) ) ; } jQuery(value).attr(‘href’,_social_href); } ); } productRating.html(”) // Update product title productTitle.html(” + productSelect.title + ”); // Update product author productAuthor.html(” + productSelect.vendor + ”); // Update product description var $prod = $(this).closest(“.product-wrapper”); productDescription.html($prod.find(“.product-des-list”).html()); // Produc variants var productVariants = productSelect.variants; var productVariantsCount = productVariants.length; productPrice.html(”); productVariantWrapper.html(”); productAddCart.removeAttr(‘disabled’).fadeTo(200,1); if (productVariantsCount > 1) { // Show Variants productVariantWrapper.show(); // Variants element var productVariantElement = $(”,{ ‘id’: (‘#quick-shop-variants-‘ + productSelectID) , ‘name’: ‘id’}); var productVariantOptions = ”; for (var i=0; i < productVariantsCount; i++) { productVariantOptions += ''+ productVariants[i].title +'' }; // Add variants element on page productVariantElement.append(productVariantOptions); productVariantWrapper.append(productVariantElement); // Bind variants to option_selection JS new Shopify.OptionSelectors(('#quick-shop-variants-' + productSelectID), { product: productSelect, onVariantSelected: selectQSOptionCallback }); // Add label if only one product option if (productSelect.options.length == 1){ $('#qs-product-action .selector-wrapper:eq(0)').prepend(''+ productSelect.options[0] +''); } // Select first variant on page var found_one_in_stock = false; for (var i=0; i < productSelect.variants.length; i++) { var variant = productSelect.variants[i]; if(variant.available && found_one_in_stock == false) { found_one_in_stock = true; for (var j=0; j < variant.options.length; j++){ $('.single-option-selector:eq('+ j +')').val(variant.options[j]).trigger('change'); } } } } else { // Hide unnecessary variants productVariantWrapper.hide(); // Build variants element var productVariantElement = $('',{ 'id': ('#quick-shop-variants-' + productSelectID) , 'name': 'id'}); var productVariantOptions = ''; for (var i=0; i < productVariantsCount; i++) { productVariantOptions += ''+ productVariants[i].title +'' }; // Add variants element on page productVariantElement.append(productVariantOptions); productVariantWrapper.append(productVariantElement); // Update the add button to variant id productAddCart.data('variant-id', productVariants[0].id); // Check product is on sale if ( productVariants[0].compare_at_price > 0 && productVariants[0].compare_at_price > productVariants[0].price ) { productPrice.html(”+ Shopify.formatMoney(productVariants[0].price, ‘${{amount}}’) +” + ”+ Shopify.formatMoney(productVariants[0].compare_at_price, ‘${{amount}}’) + ”); } else { productPrice.html(”+ Shopify.formatMoney(productVariants[0].price, ‘${{amount}}’) + ” ); } } currenciesCallbackSpecial(‘#quick-shop-popup span.money’); }); // selectQSOptionCallback var selectQSOptionCallback = function(variant, selector) { // selected a valid and in stock variant if (variant && variant.available) { productAddCart.data(‘variant-id’, variant.id); productAddCart.removeAttr(‘disabled’).fadeTo(200,1); productAddCart.html(‘Add to cart’); // selected an invalid or out of stock variant } else { // disabled variant doesn’t exist productAddCart.attr(‘disabled’, ‘disabled’).fadeTo(200,0.5); var message = variant ? “Sold Out” : “Sold Out”; productAddCart.html(message); } // check if variant is on sale if ( variant.compare_at_price > 0 && variant.compare_at_price > variant.price ) { productPrice.html(”+ Shopify.formatMoney(variant.price, ‘${{amount}}’) +” + ”+ Shopify.formatMoney(variant.compare_at_price, ‘${{amount}}’) + ”); } else { productPrice.html(”+ Shopify.formatMoney(variant.price, ‘${{amount}}’) + ” ); }; currenciesCallbackSpecial(‘#quick-shop-popup span.money’); } }); ]]> ‘+ mycurrency +’ ‘); $(‘.currencies’).append(currencyItem); jQuery(‘.currencies li’).off(‘click’).on(‘click’, function() { jQuery(‘.currencies li’).removeClass(‘active’); jQuery(this).addClass(‘active’); var selectedValue = jQuery(this).find(‘input[type=hidden]’).val(); jQuery(‘.currencies_src option’).attr(‘selected’, false); jQuery(‘.currencies_src option[value=’+selectedValue+’]’).attr(‘selected’, true); Currency.convertAll(Currency.currentCurrency, selectedValue); jQuery(‘.currency_code’).html($(this).find(‘a span’).html()); }); currencyItem.trigger(‘click’); } else { $(‘.currency-‘ + mycurrency ).trigger(‘click’); } } } } }); } jQuery.cookie(‘currencycookie’, ‘true’, { expires: 7 }); ]]>


Source