Rainbow tufted embrace embroidery pillow cover
${function() {
const variantData = data.variant || {"id":"c42bb3a4-e1b8-4739-840f-8675fa4f626a","product_id":"bd754298-4d77-4110-a04b-8bbaeb557644","title":"rainbow-3-pillowcase","weight_unit":"kg","inventory_quantity":0,"sku":"rainbow-3-pillowcase","barcode":"","position":3,"option1":"rainbow-3","option2":"pillowcase","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/51e89809e6710684055f14477c1b6625.jpeg","path":"51e89809e6710684055f14477c1b6625.jpeg","width":750,"height":840,"alt":"","aspect_ratio":0.8928571428571429},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"34.99","price":"27.99","retail_price":"34.99","available":true,"url":"\/products\/rainbow-tufted-embrace-embroidery-pillow-cover?variant=c42bb3a4-e1b8-4739-840f-8675fa4f626a","available_quantity":999999999,"options":[{"name":"color","value":"rainbow-3"},{"name":"style","value":"pillowcase"}],"off_ratio":20,"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":"c42bb3a4-e1b8-4739-840f-8675fa4f626a","product_id":"bd754298-4d77-4110-a04b-8bbaeb557644","title":"rainbow-3-pillowcase","weight_unit":"kg","inventory_quantity":0,"sku":"rainbow-3-pillowcase","barcode":"","position":3,"option1":"rainbow-3","option2":"pillowcase","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/51e89809e6710684055f14477c1b6625.jpeg","path":"51e89809e6710684055f14477c1b6625.jpeg","width":750,"height":840,"alt":"","aspect_ratio":0.8928571428571429},"wholesale_price":[{"price":27.99,"min_quantity":1}],"weight":"0","compare_at_price":"34.99","price":"27.99","retail_price":"34.99","available":true,"url":"\/products\/rainbow-tufted-embrace-embroidery-pillow-cover?variant=c42bb3a4-e1b8-4739-840f-8675fa4f626a","available_quantity":999999999,"options":[{"name":"color","value":"rainbow-3"},{"name":"style","value":"pillowcase"}],"off_ratio":20,"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 `
`;
}()}