${function() {
const variantData = data.variant || {"id":"4d2d11ea-6e52-4420-aace-112d75e2b569","product_id":"7f538a87-9b09-4229-be3b-fc042eb7c6bc","title":"Blue-S","weight_unit":"kg","inventory_quantity":1000,"sku":"210963957498-Blue-S","barcode":"","position":7,"option1":"Blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4d9b8b46df5df0b64165f51f809d0022.jpeg","path":"4d9b8b46df5df0b64165f51f809d0022.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=4d2d11ea-6e52-4420-aace-112d75e2b569","available_quantity":999999999,"options":[{"name":"Color","value":"Blue"},{"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.