${function() {
const variantData = data.variant || {"id":"ac72f628-8426-4de5-984a-d0f87da9c6c8","product_id":"bbfac7d5-b169-4297-91b1-2973aaf2a835","title":"green-M","weight_unit":"kg","inventory_quantity":1000,"sku":"1583030607743598593","barcode":"","position":1,"option1":"green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/77d47de8c7efdb386f2d31daa8414ccb.png","path":"77d47de8c7efdb386f2d31daa8414ccb.png","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":28.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"28.99","retail_price":"0","available":true,"url":"\/products\/mens-vintage-graphic-embroidered-crew-sweatshirt?variant=ac72f628-8426-4de5-984a-d0f87da9c6c8","available_quantity":999999999,"options":[{"name":"Color","value":"green"},{"name":"Size","value":"M"}],"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":"ac72f628-8426-4de5-984a-d0f87da9c6c8","product_id":"bbfac7d5-b169-4297-91b1-2973aaf2a835","title":"green-M","weight_unit":"kg","inventory_quantity":1000,"sku":"1583030607743598593","barcode":"","position":1,"option1":"green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/77d47de8c7efdb386f2d31daa8414ccb.png","path":"77d47de8c7efdb386f2d31daa8414ccb.png","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":28.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"28.99","retail_price":"0","available":true,"url":"\/products\/mens-vintage-graphic-embroidered-crew-sweatshirt?variant=ac72f628-8426-4de5-984a-d0f87da9c6c8","available_quantity":999999999,"options":[{"name":"Color","value":"green"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}