${function() {
const variantData = data.variant || {"id":"208d7aa9-81a3-4d66-a6a3-5827f86bc124","product_id":"acaf8666-0015-444b-b8ba-e5407d0c439c","title":"purple-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230504646-purple-S","barcode":"","position":6,"option1":"purple","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f6a0bb1b50942a48db7eef0bd2d60c2b.jpeg","path":"f6a0bb1b50942a48db7eef0bd2d60c2b.jpeg","width":800,"height":800,"alt":"Simple cotton linen V-neck T-shirt","aspect_ratio":1},"wholesale_price":[{"price":36.54,"min_quantity":1}],"weight":"0.4","compare_at_price":"45","price":"36.54","retail_price":"45","available":true,"url":"\/products\/simple-cotton-linen-v-neck-t-shirt?variant=208d7aa9-81a3-4d66-a6a3-5827f86bc124","available_quantity":999999999,"options":[{"name":"color","value":"purple"},{"name":"size","value":"S"}],"off_ratio":19,"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.