${function() {
const variantData = data.variant || {"id":"f8bfa82f-e30b-4862-beb4-4436e2176f06","product_id":"076763d2-8491-4a18-8af6-ff1a86e33b53","title":"black-3XL","weight_unit":"kg","inventory_quantity":1000,"sku":"1566635160383250434","barcode":"","position":1,"option1":"black","option2":"3XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/07d942c3ca7c7532ee9be64b5ebddd87.png","path":"07d942c3ca7c7532ee9be64b5ebddd87.png","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"22.99","retail_price":"0","available":true,"url":"\/products\/mens-michigan-retro-casual-sweatpants?variant=f8bfa82f-e30b-4862-beb4-4436e2176f06","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"3XL"}],"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":"f8bfa82f-e30b-4862-beb4-4436e2176f06","product_id":"076763d2-8491-4a18-8af6-ff1a86e33b53","title":"black-3XL","weight_unit":"kg","inventory_quantity":1000,"sku":"1566635160383250434","barcode":"","position":1,"option1":"black","option2":"3XL","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/07d942c3ca7c7532ee9be64b5ebddd87.png","path":"07d942c3ca7c7532ee9be64b5ebddd87.png","width":1000,"height":1000,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"22.99","retail_price":"0","available":true,"url":"\/products\/mens-michigan-retro-casual-sweatpants?variant=f8bfa82f-e30b-4862-beb4-4436e2176f06","available_quantity":999999999,"options":[{"name":"Color","value":"black"},{"name":"Size","value":"3XL"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}