${function() {
const variantData = data.variant || {"id":"78dd3ed4-b537-4ecb-9c98-2e97deb3264e","product_id":"7f538a87-9b09-4229-be3b-fc042eb7c6bc","title":"Brown-S","weight_unit":"kg","inventory_quantity":1000,"sku":"210963957498-Brown-S","barcode":"","position":1,"option1":"Brown","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/399e17048c2580c045b829422b3b5d05.jpeg","path":"399e17048c2580c045b829422b3b5d05.jpeg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":22.99,"min_quantity":1}],"weight":"0","compare_at_price":"47.99","price":"22.99","retail_price":"47.99","available":true,"url":"\/products\/mens-shorts-summer-shorts-beach-shorts-drawstring-elastic-waist-3d-print-graphic-breathable-soft-short-casual-daily-holiday-designer-ethnic-style-dark-brown-blue-micro-elastic?variant=78dd3ed4-b537-4ecb-9c98-2e97deb3264e","available_quantity":999999999,"options":[{"name":"Color","value":"Brown"},{"name":"Size","value":"S"}],"off_ratio":52,"flashsale_info":[],"sales":0};
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.