${function() {
const variantData = data.variant || {"id":"799c8bbb-678c-4ec1-882c-43c6f24a4842","product_id":"cba18fdc-4d53-4787-8ee0-259e23b9beea","title":"Blue-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21041501-blue-s","barcode":"","position":7,"option1":"Blue","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4932b2e6d34d8ef178608989336f3400.jpg","path":"4932b2e6d34d8ef178608989336f3400.jpg","width":800,"height":1000,"alt":"Elegant Ink Green Linen Dress","aspect_ratio":0.8},"wholesale_price":[{"price":37.2,"min_quantity":1}],"weight":"0","compare_at_price":"65","price":"37.2","retail_price":"65","available":true,"url":"\/products\/elegant-ink-green-linen-dress?variant=799c8bbb-678c-4ec1-882c-43c6f24a4842","available_quantity":999999999,"options":[{"name":"color","value":"Blue"},{"name":"size","value":"s"}],"off_ratio":43,"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.