${function() {
const variantData = data.variant || {"id":"d4ca6af7-5287-41a5-87d8-3a594d44ea5e","product_id":"b18d617e-8150-4ca8-9127-27ef0eb89256","title":"white-S","weight_unit":"kg","inventory_quantity":1000,"sku":"1627507717035835393","barcode":"","position":7,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/08aea8a88275809c2b28710385949e56.jpeg","path":"08aea8a88275809c2b28710385949e56.jpeg","width":794,"height":794,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"17","retail_price":"0","available":true,"url":"\/products\/casual-slim-t-shirt-q1a2d212059a-2086-4007-9f1d-e9e4536f2e54?variant=d4ca6af7-5287-41a5-87d8-3a594d44ea5e","available_quantity":999999999,"options":[{"name":"Color","value":"white"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":2};
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.