${function() {
const variantData = data.variant || {"id":"a280b830-86af-42a4-8219-625eaab617d4","product_id":"9da6446f-6b12-4a9b-ac5a-bb309923cd70","title":"green-M","weight_unit":"kg","inventory_quantity":0,"sku":"66230508814-green-M","barcode":"","position":1,"option1":"green","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/79e6b707103ae83f2fee6fb8f1a9bd5d.jpeg","path":"79e6b707103ae83f2fee6fb8f1a9bd5d.jpeg","width":800,"height":800,"alt":"Casual all-match cotton linen jacquard shirt","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0.45","compare_at_price":"48","price":"39.99","retail_price":"48","available":true,"url":"\/products\/casual-all-match-cotton-linen-jacquard-shirt?variant=a280b830-86af-42a4-8219-625eaab617d4","available_quantity":999999999,"options":[{"name":"color","value":"green"},{"name":"size","value":"M"}],"off_ratio":17,"flashsale_info":[],"sales":0};
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.