${function() {
const variantData = data.variant || {"id":"70f38740-ac69-4ffd-9c0c-fc10ea472ffd","product_id":"23bd58c2-644b-42cd-b3dd-ec1510fd4c6f","title":"XS","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"XS","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/412ebeccf09eb9aefd1deabdd85c5bfa.png","path":"412ebeccf09eb9aefd1deabdd85c5bfa.png","width":236,"height":283,"alt":"","aspect_ratio":0.833922261484099},"wholesale_price":[{"price":45,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"45","retail_price":"0","available":true,"url":"\/products\/love-shorts?variant=70f38740-ac69-4ffd-9c0c-fc10ea472ffd","available_quantity":999999999,"options":[{"name":"SIZE","value":"XS"}],"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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"70f38740-ac69-4ffd-9c0c-fc10ea472ffd","product_id":"23bd58c2-644b-42cd-b3dd-ec1510fd4c6f","title":"XS","weight_unit":"kg","inventory_quantity":1000,"sku":"","barcode":"","position":1,"option1":"XS","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/412ebeccf09eb9aefd1deabdd85c5bfa.png","path":"412ebeccf09eb9aefd1deabdd85c5bfa.png","width":236,"height":283,"alt":"","aspect_ratio":0.833922261484099},"wholesale_price":[{"price":45,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"45","retail_price":"0","available":true,"url":"\/products\/love-shorts?variant=70f38740-ac69-4ffd-9c0c-fc10ea472ffd","available_quantity":999999999,"options":[{"name":"SIZE","value":"XS"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Sku : ${variantData && variantData.sku}
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}