Simple tufted embroidered Bohemian pillow cushion
${function() {
const variantData = data.variant || {"id":"100eaad7-48b8-4aaf-8f9d-9d77e166e586","product_id":"c213db2c-bca4-43b6-a324-39b1964c6536","title":"style-1","weight_unit":"kg","inventory_quantity":0,"sku":"662211302262-style-1","barcode":"","position":1,"option1":"style-1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b9bac529f03287d414da8fb8e6ad074f.jpeg","path":"b9bac529f03287d414da8fb8e6ad074f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.59,"min_quantity":1}],"weight":"0.26","compare_at_price":"33.32","price":"33.59","retail_price":"33.32","available":true,"url":"\/products\/simple-tufted-embroidered-bohemian-pillow-cushion?variant=100eaad7-48b8-4aaf-8f9d-9d77e166e586","available_quantity":999999999,"options":[{"name":"style","value":"style-1"}],"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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"100eaad7-48b8-4aaf-8f9d-9d77e166e586","product_id":"c213db2c-bca4-43b6-a324-39b1964c6536","title":"style-1","weight_unit":"kg","inventory_quantity":0,"sku":"662211302262-style-1","barcode":"","position":1,"option1":"style-1","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/b9bac529f03287d414da8fb8e6ad074f.jpeg","path":"b9bac529f03287d414da8fb8e6ad074f.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":33.59,"min_quantity":1}],"weight":"0.26","compare_at_price":"33.32","price":"33.59","retail_price":"33.32","available":true,"url":"\/products\/simple-tufted-embroidered-bohemian-pillow-cushion?variant=100eaad7-48b8-4aaf-8f9d-9d77e166e586","available_quantity":999999999,"options":[{"name":"style","value":"style-1"}],"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 `
`;
}()}