Không có sản phẩm nào cùng loại
\n\n","summary":"\uD83D\uDCDD Giá bán chưa bao gồm VAT
\n\uD83D\uDD39 Thương hiệu: Gresswein - Phân phối bởi: CKV
\n\uD83D\uDD39 Xuất xứ: USA
\n\uD83D\uDD39 Độ nhám: #220
\nMua trên: Shopee - Lazada - Sendo - Tiki
\n\n\n","template_layout":"product","available":true,"tags":[],"price":0.0000,"price_min":0.0000,"price_max":0.0000,"price_varies":false,"compare_at_price":0,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":71549730,"barcode":"PVN5881","sku":"PVN5881","title":"Default Title","options":["Default Title"],"option1":"Default Title","option2":null,"option3":null,"available":true,"taxable":false,"price":0.0000,"compare_at_price":null,"inventory_management":"bizweb","inventory_policy":"continue","inventory_quantity":0,"weight_unit":"g","weight":0,"requires_shipping":true,"image":{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-220.jpg?v=1662949303827"}}],"featured_image":{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-220.jpg?v=1662949303827"},"images":[{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-220.jpg?v=1662949303827"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-1-b9911f74-23cd-45ea-8ef1-8553ad7fc870-0f5025cd-ab62-4230-8787-1485296a0ee8-9e958296-430b-4445-8ea0-506b92a51522.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-2-aa5df3b6-c479-4e78-b6e8-a807495aaa78-1bbcf9c2-9931-4a93-a4ff-3635a7e4066c-8b6147d1-0a25-47c6-9d35-f69dec0d446e.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-3-8539b202-c8d4-42a2-bdd8-f0ac6286477b-f84ba7da-f415-469f-b6d8-6c00a7713269-606f035b-c30a-45a7-927c-79add7d994de.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-4-b088518e-2237-4135-b819-f61920e6d190-77af3464-ce64-4887-b2e4-765fc94b9873-7aba4f54-ff30-4e0e-a027-7d82bf38e742.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-5-37af095f-ab2f-4b2c-a053-d07992b72f6b-8c2e8484-cd52-4d91-914e-48ed82928887-94556512-210c-410c-9cdd-17fa3883c0f6.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-6-41347195-404c-47d7-9f20-2c6363200ef9-6990803f-016b-4dcc-8797-5102e9c9956e-b9a17ede-cd9a-462a-bd38-e9b92fe981c2.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-7-782f1b60-812c-4364-8ce8-8174fe09f5ff-99e7cd32-c6f1-47b2-a7be-20ee4b30af40.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-8-ca8ca394-73a7-456f-a1c4-d767a0e36236-76144878-1d5f-41fa-8172-c1df01ecdb7b.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-9-de5b9c95-1533-4012-ac8a-645115afac76-d213b0fb-ee85-4f1c-b2fb-bef9d8297b72.jpg?v=1662949291060"}],"options":["Title"],"created_on":"2022-09-12T09:21:13","modified_on":"2022-09-12T09:22:20","published_on":"2022-09-12T09:18:00"}
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 selectCallback = function (variant, selector) {
if (variant) {
var form = jQuery('#' + selector.domIdPrefix).closest('form');
for (var i = 0, length = variant.options.length; i < length; i++) {
var radioButton = form.find('.swatch[data-option-index="' + i + '"] :radio[value="' + variant.options[i] + '"]');
if (radioButton.size()) {
radioButton.get(0).checked = true;
}
}
}
var addToCart = jQuery('.form-product .btn-cart'),
group = jQuery('.form_product_content'),
form = jQuery('.form-product .button_actions'),
form2 = jQuery('.soluong'),
product_sku = jQuery('.details-pro .product_sku .status_name'),
productPrice = jQuery('.details-pro .special-price .product-price'),
qty = jQuery('.first_status .availabel'),
sale = jQuery('.details-pro .old-price .product-price-old'),
comparePrice = jQuery('.details-pro .old-price .product-price-old'),
vat = jQuery('.form-group .vat');
/* SKU */
if (variant && variant.sku != "" && variant.sku != null) {
product_sku.html(variant.sku);
} else {
product_sku.html('Đang cập nhật');
}
/*** VAT ***/
if (variant) {
if (variant.taxable) {
$('.form-group').removeClass('hidden').find('.vat').text('(Đã bao gồm VAT)');
} else {
$('.form-group').removeClass('hidden').find('.vat').text('(Chưa bao gồm VAT)');
}
}
if (variant && variant.available) {
if (variant.inventory_management == "bizweb" || variant.inventory_management == "sapo") {
if (variant.inventory_quantity != 0 ) {
qty.html('Còn hàng');
} else if (variant.inventory_quantity == '') {
qty.html('Hết hàng');
}
} else {
qty.html('Còn hàng');
}
group.removeClass('hidden');
addToCart.html('Thêm vào giỏ hàng').removeAttr('disabled');
if (variant.price == 0) {
productPrice.html('Liên hệ');
comparePrice.hide();
form.addClass('hidden');
vat.addClass('hidden');
form2.addClass('hidden');
sale.removeClass('sale');
group.addClass('hidden');
if (variant.inventory_management == "bizweb" || variant.inventory_management == "sapo") {
if (variant.inventory_quantity != 0) {
qty.html('Còn hàng');
} else if (variant.inventory_quantity == '') {
qty.html('Hết hàng');
}
} else {
qty.html('Còn hàng');
}
} else {
form.removeClass('hidden');
productPrice.html(Bizweb.formatMoney(variant.price, "{{amount_no_decimals_with_comma_separator}}₫"));
// Also update and show the product's compare price if necessary
if (variant.compare_at_price > variant.price) {
comparePrice.html(Bizweb.formatMoney(variant.compare_at_price, "{{amount_no_decimals_with_comma_separator}}₫")).show();
sale.addClass('sale');
if (variant.inventory_management == "bizweb" || variant.inventory_management == "sapo") {
if (variant.inventory_quantity != 0) {
qty.html('Còn hàng');
form2.removeClass('hidden');
form.removeClass('hidden');
vat.removeClass('hidden');
} else if (variant.inventory_quantity == '') {
qty.html('Còn hàng');
form2.removeClass('hidden');
form.removeClass('hidden');
vat.removeClass('hidden');
}
} else {
qty.html('Còn hàng');
form2.removeClass('hidden');
form.removeClass('hidden');
vat.removeClass('hidden');
}
} else {
comparePrice.hide();
sale.removeClass('sale');
form2.removeClass('hidden');
vat.removeClass('hidden');
if (variant.inventory_management == "bizweb" || variant.inventory_management == "sapo") {
if (variant.inventory_quantity != 0) {
qty.html('Còn hàng');
form2.removeClass('hidden');
form.removeClass('hidden');
} else if (variant.inventory_quantity == '') {
qty.html('Còn hàng');
form2.removeClass('hidden');
form.removeClass('hidden');
}
} else {
qty.html('Còn hàng');
form2.removeClass('hidden');
form.removeClass('hidden');
}
}
}
} else {
addToCart.html('Hết hàng').attr('disabled', 'disabled');
qty.html('Hết hàng');
form.removeClass('hidden');
form2.addClass('hidden');
group.removeClass('hidden');
vat.removeClass('hidden');
if (variant) {
if (variant.price != 0) {
form.removeClass('hidden');
productPrice.html(Bizweb.formatMoney(variant.price, "{{amount_no_decimals_with_comma_separator}}₫"));
// Also update and show the product's compare price if necessary
if (variant.compare_at_price > variant.price) {
form.addClass('hidden');
comparePrice.html(Bizweb.formatMoney(variant.compare_at_price, "{{amount_no_decimals_with_comma_separator}}₫")).show();
sale.addClass('sale');
addToCart.html('Hết hàng').attr('disabled', 'disabled').removeClass('hidden');
if (variant.inventory_management == "bizweb" || variant.inventory_management == "sapo") {
if (variant.inventory_quantity != 0 && variant.available) {
qty.html('Còn hàng');
} else {
qty.html('Hết hàng');
form2.addClass('hidden');
form.removeClass('hidden');
}
} else {
qty.html('Còn hàng');
}
} else {
comparePrice.hide();
vat.removeClass('hidden');
sale.removeClass('sale');
form.addClass('hidden');
addToCart.html('Hết hàng').attr('disabled', 'disabled').removeClass('hidden');
if (variant.inventory_management == "bizweb" || variant.inventory_management == "sapo") {
if (variant.inventory_quantity != 0 && variant.available) {
qty.html('Còn hàng');
} else{
form2.addClass('hidden');
qty.html('Hết hàng');
form.removeClass('hidden');
}
} else {
qty.html('Còn hàng');
}
}
} else {
productPrice.html('Liên hệ');
form2.addClass('hidden');
vat.addClass('hidden');
comparePrice.hide();
form.removeClass('hidden');
sale.removeClass('sale');
}
} else {
productPrice.html('Liên hệ');
form2.addClass('hidden');
vat.addClass('hidden');
comparePrice.hide();
form.addClass('hidden');
sale.removeClass('sale');
}
}
/*begin variant image*/
if (variant && variant.image) {
var originalImage = jQuery(".large-image img");
var newImage = variant.image;
var element = originalImage[0];
Bizweb.Image.switchImage(newImage, element, function (newImageSizedSrc, newImage, element) {
$('.slider-nav .slick-slide').each(function () {
var $this = $(this);
var imgThis = $this.find('img').attr('data-img');
if (newImage.src.split("?")[0] == imgThis.split("?")[0]) {
var pst = $this.attr('data-slick-index');
jQuery(".slider-for").slick('slickGoTo', pst);
}
});
});
setTimeout(function () {
$('.checkurl').attr('href', $(this).attr('src'));
if (ww >= 1200) {
}
}, 200);
}
};
jQuery('.swatch .swatch-element :radio').change(function() {
var optionIndex = jQuery(this).closest('.swatch').attr('data-option-index');
var optionValue = jQuery(this).val();
jQuery(this)
.closest('form')
.find('.single-option-selector')
.eq(optionIndex)
.val(optionValue)
.trigger('change');
});
$(".dp-flex img").click(function(e){
e.preventDefault();
var hr = $(this).attr('data-src');
$('.checkurl ').attr('src',hr);
$('.large-image a').attr('data-href',hr);
});
if (ww >= 1200){
}
/*For recent product*/
var alias = 'thanh-da-mai-khuon-mau-usa-gresswein-loai-det-220';
/*end*/
if (ww >= 1200){
}
\n\n","summary":"\uD83D\uDCDD Giá bán chưa bao gồm VAT
\n\uD83D\uDD39 Thương hiệu: Gresswein - Phân phối bởi: CKV
\n\uD83D\uDD39 Xuất xứ: USA
\n\uD83D\uDD39 Độ nhám: #220
\nMua trên: Shopee - Lazada - Sendo - Tiki
\n\n\n","template_layout":"product","available":true,"tags":[],"price":0.0000,"price_min":0.0000,"price_max":0.0000,"price_varies":false,"compare_at_price":0,"compare_at_price_min":0,"compare_at_price_max":0,"compare_at_price_varies":false,"variants":[{"id":71549730,"barcode":"PVN5881","sku":"PVN5881","title":"Default Title","options":["Default Title"],"option1":"Default Title","option2":null,"option3":null,"available":true,"taxable":false,"price":0.0000,"compare_at_price":null,"inventory_management":"bizweb","inventory_policy":"continue","inventory_quantity":0,"weight_unit":"g","weight":0,"requires_shipping":true,"image":{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-220.jpg?v=1662949303827"}}],"featured_image":{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-220.jpg?v=1662949303827"},"images":[{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-220.jpg?v=1662949303827"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-1-b9911f74-23cd-45ea-8ef1-8553ad7fc870-0f5025cd-ab62-4230-8787-1485296a0ee8-9e958296-430b-4445-8ea0-506b92a51522.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-2-aa5df3b6-c479-4e78-b6e8-a807495aaa78-1bbcf9c2-9931-4a93-a4ff-3635a7e4066c-8b6147d1-0a25-47c6-9d35-f69dec0d446e.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-3-8539b202-c8d4-42a2-bdd8-f0ac6286477b-f84ba7da-f415-469f-b6d8-6c00a7713269-606f035b-c30a-45a7-927c-79add7d994de.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-4-b088518e-2237-4135-b819-f61920e6d190-77af3464-ce64-4887-b2e4-765fc94b9873-7aba4f54-ff30-4e0e-a027-7d82bf38e742.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-5-37af095f-ab2f-4b2c-a053-d07992b72f6b-8c2e8484-cd52-4d91-914e-48ed82928887-94556512-210c-410c-9cdd-17fa3883c0f6.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-6-41347195-404c-47d7-9f20-2c6363200ef9-6990803f-016b-4dcc-8797-5102e9c9956e-b9a17ede-cd9a-462a-bd38-e9b92fe981c2.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-7-782f1b60-812c-4364-8ce8-8174fe09f5ff-99e7cd32-c6f1-47b2-a7be-20ee4b30af40.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-8-ca8ca394-73a7-456f-a1c4-d767a0e36236-76144878-1d5f-41fa-8172-c1df01ecdb7b.jpg?v=1662949291060"},{"src":"https://bizweb.dktcdn.net/100/447/860/products/det-9-de5b9c95-1533-4012-ac8a-645115afac76-d213b0fb-ee85-4f1c-b2fb-bef9d8297b72.jpg?v=1662949291060"}],"options":["Title"],"created_on":"2022-09-12T09:21:13","modified_on":"2022-09-12T09:22:20","published_on":"2022-09-12T09:18:00"}
function onQtyChange(){
let qty = parseInt($('#qtym').val())
let variantId = parseInt($('#product-selectors').val()) || parseInt($('.details-product [name="variantId"]').val())
let validQty = validateQty(productDetail,variantId, qty)
validQty && $('#qtym').val(validQty)
}
function onQtyCRChange(){
let qty = parseInt($('.cr-qty-input').val())
console.log(qty)
let variantId = window.EGACRAddonSettings.variantId
let validQty = validateQty(productDetail,variantId, qty)
if(validQty){
window.EGACRAddon.updateQty(validQty)
}
}
let isProductInit = false
$(document).ready(function (e) {
$(window).on('scroll mousemove touchstart',()=>{
if(isProductInit) return
isProductInit = true
var wDW = $(window).width();
$('#gallery_1').slick({
autoplay: false,
autoplaySpeed: 6000,
dots: false,
arrows: true,
infinite: false,
speed: 300,
slidesToShow: 1,
slidesToScroll: 1,
asNavFor: '#gallery_02'
})
let prevPos = 0
$('#gallery_1 .item').on('mousedown', function(e){
prevPos = e.pageX
$(this).one('mouseup', function(e){
$(this).off('mousemove');
$('#gallery_1 a').css('pointer-events','initial')
}).on('mousemove', function(e){
if(prevPos !== e.pageX){
prev = e.pageX
$('#gallery_1 a').css('pointer-events','none')
}
});
});
$('#gallery_1').on('swipe', function(event, slick, currentSlide, nextSlide){
$('#gallery_1 a').css('pointer-events','none')
});
$('#gallery_1').on('beforeChange', function(event, slick, currentSlide, nextSlide){
$('#gallery_1 a').css('pointer-events','initial')
});
$('#gallery_1').on('afterChange', function(event, slick, currentSlide, nextSlide){
$('#gallery_1 a').css('pointer-events','initial')
});
$('#gallery_02').slick({
slidesToShow: 4,
slidesToScroll: 1,
asNavFor: '.slider-for',
dots: false,
arrows: false,
focusOnSelect: true,
infinite: false,
});
jQuery(function($) {
// Add label if only one product option and it isn't 'Title'. Could be 'Size'.
// Hide selectors if we only have 1 variant and its title contains 'Default'.
$('.selector-wrapper').hide();
$('.selector-wrapper').css({
'text-align':'left',
'margin-bottom':'15px'
});
});
// load more content
var $proContent = $('#content');
if($proContent.height() > 500){
$proContent.css("height","500px");
$('.ega-pro__seemore').click(function(){
$(this).toggleClass("show");
if($(this).hasClass('show')){
$proContent.css("height","auto");
$(this).find('a').html('Thu gọn')
}else{
$proContent.css("height","500px");
$(this).find('a').html('Xem thêm')
}
})
}else{
$('.ega-pro__seemore').hide();
}
// set recent view
function setProductRecent(){
try{
let productUrl = 'thanh-da-mai-khuon-mau-usa-gresswein-loai-det-220'
let storage = JSON.parse(localStorage.getItem('recentProduct')) || []
if(storage && !storage.includes(productUrl) ){
storage = [productUrl].concat(storage)
storage = storage.length > 7 ? storage.pop(): storage
localStorage.setItem('recentProduct', JSON.stringify(storage))
}}catch(e){
console.log(e)
}
}
setProductRecent()
$(document).on('change', '#qtym',onQtyChange)
$(document).on('click', '.btn_num',onQtyChange)
$(document).on('click', '.cr-qty-btn',onQtyCRChange)
$(document).on('change','.cr-qty-input',onQtyCRChange)
$(document).on('click','.sapo-product-reviews-badge', function(){
$('html,body').animate({scrollTop: $('#section-review').offset().top},300)
})
})
});