${function() {
const variantData = data.variant || {"id":"c4d23c8d-7965-4971-892b-8ba76b4b2748","product_id":"e268fe96-2415-4147-b014-b8cbfba9432c","title":"Colorful-AdultSize","weight_unit":"kg","inventory_quantity":999,"sku":"103-220926-07-RGF2YRSUQ5-Colorful-AdultSize","barcode":"","position":1,"option1":"Colorful","option2":"AdultSize","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/53ff0ec525dcc197400eb19e96a96f61.jpeg","path":"53ff0ec525dcc197400eb19e96a96f61.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":18.63,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"18.63","retail_price":"0","available":true,"url":"\/products\/autumn-and-winter-maple-leaf-cute-plush-fox-schals-schals?variant=c4d23c8d-7965-4971-892b-8ba76b4b2748","available_quantity":999999999,"options":[{"name":"Color","value":"Colorful"},{"name":"Size","value":"AdultSize"}],"off_ratio":0,"flashsale_info":[],"sales":1};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
return `
-
${saveText.replace('\{\{saved_amount\}\}',
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 postageFreeAmount = 79;
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 `
`;
}()}