Hand-fringed table cloth with striped cotton and linen
${function() {
const variantData = data.variant || {"id":"0ce4d634-7bd7-4cd6-8c52-a0e12a381966","product_id":"ca90e363-f97a-4f49-afe7-03df988532dd","title":"khaki-35*150cm","weight_unit":"kg","inventory_quantity":0,"sku":"662211292189-khaki-35*150cm","barcode":"","position":9,"option1":"khaki","option2":"35*150cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1bbb2343217b2fc0149446848fd63d7d.jpeg","path":"1bbb2343217b2fc0149446848fd63d7d.jpeg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":28.9,"min_quantity":1}],"weight":"0","compare_at_price":"36.13","price":"28.9","retail_price":"36.13","available":true,"url":"\/products\/hand-fringed-table-cloth-with-striped-cotton-and-linen?variant=0ce4d634-7bd7-4cd6-8c52-a0e12a381966","available_quantity":999999999,"options":[{"name":"color","value":"khaki"},{"name":"size","value":"35*150cm"}],"off_ratio":20,"flashsale_info":[],"sales":0};
const saveType = "amount";
const productLabelDiscountOn = true;
return `
-
${saveType == 'percentage'
? `-${variantData.off_ratio}%`
: `-`
}
`;
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"0ce4d634-7bd7-4cd6-8c52-a0e12a381966","product_id":"ca90e363-f97a-4f49-afe7-03df988532dd","title":"khaki-35*150cm","weight_unit":"kg","inventory_quantity":0,"sku":"662211292189-khaki-35*150cm","barcode":"","position":9,"option1":"khaki","option2":"35*150cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1bbb2343217b2fc0149446848fd63d7d.jpeg","path":"1bbb2343217b2fc0149446848fd63d7d.jpeg","width":1500,"height":1500,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":28.9,"min_quantity":1}],"weight":"0","compare_at_price":"36.13","price":"28.9","retail_price":"36.13","available":true,"url":"\/products\/hand-fringed-table-cloth-with-striped-cotton-and-linen?variant=0ce4d634-7bd7-4cd6-8c52-a0e12a381966","available_quantity":999999999,"options":[{"name":"color","value":"khaki"},{"name":"size","value":"35*150cm"}],"off_ratio":20,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const postageFreeAmount = 69;
const custom_text = "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";
if (diffPrice > 0) {
tipText = custom_text.replace('{amount}', `
`);
}
return `
`;
}()}