Cotton and linen light luxury geometric fringe sofa pillow
${function() {
const variantData = data.variant || {"id":"a6a6da3f-b14a-4f5d-89b8-8c79b0c8a4ad","product_id":"8406f1bb-848c-465a-9e89-c113ceececf2","title":"tassel-pillowcase45x45cm","weight_unit":"kg","inventory_quantity":0,"sku":"662211292232-tassel-pillowcase45x45cm","barcode":"","position":3,"option1":"tassel","option2":"pillowcase45x45cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b020865ce9970e50d79da3b98fc3abfc.png","path":"b020865ce9970e50d79da3b98fc3abfc.png","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":31.08,"min_quantity":1}],"weight":"0.3","compare_at_price":"30.47","price":"31.08","retail_price":"30.47","available":true,"url":"\/products\/cotton-and-linen-light-luxury-geometric-fringe-sofa-pillow?variant=a6a6da3f-b14a-4f5d-89b8-8c79b0c8a4ad","available_quantity":999999999,"options":[{"name":"color","value":"tassel"},{"name":"size","value":"pillowcase45x45cm"}],"off_ratio":0,"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":"a6a6da3f-b14a-4f5d-89b8-8c79b0c8a4ad","product_id":"8406f1bb-848c-465a-9e89-c113ceececf2","title":"tassel-pillowcase45x45cm","weight_unit":"kg","inventory_quantity":0,"sku":"662211292232-tassel-pillowcase45x45cm","barcode":"","position":3,"option1":"tassel","option2":"pillowcase45x45cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b020865ce9970e50d79da3b98fc3abfc.png","path":"b020865ce9970e50d79da3b98fc3abfc.png","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":31.08,"min_quantity":1}],"weight":"0.3","compare_at_price":"30.47","price":"31.08","retail_price":"30.47","available":true,"url":"\/products\/cotton-and-linen-light-luxury-geometric-fringe-sofa-pillow?variant=a6a6da3f-b14a-4f5d-89b8-8c79b0c8a4ad","available_quantity":999999999,"options":[{"name":"color","value":"tassel"},{"name":"size","value":"pillowcase45x45cm"}],"off_ratio":0,"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 `
`;
}()}