Cotton and Linen Shirt Suit
${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":"990516e1-3da4-4267-9855-624c9e03072e","product_id":"1dff24db-802e-48c0-a151-9b5aa8a9ddfa","title":"grey-S(UK 6-8)","weight_unit":"kg","inventory_quantity":1000,"sku":"YSHHP240075--grey-S(US 6-8)","barcode":"","position":1,"option1":"grey","option2":"S(UK 6-8)","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c3a03bf44db802cd31545bb6a4b50c99.jpeg","path":"c3a03bf44db802cd31545bb6a4b50c99.jpeg","width":600,"height":800,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":46.43,"min_quantity":1}],"weight":"0","compare_at_price":"91.79","price":"46.43","retail_price":"91.79","available":true,"url":"\/products\/cotton-and-linen-shirt-suit?variant=990516e1-3da4-4267-9855-624c9e03072e","available_quantity":999999999,"options":[{"name":"color","value":"grey"},{"name":"size","value":"S(UK 6-8)"}],"off_ratio":49,"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:May-18 - May-22
${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