${function() {
const variantData = data.variant || {"id":"bb56cfc4-9ddb-49b0-87b7-1e89552cc8cb","product_id":"728b5a89-2f73-4dc9-9e9e-08dc168cad2e","title":"Khaki-M","weight_unit":"kg","inventory_quantity":1000,"sku":"X131-231011-01-NUJM8F68L4-Khaki-M","barcode":"","position":1,"option1":"Khaki","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/c1a6a1798fbc3520cf9e84167a700a8e.jpeg","path":"c1a6a1798fbc3520cf9e84167a700a8e.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0.5","compare_at_price":"25.99","price":"25.99","retail_price":"25.99","available":true,"url":"\/products\/mens-winter-hooded-cotton-padded-warm-coat?variant=bb56cfc4-9ddb-49b0-87b7-1e89552cc8cb","available_quantity":999999999,"options":[{"name":"Color ","value":"Khaki"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":8};
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.