${function() {
const variantData = data.variant || {"id":"cf82b0ad-be07-459b-a1e7-cf2db366db3d","product_id":"caa84732-ebc5-4844-b2fd-33d5589270b3","title":"White-S","weight_unit":"kg","inventory_quantity":1000,"sku":"20230527-B02-White-S","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5db2dec8742868be63cd6e62d3ed6b16.jpg","path":"5db2dec8742868be63cd6e62d3ed6b16.jpg","width":720,"height":960,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":26.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"26.99","retail_price":"0","available":true,"url":"\/products\/mens-linen-shirt-casual-shirt-summer-shirt-beach-shirt-black-white-pink-short-sleeve-plain-lapel-spring-summer-hawaiian-holiday-clothing-apparel-front-pocket?variant=cf82b0ad-be07-459b-a1e7-cf2db366db3d","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":0,"flashsale_info":[],"sales":1};
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.