${function() {
const variantData = data.variant || {"id":"f82e9de0-69e1-4fdc-a41e-2e6681080613","product_id":"acaf8666-0015-444b-b8ba-e5407d0c439c","title":"blue-S","weight_unit":"kg","inventory_quantity":0,"sku":"66230504646-blue-S","barcode":"","position":1,"option1":"blue","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9730becbf4080e3e5097e554004b96ec.jpeg","path":"9730becbf4080e3e5097e554004b96ec.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=f82e9de0-69e1-4fdc-a41e-2e6681080613","available_quantity":999999999,"options":[{"name":"color","value":"blue"},{"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.