${function() {
const variantData = data.variant || {"id":"51341da8-aa48-4ef3-a940-2a4f72d8c2a0","product_id":"2f551ac8-a214-4964-a331-84b40d10d8e1","title":"Black","weight_unit":"g","inventory_quantity":200,"sku":"CJEJ172823801AZ","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e3cc51c58cd23e0b6cb432013e78ca0b.jpeg","path":"e3cc51c58cd23e0b6cb432013e78ca0b.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25,"min_quantity":1}],"weight":"28","compare_at_price":"0","price":"25","retail_price":"0","available":true,"url":"\/products\/wireless-bluetooth-earphone-sport-neck-hanger?variant=51341da8-aa48-4ef3-a940-2a4f72d8c2a0","available_quantity":200,"options":[{"name":"Color","value":"Black"}],"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":"51341da8-aa48-4ef3-a940-2a4f72d8c2a0","product_id":"2f551ac8-a214-4964-a331-84b40d10d8e1","title":"Black","weight_unit":"g","inventory_quantity":200,"sku":"CJEJ172823801AZ","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e3cc51c58cd23e0b6cb432013e78ca0b.jpeg","path":"e3cc51c58cd23e0b6cb432013e78ca0b.jpeg","width":750,"height":750,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":25,"min_quantity":1}],"weight":"28","compare_at_price":"0","price":"25","retail_price":"0","available":true,"url":"\/products\/wireless-bluetooth-earphone-sport-neck-hanger?variant=51341da8-aa48-4ef3-a940-2a4f72d8c2a0","available_quantity":200,"options":[{"name":"Color","value":"Black"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
`
}()}