Khuyến mãi Khuyến mãi

Công ty TNHH Máy Tính Quỳnh Phương

Địa chỉ: QL.17B, Ngọ Dương, An Hoà, An Dương, Hải Phòng.
Số điện thoại: 0986.359.579

Liên hệ với chúng tôi

`; $videoEl.append(videoHtml); } else { $videoEl.find("iframe").remove(); $(selector).parent().find('img').show() $(selector).attr("src", src); } } function validate(evt) { var theEvent = evt || window.event; var key = theEvent.keyCode || theEvent.which; key = String.fromCharCode( key ); var regex = /[0-9]|\./; if( !regex.test(key) ) { theEvent.returnValue = false; if(theEvent.preventDefault) theEvent.preventDefault(); } } var selectCallbackQuickView = function(variant, selector) { $('#quick-view-product form').show(); var productItem = jQuery('.quick-view-product .product-item'), addToCart = productItem.find('.add_to_cart_detail'), installmentBtn = productItem.find('.btn-installment'), productPrice = productItem.find('.price'), comparePrice = productItem.find('.old-price'), discountLabel= productItem.find('.label_product'), form2 = jQuery('.soluong1'), status = productItem.find('.soluong'), sku = productItem.find('.sku_'), totalPrice = productItem.find('.total-price span'); if(variant && variant.sku ) { sku.text(variant.sku); } else { sku.text('Đang cập nhật'); } if (variant && variant.available) { var form = jQuery('#' + selector.domIdPrefix).closest('form'); for (var i=0,length=variant.options.length; i= +3000000) { installmentBtn.removeClass('hidden') addToCart.removeClass('is-full') } status.text('Còn hàng'); if(variant.price < 1){ $("#quick-view-product .price").html('Liên hệ'); $("#quick-view-product del, #quick-view-product .quantity_wanted_p").hide(); $("#quick-view-product .prices .old-price").hide(); discountLabel.hide() form2.hide(); }else{ productPrice.html(Bizweb.formatMoney(variant.price, "{{amount_no_decimals_with_comma_separator}}₫")); if ( variant.compare_at_price > variant.price ) { comparePrice.html(Bizweb.formatMoney(variant.compare_at_price, "{{amount_no_decimals_with_comma_separator}}₫")).show(); let save = variant.compare_at_price - variant.price; let savePerCent = Math.ceil(save / variant.compare_at_price * 100); if(savePerCent > 99){ savePerCent = 99 } if(savePerCent < 1){ savePerCent = 1 } discountLabel.html('-'+savePerCent+ "%").show() productPrice.addClass('on-sale'); } else { comparePrice.hide(); discountLabel.hide() productPrice.removeClass('on-sale'); } $(".quantity_wanted_p").show(); $(".input_qty_qv_").show(); form2.show(); } updatePricingQuickView(); /*begin variant image*/ if (variant && variant.featured_image) { var originalImage = $("#product-featured-image-quickview"); var newImage = variant.featured_image; var element = originalImage[0]; Bizweb.Image.switchImage(newImage, element, function (newImageSizedSrc, newImage, element) { $('#thumblist_quickview img').each(function() { var parentThumbImg = $(this).parent(); var productImage = $(this).parent().data("image"); if (newImageSizedSrc.includes(productImage)) { $(this).parent().trigger('click'); return false; } }); }); $('#product-featured-image-quickview').attr('src',variant.featured_image.src); } } else { addToCart.addClass('disabled').attr('disabled', 'disabled'); addToCart.removeClass('hidden').addClass('btn_buy is-full').attr('disabled','disabled').html('
Hết hàng
'); installmentBtn.addClass('hidden') status.text('Hết hàng'); $(".quantity_wanted_p").show(); if(variant){ if(variant.price < 1){ $("#quick-view-product .price").html('Liên hệ'); $("#quick-view-product del").hide(); //$("#quick-view-product .quantity_wanted_p").hide(); $("#quick-view-product .prices .old-price").hide(); discountLabel.hide() form2.hide(); comparePrice.hide(); discountLabel.hide(); productPrice.removeClass('on-sale'); addToCart.addClass('disabled').attr('disabled', 'disabled'); addToCart.addClass('hidden').addClass('btn_buy is-full').attr('disabled','disabled').html('
Hết hàng
').show(); installmentBtn.addClass('hidden') }else{ productPrice.html(Bizweb.formatMoney(variant.price, "{{amount_no_decimals_with_comma_separator}}₫")); if ( variant.compare_at_price > variant.price ) { comparePrice.html(Bizweb.formatMoney(variant.compare_at_price, "{{amount_no_decimals_with_comma_separator}}₫")).show(); productPrice.addClass('on-sale'); let save = variant.compare_at_price - variant.price; let savePerCent = Math.ceil(save / variant.compare_at_price * 100); if(savePerCent > 99){ savePerCent = 99 } if(savePerCent < 1){ savePerCent = 1 } discountLabel.html('-'+savePerCent+ "%").show() } else { comparePrice.hide(); discountLabel.hide(); productPrice.removeClass('on-sale'); $("#quick-view-product .prices .old-price").html(''); discountLabel.hide() } /*$("#quick-view-product .price").html(Bizweb.formatMoney(variant.price, "{{amount_no_decimals_with_comma_separator}}₫")); $("#quick-view-product del ").hide(); $("#quick-view-product .prices .old-price").show(); discountLabel.show()*/ $(".input_qty_qv_").hide(); form2.hide(); addToCart.addClass('disabled').attr('disabled', 'disabled'); addToCart.removeClass('hidden').addClass('btn_buy is-full').attr('disabled','disabled').html('
Hết hàng
'); installmentBtn.addClass('hidden') } }else{ $("#quick-view-product .price").html('Liên hệ'); $("#quick-view-product del").hide(); $("#quick-view-product .quantity_wanted_p").hide(); $("#quick-view-product .prices .old-price").hide(); discountLabel.hide() form2.hide(); comparePrice.hide(); discountLabel.hide(); productPrice.removeClass('on-sale'); addToCart.addClass('disabled').attr('disabled', 'disabled'); addToCart.removeClass('hidden').addClass('btn_buy is-full').attr('disabled','disabled').html('
Hết hàng
'); installmentBtn.addClass('hidden') } } /*begin variant image*/ if (variant && variant.featured_image) { var originalImage = $("#product-featured-image-quickview"); var newImage = variant.featured_image; var element = originalImage[0]; Bizweb.Image.switchImage(newImage, element, function (newImageSizedSrc, newImage, element) { $('#thumblist_quickview img').each(function() { var parentThumbImg = $(this).parent(); var productImage = $(this).parent().data("image"); if (newImageSizedSrc.includes(productImage)) { $(this).parent().trigger('click'); return false; } }); }); $('#product-featured-image-quickview').attr('src',variant.featured_image.src); } }; if(typeof copyButton === 'undefined' && typeof codeCopy === 'undefined') { const copyButton = {"copiedText": "Đã chép", "copyText": "Sao chép"}; function codeCopy(el){ const copyText = copyButton.copyText; const copiedText = el.dataset.copiedText; const coupon = el.dataset.code; const _this = $(el); _this.html(`${copiedText}`); _this.addClass('disabled'); setTimeout(function() { _this.html(`${copyText}`); _this.removeClass('disabled'); }, 3000) navigator.clipboard.writeText(coupon); } }