Comfortable and leisurely home three-piece set
${function(){
const optName = "color";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
Please select a color
`;
}()}
${function(){
const optName = "size";
const optionValue = data.originData.selectData ? data.originData.selectData[optName].value[0] : data.originData.value;
return `
Please select a size
`;
}()}
${function() {
const variantData = data.variant || {"id":"ca8bc616-a6c7-4e94-84d9-b6b7e43a58d2","product_id":"76b98dc6-7975-4f01-a378-8d3113bc86e5","title":"gray-L","weight_unit":"kg","inventory_quantity":1000,"sku":"6621111785-gray-L","barcode":"","position":1,"option1":"gray","option2":"L","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/58359f50251271f4301f264e989db76f.jpeg","path":"58359f50251271f4301f264e989db76f.jpeg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":38.83,"min_quantity":1}],"weight":"0","compare_at_price":"74","price":"38.83","retail_price":"74","available":true,"url":"\/products\/comfortable-and-leisurely-home-three-piece-set?variant=ca8bc616-a6c7-4e94-84d9-b6b7e43a58d2","available_quantity":1000,"options":[{"name":"color","value":"gray"},{"name":"size","value":"L"}],"off_ratio":48,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productSaveLabel = false;
return `
-
${saveType == 'percent' ? `-${variantData.off_ratio}%` : `-` }
`; }()}
Free worldwide shipping 80$ +
Product was out of stock.
Product is unavailable.
Estimated Delivery:Apr-22 - Apr-26
${function() {
const type = 'hero';
const postageFreeAmount = 80;
const custom_text_hero = "Buy {amount} more to enjoy FREE Shipping";
const totalPrice = +data.total_price;
const diffPrice = postageFreeAmount - totalPrice;
const percentDiff = (diffPrice > 0 ? (totalPrice / postageFreeAmount * 100) : 100) + '%';
let tipText = "Your order is free delivery";
const custom_text_wind = "Buy {amount} more to enjoy FREE Shipping";
const custom_text = type === 'hero' ? custom_text_hero : custom_text_wind;
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
${type === 'hero' ?
`
` :
`
${tipText}
Your order is free delivery
`
}
`;
}()}
${function() {
const minInventory = parseInt('10');
const maxInventory = parseInt('50');
const randomInventory = Math.round(Math.random() * (maxInventory - minInventory)) + minInventory;
const customText = "Only {stock} item(s) left in stock!".replace(/\{stock\}/g, '' + randomInventory + '');
const barWidth = (randomInventory / maxInventory) * 100 + '%';
return `
`;
}()}
people are viewing this right now