Summer Nap Knited Tassel Sofa Blanket
${function() {
const variantData = data.variant || {"id":"5b5ac57e-9f5e-42ba-bf8d-aa2e42741fcf","product_id":"ec51e70b-f100-4412-a20f-c1595fc52582","title":"Yellow-127*180CM","weight_unit":"kg","inventory_quantity":999,"sku":"22070507-Yellow-127*180CM","barcode":"","position":1,"option1":"Yellow","option2":"127*180CM","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/966fbf1d0b497ea5c1a3fe4c7724e495.jpeg","path":"966fbf1d0b497ea5c1a3fe4c7724e495.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":43,"min_quantity":1}],"weight":"0","compare_at_price":"51.19","price":"43","retail_price":"51.19","available":true,"url":"\/products\/summer-nap-knited-tassel-sofa-blanket?variant=5b5ac57e-9f5e-42ba-bf8d-aa2e42741fcf","available_quantity":999999999,"options":[{"name":"Color","value":"Yellow"},{"name":"Size","value":"127*180CM"}],"off_ratio":16,"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":"5b5ac57e-9f5e-42ba-bf8d-aa2e42741fcf","product_id":"ec51e70b-f100-4412-a20f-c1595fc52582","title":"Yellow-127*180CM","weight_unit":"kg","inventory_quantity":999,"sku":"22070507-Yellow-127*180CM","barcode":"","position":1,"option1":"Yellow","option2":"127*180CM","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/966fbf1d0b497ea5c1a3fe4c7724e495.jpeg","path":"966fbf1d0b497ea5c1a3fe4c7724e495.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":43,"min_quantity":1}],"weight":"0","compare_at_price":"51.19","price":"43","retail_price":"51.19","available":true,"url":"\/products\/summer-nap-knited-tassel-sofa-blanket?variant=5b5ac57e-9f5e-42ba-bf8d-aa2e42741fcf","available_quantity":999999999,"options":[{"name":"Color","value":"Yellow"},{"name":"Size","value":"127*180CM"}],"off_ratio":16,"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 `
`;
}()}