${function() {
const variantData = data.variant || {"id":"8959f785-4918-4af5-a493-a6bfb5fed295","product_id":"12a7c093-0f2b-4334-9537-c4ec95e63104","title":"coffee-S","weight_unit":"kg","inventory_quantity":0,"sku":"662211211918-coffee-S","barcode":"","position":5,"option1":"coffee","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5acb6592ba3fce96b820a56752574ce0.jpeg","path":"5acb6592ba3fce96b820a56752574ce0.jpeg","width":800,"height":800,"alt":"Design sense drawstring waist elegant woolen coat","aspect_ratio":1},"wholesale_price":[{"price":75.99,"min_quantity":1}],"weight":"0.6","compare_at_price":"149","price":"75.99","retail_price":"149","available":false,"url":"\/products\/design-sense-drawstring-waist-elegant-woolen-coat?variant=8959f785-4918-4af5-a493-a6bfb5fed295","available_quantity":0,"options":[{"name":"color","value":"coffee"},{"name":"size","value":"S"}],"off_ratio":49,"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.