Vintage fringed dining room decorative tablecloth
${function() {
const variantData = data.variant || {"id":"aee76ca4-1ab9-4d69-94a2-9c63cc1ae8c2","product_id":"0f73339f-56e9-40d5-866c-3c2bfc240eb7","title":"red-30*120cm","weight_unit":"kg","inventory_quantity":0,"sku":"662211292192-red-30*120cm","barcode":"","position":11,"option1":"red","option2":"30*120cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/97d9508643f3c34a69695fa4fdbdab19.jpeg","path":"97d9508643f3c34a69695fa4fdbdab19.jpeg","width":1288,"height":1288,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.9,"min_quantity":1}],"weight":"0","compare_at_price":"17.16","price":"13.9","retail_price":"17.16","available":true,"url":"\/products\/vintage-fringed-dining-room-decorative-tablecloth?variant=aee76ca4-1ab9-4d69-94a2-9c63cc1ae8c2","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"30*120cm"}],"off_ratio":19,"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":"aee76ca4-1ab9-4d69-94a2-9c63cc1ae8c2","product_id":"0f73339f-56e9-40d5-866c-3c2bfc240eb7","title":"red-30*120cm","weight_unit":"kg","inventory_quantity":0,"sku":"662211292192-red-30*120cm","barcode":"","position":11,"option1":"red","option2":"30*120cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/97d9508643f3c34a69695fa4fdbdab19.jpeg","path":"97d9508643f3c34a69695fa4fdbdab19.jpeg","width":1288,"height":1288,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":13.9,"min_quantity":1}],"weight":"0","compare_at_price":"17.16","price":"13.9","retail_price":"17.16","available":true,"url":"\/products\/vintage-fringed-dining-room-decorative-tablecloth?variant=aee76ca4-1ab9-4d69-94a2-9c63cc1ae8c2","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"30*120cm"}],"off_ratio":19,"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 `
`;
}()}