${function() {
const variantData = data.variant || {"id":"2ca9c3e6-9728-44bf-842e-f90fa420b71e","product_id":"0256c26a-e30f-4a8d-8be3-db2d6d0f28cf","title":"white-S","weight_unit":"kg","inventory_quantity":1000,"sku":"MR1572-white-S","barcode":"","position":1,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/946b6d86f680ea20db05adacd12cd2b1.jpeg","path":"946b6d86f680ea20db05adacd12cd2b1.jpeg","width":860,"height":860,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.9,"min_quantity":1}],"weight":"0","compare_at_price":"28.7","price":"19.9","retail_price":"28.7","available":true,"url":"\/products\/small-v-neck-stitching-cropped-sleeve-dress?variant=2ca9c3e6-9728-44bf-842e-f90fa420b71e","available_quantity":999999999,"options":[{"name":"colour","value":"white"},{"name":"Size","value":"S"}],"off_ratio":31,"flashsale_info":[],"sales":0};
const saveType = "percentage";
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":"2ca9c3e6-9728-44bf-842e-f90fa420b71e","product_id":"0256c26a-e30f-4a8d-8be3-db2d6d0f28cf","title":"white-S","weight_unit":"kg","inventory_quantity":1000,"sku":"MR1572-white-S","barcode":"","position":1,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/946b6d86f680ea20db05adacd12cd2b1.jpeg","path":"946b6d86f680ea20db05adacd12cd2b1.jpeg","width":860,"height":860,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.9,"min_quantity":1}],"weight":"0","compare_at_price":"28.7","price":"19.9","retail_price":"28.7","available":true,"url":"\/products\/small-v-neck-stitching-cropped-sleeve-dress?variant=2ca9c3e6-9728-44bf-842e-f90fa420b71e","available_quantity":999999999,"options":[{"name":"colour","value":"white"},{"name":"Size","value":"S"}],"off_ratio":31,"flashsale_info":[],"sales":0};
return `
Weight : ${variantData && variantData.weight}${variantData && variantData.weight_unit}
Barcode : ${variantData && variantData.barcode}
`
}()}