Please Check Size Chart: Our products are produced in unique sizes which is not the same with other sites. Please check the size chart in the description part carefully before placing order.
We're here to help! Reach out to us at: [emailprotected] or make a note when placing your order with your specific requirements. We'll be delighted to create a design tailored just for you.
`; // $ // 45 var html_after_summary = `
$45
`; // $ // 45 var html_after_sticky = `
$45
`; //Table Discout var html_table_discount = `
Block "table-discount" not found
`; var html_buy_more_add_tocart = `
Buy 2 to get 10% off
`; let name_product = "Retro Realtor Real Estate Agent Broker Hoodie"; let style = ''; let color = ''; let discountDefault = 25; // let endDate = new Date('October 13, 2020 05:35:32'); let size = ''; let sku = ''; let src = 'https://vtphihobucket.s3.amazonaws.com/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Black-C7uWg.jpg'; let variations = [{"sku":"1711434082-dragonfamilyshirts-48462","name":"S \/ Black \/ Hoodie","regular_price":39.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Black-C7uWg.jpg","attributes":[{"name":"Size","option":"S"},{"name":"Color","option":"Black"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48463","name":"M \/ Black \/ Hoodie","regular_price":43.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Black-C7uWg.jpg","attributes":[{"name":"Size","option":"M"},{"name":"Color","option":"Black"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48464","name":"L \/ Black \/ Hoodie","regular_price":45.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Black-C7uWg.jpg","attributes":[{"name":"Size","option":"L"},{"name":"Color","option":"Black"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48465","name":"XL \/ Black \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Black-C7uWg.jpg","attributes":[{"name":"Size","option":"XL"},{"name":"Color","option":"Black"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48466","name":"2XL \/ Black \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Black-C7uWg.jpg","attributes":[{"name":"Size","option":"2XL"},{"name":"Color","option":"Black"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48467","name":"3XL \/ Black \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Black-C7uWg.jpg","attributes":[{"name":"Size","option":"3XL"},{"name":"Color","option":"Black"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48468","name":"4XL \/ Black \/ Hoodie","regular_price":48.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Black-C7uWg.jpg","attributes":[{"name":"Size","option":"4XL"},{"name":"Color","option":"Black"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48469","name":"S \/ Dark Heather \/ Hoodie","regular_price":39.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Dark%2BHeather-E4i1A.jpg","attributes":[{"name":"Size","option":"S"},{"name":"Color","option":"Dark Heather"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48470","name":"M \/ Dark Heather \/ Hoodie","regular_price":43.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Dark%2BHeather-E4i1A.jpg","attributes":[{"name":"Size","option":"M"},{"name":"Color","option":"Dark Heather"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48471","name":"L \/ Dark Heather \/ Hoodie","regular_price":45.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Dark%2BHeather-E4i1A.jpg","attributes":[{"name":"Size","option":"L"},{"name":"Color","option":"Dark Heather"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48472","name":"XL \/ Dark Heather \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Dark%2BHeather-E4i1A.jpg","attributes":[{"name":"Size","option":"XL"},{"name":"Color","option":"Dark Heather"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48473","name":"2XL \/ Dark Heather \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Dark%2BHeather-E4i1A.jpg","attributes":[{"name":"Size","option":"2XL"},{"name":"Color","option":"Dark Heather"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48474","name":"3XL \/ Dark Heather \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Dark%2BHeather-E4i1A.jpg","attributes":[{"name":"Size","option":"3XL"},{"name":"Color","option":"Dark Heather"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48475","name":"4XL \/ Dark Heather \/ Hoodie","regular_price":48.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Dark%2BHeather-E4i1A.jpg","attributes":[{"name":"Size","option":"4XL"},{"name":"Color","option":"Dark Heather"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48476","name":"S \/ Navy \/ Hoodie","regular_price":39.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Navy-XYYcd.jpg","attributes":[{"name":"Size","option":"S"},{"name":"Color","option":"Navy"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48477","name":"M \/ Navy \/ Hoodie","regular_price":43.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Navy-XYYcd.jpg","attributes":[{"name":"Size","option":"M"},{"name":"Color","option":"Navy"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48478","name":"L \/ Navy \/ Hoodie","regular_price":45.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Navy-XYYcd.jpg","attributes":[{"name":"Size","option":"L"},{"name":"Color","option":"Navy"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48479","name":"XL \/ Navy \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Navy-XYYcd.jpg","attributes":[{"name":"Size","option":"XL"},{"name":"Color","option":"Navy"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48480","name":"2XL \/ Navy \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Navy-XYYcd.jpg","attributes":[{"name":"Size","option":"2XL"},{"name":"Color","option":"Navy"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48481","name":"3XL \/ Navy \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Navy-XYYcd.jpg","attributes":[{"name":"Size","option":"3XL"},{"name":"Color","option":"Navy"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48482","name":"4XL \/ Navy \/ Hoodie","regular_price":48.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Navy-XYYcd.jpg","attributes":[{"name":"Size","option":"4XL"},{"name":"Color","option":"Navy"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48483","name":"S \/ Red \/ Hoodie","regular_price":39.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Red-l0nwz.jpg","attributes":[{"name":"Size","option":"S"},{"name":"Color","option":"Red"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48484","name":"M \/ Red \/ Hoodie","regular_price":43.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Red-l0nwz.jpg","attributes":[{"name":"Size","option":"M"},{"name":"Color","option":"Red"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48485","name":"L \/ Red \/ Hoodie","regular_price":45.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Red-l0nwz.jpg","attributes":[{"name":"Size","option":"L"},{"name":"Color","option":"Red"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48486","name":"XL \/ Red \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Red-l0nwz.jpg","attributes":[{"name":"Size","option":"XL"},{"name":"Color","option":"Red"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48487","name":"2XL \/ Red \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Red-l0nwz.jpg","attributes":[{"name":"Size","option":"2XL"},{"name":"Color","option":"Red"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48488","name":"3XL \/ Red \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Red-l0nwz.jpg","attributes":[{"name":"Size","option":"3XL"},{"name":"Color","option":"Red"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48489","name":"4XL \/ Red \/ Hoodie","regular_price":48.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Red-l0nwz.jpg","attributes":[{"name":"Size","option":"4XL"},{"name":"Color","option":"Red"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48490","name":"S \/ Royal \/ Hoodie","regular_price":39.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Royal-npGOO.jpg","attributes":[{"name":"Size","option":"S"},{"name":"Color","option":"Royal"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48491","name":"M \/ Royal \/ Hoodie","regular_price":43.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Royal-npGOO.jpg","attributes":[{"name":"Size","option":"M"},{"name":"Color","option":"Royal"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48492","name":"L \/ Royal \/ Hoodie","regular_price":45.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Royal-npGOO.jpg","attributes":[{"name":"Size","option":"L"},{"name":"Color","option":"Royal"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48493","name":"XL \/ Royal \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Royal-npGOO.jpg","attributes":[{"name":"Size","option":"XL"},{"name":"Color","option":"Royal"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48494","name":"2XL \/ Royal \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Royal-npGOO.jpg","attributes":[{"name":"Size","option":"2XL"},{"name":"Color","option":"Royal"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48495","name":"3XL \/ Royal \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Royal-npGOO.jpg","attributes":[{"name":"Size","option":"3XL"},{"name":"Color","option":"Royal"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48496","name":"4XL \/ Royal \/ Hoodie","regular_price":48.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Royal-npGOO.jpg","attributes":[{"name":"Size","option":"4XL"},{"name":"Color","option":"Royal"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48497","name":"S \/ Sport Grey \/ Hoodie","regular_price":39.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Sport%2BGrey-EfhfD.jpg","attributes":[{"name":"Size","option":"S"},{"name":"Color","option":"Sport Grey"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48498","name":"M \/ Sport Grey \/ Hoodie","regular_price":43.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Sport%2BGrey-EfhfD.jpg","attributes":[{"name":"Size","option":"M"},{"name":"Color","option":"Sport Grey"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48499","name":"L \/ Sport Grey \/ Hoodie","regular_price":45.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Sport%2BGrey-EfhfD.jpg","attributes":[{"name":"Size","option":"L"},{"name":"Color","option":"Sport Grey"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48500","name":"XL \/ Sport Grey \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Sport%2BGrey-EfhfD.jpg","attributes":[{"name":"Size","option":"XL"},{"name":"Color","option":"Sport Grey"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48501","name":"2XL \/ Sport Grey \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Sport%2BGrey-EfhfD.jpg","attributes":[{"name":"Size","option":"2XL"},{"name":"Color","option":"Sport Grey"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48502","name":"3XL \/ Sport Grey \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Sport%2BGrey-EfhfD.jpg","attributes":[{"name":"Size","option":"3XL"},{"name":"Color","option":"Sport Grey"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48503","name":"4XL \/ Sport Grey \/ Hoodie","regular_price":48.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_Sport%2BGrey-EfhfD.jpg","attributes":[{"name":"Size","option":"4XL"},{"name":"Color","option":"Sport Grey"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48504","name":"S \/ White \/ Hoodie","regular_price":39.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_White-R1JZo.jpg","attributes":[{"name":"Size","option":"S"},{"name":"Color","option":"White"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48505","name":"M \/ White \/ Hoodie","regular_price":43.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_White-R1JZo.jpg","attributes":[{"name":"Size","option":"M"},{"name":"Color","option":"White"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48506","name":"L \/ White \/ Hoodie","regular_price":45.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_White-R1JZo.jpg","attributes":[{"name":"Size","option":"L"},{"name":"Color","option":"White"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48507","name":"XL \/ White \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_White-R1JZo.jpg","attributes":[{"name":"Size","option":"XL"},{"name":"Color","option":"White"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48508","name":"2XL \/ White \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_White-R1JZo.jpg","attributes":[{"name":"Size","option":"2XL"},{"name":"Color","option":"White"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48509","name":"3XL \/ White \/ Hoodie","regular_price":46.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_White-R1JZo.jpg","attributes":[{"name":"Size","option":"3XL"},{"name":"Color","option":"White"},{"name":"Style","option":"Hoodie"}]},{"sku":"1711434082-dragonfamilyshirts-48510","name":"4XL \/ White \/ Hoodie","regular_price":48.95,"image":"https:\/\/vtphihobucket.s3.amazonaws.com\/Retro%2BRealtor%2BReal%2BEstate%2BAgent%2BBroker_Hoodie_White-R1JZo.jpg","attributes":[{"name":"Size","option":"4XL"},{"name":"Color","option":"White"},{"name":"Style","option":"Hoodie"}]}]; let default_src = variations[0].image; if (!$('.sticky-add-to-cart__product').hasClass('sticky-add-to-cart-img')) { $('.sticky-add-to-cart__product').prepend(''); $(".sticky-add-to-cart__product").append(html_after_sticky); } $(".product-title-container").after(html_after_title2); //Coupon giam gia // $(".summary").after(html_table_discount); $(".summary").after(html_after_summary); // $(".check_sticky_addtocart").after(html_buy_more_add_tocart); //----------------------End code review------------------------- //----------------------countdown code ------------------------- var endDate = new Date(); endDate.setTime(endDate.getTime() + (((getRandomInt(23) * 3600) + (getRandomInt(60) * 60) + getRandomInt(60)) * 1000)); countdown(endDate); function getRandomInt(max) { var random = Math.random(); while (random <= 0) random = Math.random(); return Math.floor(random * Math.floor(max)); } function countdown(endDate) { let days, hours, minutes, seconds; endDate = new Date(endDate).getTime(); if (isNaN(endDate)) { return; } } setInterval(calculate, 1000); function calculate() { let startDate = new Date(); startDate = startDate.getTime(); let timeRemaining = parseInt((endDate - startDate) / 1000); if (timeRemaining >= 0) { days = parseInt(timeRemaining / 86400); timeRemaining = (timeRemaining % 86400); hours = parseInt(timeRemaining / 3600); timeRemaining = (timeRemaining % 3600); minutes = parseInt(timeRemaining / 60); timeRemaining = (timeRemaining % 60); seconds = parseInt(timeRemaining); // document.getElementById("days").innerHTML = parseInt(days, 10); // document.getElementById("hours").innerHTML = ("0" + hours).slice(-2); // document.getElementById("minutes").innerHTML = ("0" + minutes).slice(-2); // document.getElementById("seconds").innerHTML = ("0" + seconds).slice(-2); $('.countdown').html(parseInt(days, 10) + ' : ' + ("0" + hours).slice(-2) + ' : ' + ("0" + minutes).slice(-2) + ' : ' + ("0" + seconds).slice(-2) + " "); } else { return; } } function checkEnable(key, type){ _nameClassColor = $("#name_color").attr('data-info'); _nameClassSize = $("#name_size").attr('data-info'); _nameClassStyle = $("#name_style").attr('data-info'); if(_nameClassStyle === undefined) _nameClassStyle = ''; switch (key) { case "Color": // console.log("---------Color----------" + `${type}${_nameClassStyle}`); $(".handle_size").addClass("disabled"); // disable $(`.${type}${_nameClassStyle}` ).removeClass("disabled"); // enable break; case "Size": // console.log("---------Size----------" + `${type}${_nameClassStyle}`); $(".handle_color").addClass("disabled"); // disable $(`.${type}${_nameClassStyle}` ).removeClass("disabled"); // enable break; default: break; } } $(".price-wrapper").remove(); //code xoa khoang gia //set default price. $('.change_price').html('$' + variations[0].regular_price); $('.origin_price').each(function(index, value) { $(value).html('$' + (parseFloat(variations[0].regular_price) + parseFloat(discountDefault)).toFixed(2)); }); $('.input_price').each(function(index, value) { $(value).html(variations[0].regular_price); }); $('.name_sticky_222').each(function(index, value) { $(value).html(variations[0].name); }); $('.discount_price').html(' (save $' + discountDefault + ')'); $('.woocommerce-product-gallery').attr('src', default_src); $('#input_price').val(variations[0].regular_price); $('#input_image').val(default_src); $('#sku').val(variations[0].sku); classStyleDefault = $('#pattern').val(); $('.otp_option2.handle_size').each(function(ele, index) { $(this).removeClass('active'); }) isSelectSize = false; $('.otp_option2.handle_size.'+classStyleDefault).each(function(ele, index) { if(isSelectSize == false){ isSelectSize = true; $(this).click(); $(this).addClass('active'); } }) isSelectSize = false; foundStyle = false; $('.otp_option2.handleStyle').each(function(ele, index) { $(this).removeClass('active'); foundStyle = true; }) $('.otp_option2.handleStyle').each(function(ele, index) { if(isSelectSize == false){ isSelectSize = true; $(this).click(); $(this).addClass('active'); } }) if(foundStyle){ $(".handle_style").hide(); // hide all color and size $("." + classStyleDefault).show(); // show color and size of style } $('.otp_option2.handle_color').each(function(ele, index) { $(this).removeClass('active'); }) isSelectColor = false; $('.otp_option2.handle_color.'+classStyleDefault).each(function(ele, index) { if(isSelectColor == false){ isSelectColor = true; $(this).click(); $(this).addClass('active'); } }) let price_total = []; variations.forEach(function(val) { if ((typeof(val.regular_price) !== 'undefined') && (parseFloat(val.regular_price) > 0)) { price_total.push(val.regular_price); } }); let max = Math.max(...price_total); let min = Math.min(...price_total); let price = min.toFixed(2); let boolCallByStyle = false; $('.style > li').on('click', function(){ //Start: REFESH_STYLE---------------------------------------- // Refesh lại class style, active style vừa click $('.style > li').each(function(ele, index) { $(this).removeClass('active'); }) $(this).addClass('active'); //End: REFESH_STYLE---------------------------------------- _value_style = $(this).attr('data-class'); // GET data style vừa chọn $("#name_style").html($(this).attr('data-style')); // Gán Title style vừa chọn để hiển thị $("#name_style").attr("data-info", $(this).attr('data-class')); // Gán attribute style vừa chọn để xử lý về sau $(".handle_style").hide(); // ẩn tất cả các color và size $("." + _value_style).show(); // show tất cả các color và size thuộc style này //Start: CLICK_COLOR_AND_SIZE---------------------------------------------------- $('.otp_option2.handle_size').each(function(ele, index) { $(this).removeClass('active'); }) isSelectSize = false; $('.otp_option2.handle_size.'+_value_style).each(function(ele, index) { if(isSelectSize == false){ isSelectSize = true; boolCallByStyle = true; // Tắt check disale của thuộc tính đang lick $(this).click(); // Click vào thuộc tính Size có Style = style đang chọn $(this).addClass('active'); // Active Size này boolCallByStyle = false; // BẬt lại check disale của thuộc tính đang lick } }) // Tương tự SIZE $('.otp_option2.handle_color').each(function(ele, index) { $(this).removeClass('active'); }) isSelectColor = false; $('.otp_option2.handle_color.' + _value_style).each(function(ele, index) { var currentColor = $(this).attr('data-class') if (isSelectColor == false) { isSelectColor = true; boolCallByStyle = true; $(this).click(); $(this).addClass('active'); boolCallByStyle = false; } var image_t = getUrlImageByStyle(_value_style, currentColor) if(image_t != undefined){ $(this).find('img').attr("src", image_t); } }) //END: CLICK_COLOR_AND_SIZE---------------------------------------------------- //Start: GAN_GIA_TRI_DE_XU_LY ---------------------------------------------------- style = $(this).attr('data-style'); color = $("#name_color").html(); size = $("#name_size").html(); $("#pattern").val(_value_style); //End: GAN_GIA_TRI_DE_XU_LY---------------------------------------------------- let name = style + '/' + color + '/' + size; let name_dao = size + '/' + color + '/' + style; //kiêm tra trường hợp có 2 trường. if (style === undefined) { name = color + '/' + size; name_dao = size + '/' + color; } if (color === undefined) { name = style + '/' + size; name_dao = size + '/' + style; } if (size === undefined) { name = style + '/' + color; name_dao = color + '/' + style; } //kiểm tra tường hợp có 1 trường. if (style === undefined && color === undefined) { name = size; name_dao = size; } if (size === undefined && color === undefined) { name = style; name_dao = style; } if (size === undefined && style === undefined) { name = color; name_dao = color; } name_dao = name_dao.split(' ').join(''); name = name.split(' ').join(''); let disabled = true; //check gia tri hinh va lay thong tin hinh anh variations.forEach(function(val) { if(val.name !== undefined){ if ((val.name).split(' ').join('') === name || (val.name).split(' ').join('') === name_dao) { val.description !== undefined ? src = val.description : src = val.image; price = val.regular_price; sku = val.sku; disabled = false; } } }); if (disabled === true) { $('.single_add_to_cart_button').prop('disabled', true); $('#no-options').html('
Sorry, no products matched your selection. Please choose a different combination.
'); $('.change_price').html(''); } else { $('.single_add_to_cart_button').prop('disabled', false); $('#no-options').html(''); $('.change_price').html('$' + price); } // $('.woocommerce-product-gallery__image').attr('data-thumb', src); // $('.woocommerce-product-gallery__image a').href = src; // $('.woocommerce-product-gallery__image img').attr('src', src); var listItems = $('.woocommerce-product-gallery__image'); listItems.each(function(index, value) { if ($(value).attr("data-thumb") == src) { $(".product-gallery-slider").flickity('select', index); } }); // $('.change_price').html('$' + price); $('#input_price').val(price); // $('.input_price').html('$' + price); $('.input_price').each(function(index, value) { $(value).html(price); }); $('.name_sticky_222').each(function(index, value) { let sti_name = null; if(name.split('/').length > 1){ name.split('/'). forEach(function(vln){ if(sti_name == null){ sti_name = vln; } else{ sti_name = sti_name + ' / ' + vln; } }); } else{ sti_name = name; } $(value).html(sti_name); }); $('.origin_price').each(function(index, value) { $(value).html('$' + (parseFloat(price) + parseFloat(discountDefault)).toFixed(2)); }); //Minhasd $('#input_image').val(src); $('#input_name').val(name); $('#sku').val(sku); // puzuka $('.sticky-add-to-cart-img').attr("src", src); }); // puzuka_event_js $('.opt_ul_option2.color > li').on('click', function() { // console.log($(this).attr('data-color')); if ($(this).hasClass("disabled") && boolCallByStyle == false) return; $("#name_color").html($(this).attr('data-color')); $('.opt_ul_option2.color > li').each(function(ele, index) { $(this).removeClass('active'); }) $(this).addClass('active'); color = $(this).attr('data-color'); style = $("#name_style").html(); size = $('#name_size').html(); $("#color").val(color); $("#name_color").attr("data-info",$(this).attr('data-class')); checkEnable("Color",$(this).attr('data-class')); let name = style + '/' + color + '/' + size; let name_dao = size + '/' + color + '/' + style; if (style === undefined) { name = color + '/' + size; name_dao = size + '/' + color; } if (color === undefined) { name = style + '/' + size; name_dao = size + '/' + style; } if (size === undefined) { name = style + '/' + color; name_dao = color + '/' + style; } //kiểm tra tường hợp có 1 trường. if (style === undefined && color === undefined) { name = size; name_dao = size; } if (size === undefined && color === undefined) { name = style; name_dao = style; } if (size === undefined && style === undefined) { name = color; name_dao = color; } name_dao = name_dao.split(' ').join(''); name = name.split(' ').join(''); let disabled = true; //check gia tri hinh va lay thong tin hinh anh variations.forEach(function(val) { if(val.name !== undefined){ if ((val.name).split(' ').join('') === name || (val.name).split(' ').join('') === name_dao) { val.description !== undefined ? src = val.description : src = val.image; price = val.regular_price; sku = val.sku; disabled = false; } } }); if (disabled === true) { $('.single_add_to_cart_button').prop('disabled', true); $('#no-options').html('
Sorry, no products matched your selection. Please choose a different combination.
'); $('.change_price').html(''); } else { $('.single_add_to_cart_button').prop('disabled', false); $('#no-options').html(''); $('.change_price').html('$' + price); } //Check da dien du data chua check_sumit_form (); // $('.woocommerce-product-gallery__image').attr('data-thumb', src); // $('.woocommerce-product-gallery__image a').href = src; // $('.woocommerce-product-gallery__image img').attr('src', src); var listItems = $('.woocommerce-product-gallery__image'); listItems.each(function(index, value) { if ($(value).attr("data-thumb") == src) { $(".product-gallery-slider").flickity('select', index); } }); $('#input_price').val(price); // $('.input_price').html('$' + price); $('.input_price').each(function(index, value) { $(value).html(price); }); $('.name_sticky_222').each(function(index, value) { let sti_name = null; if(name.split('/').length > 1){ name.split('/'). forEach(function(vln){ if(sti_name == null){ sti_name = vln; } else{ sti_name = sti_name + ' / ' + vln; } }); } else{ sti_name = name; } $(value).html(sti_name); }); $('.origin_price').each(function(index, value) { $(value).html('$' + (parseFloat(price) + parseFloat(discountDefault)).toFixed(2)); }); $('#input_name').val(name); $('#input_image').val(src); $('#sku').val(sku); // puzuka $('.sticky-add-to-cart-img').attr("src", src); }) $('.opt_ul_option2.size > li').on('click', function() { // console.log("-----------call size---------------"); // console.log($(this).val()); if ($(this).hasClass("disabled") && boolCallByStyle == false) return; $("#name_size").html($(this).attr('data-size')); $('.opt_ul_option2.size > li').each(function(ele, index) { $(this).removeClass('active'); }) $(this).addClass('active'); "" size = $(this).attr('data-size'); style = $("#name_style").html(); color = $("#name_color").html(); $("#size").val(size); $("#name_size").attr("data-info",$(this).attr('data-class')); checkEnable("Size", $(this).attr('data-class')); let name = style + '/' + color + '/' + size; let name_dao = size + '/' + color + '/' + style; if (style === undefined) { name = color + '/' + size; name_dao = size + '/' + color; } if (color === undefined) { name = style + '/' + size; name_dao = size + '/' + style; } if (size === undefined) { name = style + '/' + color; name_dao = color + '/' + style; } //kiểm tra tường hợp có 1 trường. if (style === undefined && color === undefined) { name = size; name_dao = size; } if (size === undefined && color === undefined) { name = style; name_dao = style; } if (size === undefined && style === undefined) { name = color; name_dao = color; } name_dao = name_dao.split(' ').join(''); name = name.split(' ').join(''); let disabled = true; //check gia tri hinh va lay thong tin hinh anh variations.forEach(function(val) { if(val.name !== undefined){ if ((val.name).split(' ').join('') === name || (val.name).split(' ').join('') === name_dao) { val.description !== undefined ? src = val.description : src = val.image; price = val.regular_price; sku = val.sku; disabled = false; } } }); if (disabled === true) { $('.single_add_to_cart_button').prop('disabled', true); $('#no-options').html('
Sorry, no products matched your selection. Please choose a different combination.
'); $('.change_price').html(''); } else { $('.single_add_to_cart_button').prop('disabled', false); $('#no-options').html(''); $('.change_price').html('$' + price); } //Check da dien du data chua check_sumit_form (); // $('.woocommerce-product-gallery__image').attr('data-thumb', src); // $('.woocommerce-product-gallery__image a').href = src; // $('.woocommerce-product-gallery__image img').attr('src', src); // $('.wp-post-image').attr('src', src); var listItems = $('.woocommerce-product-gallery__image'); listItems.each(function(index, value) { if ($(value).attr("data-thumb") == src) { $(".product-gallery-slider").flickity('select', index); } }); $('#input_price').val(price); // $('.input_price').html('$' + price); $('.input_price').each(function(index, value) { $(value).html(price); }); $('.name_sticky_222').each(function(index, value) { let sti_name = null; if(name.split('/').length > 1){ name.split('/'). forEach(function(vln){ if(sti_name == null){ sti_name = vln; } else{ sti_name = sti_name + ' / ' + vln; } }); } else{ sti_name = name; } $(value).html(sti_name); }); $('.origin_price').each(function(index, value) { $(value).html('$' + (parseFloat(price) + parseFloat(discountDefault)).toFixed(2)); }); $('#input_image').val(src); $('#input_name').val(name); $('#sku').val(sku); // puzuka $('.sticky-add-to-cart-img').attr("src", src); }) //reset option. $('#reset_option').css('cursor', 'pointer').click(function() { $('#size').prop('selectedIndex', 0); $('#pattern').prop('selectedIndex', 0); $('#color').prop('selectedIndex', 0); $('.single_add_to_cart_button').prop('disabled', false); $('ul.color').find('li').each(function(index, value) { $(value).removeClass('active'); $(value).removeClass('disabled'); }); $('ul.size').find('li').each(function(index, value) { $(value).removeClass('active'); $(value).removeClass('disabled'); }); $('.input_price').each(function(index, value) { $(value).html(variations[0].regular_price); }); $('.name_sticky_222').each(function(index, value) { $(value).html(variations[0].name); }); }); $(".single_add_to_cart_button").css("display", "initial"); //reset custom input $('.upload_img_s3').html(''); $('.img_input').val(''); $('.input_text_form').val(''); // console.log($('.input_text_form')); $('.text_input').val(''); //Check da dien du data chua check_sumit_form (); }); //fresh when back if (performance.navigation.type == 2) { location.reload(true); }
| ||
| Clear | |
| ||