Soft Linen Texture Scarf
${function() {
const variantData = data.variant || {"id":"81a362ab-1159-4ae7-a304-fd4efc1535db","product_id":"3a156f07-eb8a-45f8-8582-40d9702a68aa","title":"red-one size","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21013005-red-onesize","barcode":"","position":3,"option1":"red","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0a8afb581ece19faf6eb0ce9cf8c2fbc.jpeg","path":"0a8afb581ece19faf6eb0ce9cf8c2fbc.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.31,"min_quantity":1}],"weight":"0","compare_at_price":"22.84","price":"16.31","retail_price":"22.84","available":true,"url":"\/products\/soft-linen-texture-scraf?variant=81a362ab-1159-4ae7-a304-fd4efc1535db","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"one size"}],"off_ratio":29,"flashsale_info":[],"sales":3};
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":"81a362ab-1159-4ae7-a304-fd4efc1535db","product_id":"3a156f07-eb8a-45f8-8582-40d9702a68aa","title":"red-one size","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21013005-red-onesize","barcode":"","position":3,"option1":"red","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0a8afb581ece19faf6eb0ce9cf8c2fbc.jpeg","path":"0a8afb581ece19faf6eb0ce9cf8c2fbc.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":16.31,"min_quantity":1}],"weight":"0","compare_at_price":"22.84","price":"16.31","retail_price":"22.84","available":true,"url":"\/products\/soft-linen-texture-scraf?variant=81a362ab-1159-4ae7-a304-fd4efc1535db","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"one size"}],"off_ratio":29,"flashsale_info":[],"sales":3};
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 `
`;
}()}