${function() {
const variantData = data.variant || {"id":"e58de16b-b0a8-4986-b07e-51bcc393234b","product_id":"0b31e491-d4eb-4f51-8c0d-3b984aa7548b","title":"Rainbow-S","weight_unit":"kg","inventory_quantity":984,"sku":"086-230209-02-MT0036B4M4-Rainbow-S","barcode":"","position":1,"option1":"Rainbow","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d86e490eee832eba4698b8d42f161fa0.jpeg","path":"d86e490eee832eba4698b8d42f161fa0.jpeg","width":900,"height":1200,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":18.99,"min_quantity":1}],"weight":"0","compare_at_price":"18.99","price":"18.99","retail_price":"18.99","available":true,"url":"\/products\/mens-rainbow-stripe-t-shirt-1?variant=e58de16b-b0a8-4986-b07e-51bcc393234b","available_quantity":999999999,"options":[{"name":"Color","value":"Rainbow"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":6};
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.