${function() {
const variantData = data.variant || {"id":"bbdcf1a8-8e25-4021-933b-afca8e9754b3","product_id":"288d8c81-e4ed-442c-bacd-9c84b1f24132","title":"Black-Onesize","weight_unit":"kg","inventory_quantity":977,"sku":"BK1420-Onesize-#4-Black","barcode":"","position":1,"option1":"Black","option2":"Onesize","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2941c179a0df3889748d7cd453930491.png","path":"2941c179a0df3889748d7cd453930491.png","width":847,"height":960,"alt":"","aspect_ratio":0.8822916666666667},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"9.99","retail_price":"0","available":true,"url":"\/products\/fishnet-high-tights-stocking?variant=bbdcf1a8-8e25-4021-933b-afca8e9754b3","available_quantity":977,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"Onesize"}],"off_ratio":0,"flashsale_info":[],"sales":7};
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":"bbdcf1a8-8e25-4021-933b-afca8e9754b3","product_id":"288d8c81-e4ed-442c-bacd-9c84b1f24132","title":"Black-Onesize","weight_unit":"kg","inventory_quantity":977,"sku":"BK1420-Onesize-#4-Black","barcode":"","position":1,"option1":"Black","option2":"Onesize","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/2941c179a0df3889748d7cd453930491.png","path":"2941c179a0df3889748d7cd453930491.png","width":847,"height":960,"alt":"","aspect_ratio":0.8822916666666667},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0.4","compare_at_price":"0","price":"9.99","retail_price":"0","available":true,"url":"\/products\/fishnet-high-tights-stocking?variant=bbdcf1a8-8e25-4021-933b-afca8e9754b3","available_quantity":977,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"Onesize"}],"off_ratio":0,"flashsale_info":[],"sales":7};
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 `
`;
}()}