Cotton hemp tassel strip cloth cotton thread table flag
${function() {
const variantData = data.variant || {"id":"742ef92f-e3e7-433d-8a13-e2c65ecbba78","product_id":"2bfcb61a-2418-4c7c-81c7-9abd092642ed","title":"red-30*120cm","weight_unit":"kg","inventory_quantity":0,"sku":"662211292191-red-30*120cm","barcode":"","position":1,"option1":"red","option2":"30*120cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/909a12fb99f242345ba94c5ff27901d6.jpeg","path":"909a12fb99f242345ba94c5ff27901d6.jpeg","width":1488,"height":1488,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":12.9,"min_quantity":1}],"weight":"0","compare_at_price":"15.36","price":"12.9","retail_price":"15.36","available":true,"url":"\/products\/cotton-hemp-tassel-strip-cloth-cotton-thread-table-flag?variant=742ef92f-e3e7-433d-8a13-e2c65ecbba78","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"30*120cm"}],"off_ratio":16,"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":"742ef92f-e3e7-433d-8a13-e2c65ecbba78","product_id":"2bfcb61a-2418-4c7c-81c7-9abd092642ed","title":"red-30*120cm","weight_unit":"kg","inventory_quantity":0,"sku":"662211292191-red-30*120cm","barcode":"","position":1,"option1":"red","option2":"30*120cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/909a12fb99f242345ba94c5ff27901d6.jpeg","path":"909a12fb99f242345ba94c5ff27901d6.jpeg","width":1488,"height":1488,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":12.9,"min_quantity":1}],"weight":"0","compare_at_price":"15.36","price":"12.9","retail_price":"15.36","available":true,"url":"\/products\/cotton-hemp-tassel-strip-cloth-cotton-thread-table-flag?variant=742ef92f-e3e7-433d-8a13-e2c65ecbba78","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"30*120cm"}],"off_ratio":16,"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 `
`;
}()}