${function() {
const variantData = data.variant || {"id":"977c36ea-1483-4a3d-b62c-3fbf0ff49cdd","product_id":"e5313e22-b448-445d-8d8a-69bd4b1354f5","title":"black-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230310421-black-S","barcode":"","position":6,"option1":"black","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e9e9c5769ab0aea0e30d12506673433f.jpeg","path":"e9e9c5769ab0aea0e30d12506673433f.jpeg","width":800,"height":800,"alt":"Linen dropped shoulders lapel collar casual shirt","aspect_ratio":1},"wholesale_price":[{"price":34.89,"min_quantity":1}],"weight":"0.2","compare_at_price":"42","price":"34.89","retail_price":"42","available":true,"url":"\/products\/linen-dropped-shoulders-lapel-collar-casual-shirt?variant=977c36ea-1483-4a3d-b62c-3fbf0ff49cdd","available_quantity":999999999,"options":[{"name":"color","value":"black"},{"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.