${function() {
const variantData = data.variant || {"id":"08f14d22-1335-4af5-b5f5-3f32145e84bc","product_id":"40dbfe57-760f-47be-9101-7f036902f1ed","title":"khaki-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230506770-khaki-S","barcode":"","position":1,"option1":"khaki","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f5416553d4944b11c325259fd832af8b.jpeg","path":"f5416553d4944b11c325259fd832af8b.jpeg","width":800,"height":800,"alt":"Stand collar 3\/4 sleeve cotton linen shirt","aspect_ratio":1},"wholesale_price":[{"price":39.72,"min_quantity":1}],"weight":"0.3","compare_at_price":"48","price":"39.72","retail_price":"48","available":true,"url":"\/products\/stand-collar-3-4-sleeve-cotton-linen-shirt-y8vu?variant=08f14d22-1335-4af5-b5f5-3f32145e84bc","available_quantity":999999999,"options":[{"name":"color","value":"khaki"},{"name":"size","value":"S"}],"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.