Christmas style cashmere scarf thickened warm shawl
${function() {
const variantData = data.variant || {"id":"41ac5ae7-3c28-4035-98d7-cee9b6e5a877","product_id":"24ec897c-6f6f-4076-b22c-329a9dd719e0","title":"red-200cm","weight_unit":"kg","inventory_quantity":0,"sku":"66221027930-red-200cm","barcode":"","position":1,"option1":"red","option2":"200cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f6a72c58369d2d1b945189e4465ff60d.jpeg","path":"f6a72c58369d2d1b945189e4465ff60d.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.54,"min_quantity":1}],"weight":"0.37","compare_at_price":"35.59","price":"29.54","retail_price":"35.59","available":true,"url":"\/products\/christmas-style-cashmere-scarf-thickened-warm-shawl?variant=41ac5ae7-3c28-4035-98d7-cee9b6e5a877","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"200cm"}],"off_ratio":17,"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":"41ac5ae7-3c28-4035-98d7-cee9b6e5a877","product_id":"24ec897c-6f6f-4076-b22c-329a9dd719e0","title":"red-200cm","weight_unit":"kg","inventory_quantity":0,"sku":"66221027930-red-200cm","barcode":"","position":1,"option1":"red","option2":"200cm","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f6a72c58369d2d1b945189e4465ff60d.jpeg","path":"f6a72c58369d2d1b945189e4465ff60d.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.54,"min_quantity":1}],"weight":"0.37","compare_at_price":"35.59","price":"29.54","retail_price":"35.59","available":true,"url":"\/products\/christmas-style-cashmere-scarf-thickened-warm-shawl?variant=41ac5ae7-3c28-4035-98d7-cee9b6e5a877","available_quantity":999999999,"options":[{"name":"color","value":"red"},{"name":"size","value":"200cm"}],"off_ratio":17,"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 `
`;
}()}