${function() {
const variantData = data.variant || {"id":"1404a484-327f-4c26-86ff-215eff8f67e7","product_id":"7867b8e7-2423-49f5-b7c0-2ff18ce06fa9","title":"White 1-Onesize","weight_unit":"kg","inventory_quantity":1000,"sku":"BK4113-White 1-Onesize","barcode":"","position":1,"option1":"White 1","option2":"Onesize","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5eb5f2f168c6a1374305442975352968.jpeg","path":"5eb5f2f168c6a1374305442975352968.jpeg","width":800,"height":533,"alt":"","aspect_ratio":1.5009380863039399},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/embroidery-over-knee-stockings?variant=1404a484-327f-4c26-86ff-215eff8f67e7","available_quantity":1000,"options":[{"name":"Color","value":"White 1"},{"name":"Size","value":"Onesize"}],"off_ratio":0,"flashsale_info":[],"sales":0};
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 variantData = data.variant || {"id":"1404a484-327f-4c26-86ff-215eff8f67e7","product_id":"7867b8e7-2423-49f5-b7c0-2ff18ce06fa9","title":"White 1-Onesize","weight_unit":"kg","inventory_quantity":1000,"sku":"BK4113-White 1-Onesize","barcode":"","position":1,"option1":"White 1","option2":"Onesize","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5eb5f2f168c6a1374305442975352968.jpeg","path":"5eb5f2f168c6a1374305442975352968.jpeg","width":800,"height":533,"alt":"","aspect_ratio":1.5009380863039399},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/embroidery-over-knee-stockings?variant=1404a484-327f-4c26-86ff-215eff8f67e7","available_quantity":1000,"options":[{"name":"Color","value":"White 1"},{"name":"Size","value":"Onesize"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}
${function() {
const postageFreeAmount = 100;
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 `
`;
}()}