${function() {
const variantData = data.variant || {"id":"4fddbff2-ab67-4e48-98ea-f9ca64e19df0","product_id":"40dbfe57-760f-47be-9101-7f036902f1ed","title":"white-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230506770-white-S","barcode":"","position":5,"option1":"white","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6dbe4a5632b3c11cabcd80a8b2ef07c8.jpeg","path":"6dbe4a5632b3c11cabcd80a8b2ef07c8.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=4fddbff2-ab67-4e48-98ea-f9ca64e19df0","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"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.