${function() {
const variantData = data.variant || {"id":"9c6542d1-41e2-483c-b5c3-7126b47db22c","product_id":"c757efee-7181-4715-befd-8fef050155b6","title":"Black-S","weight_unit":"kg","inventory_quantity":0,"sku":"XL2308183207-Black-S","barcode":"","position":1,"option1":"Black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5feb23671f843e307a7b31c031b2e05c.jpeg","path":"5feb23671f843e307a7b31c031b2e05c.jpeg","width":800,"height":800,"alt":"Brewery Halloween T-shirt","aspect_ratio":1},"wholesale_price":[{"price":22.98,"min_quantity":1}],"weight":"0.2","compare_at_price":"35","price":"22.98","retail_price":"35","available":true,"url":"\/products\/brewery-halloween-t-shirt?variant=9c6542d1-41e2-483c-b5c3-7126b47db22c","available_quantity":999999999,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"S"}],"off_ratio":34,"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.