${function() {
const variantData = data.variant || {"id":"ed71c1fe-20a5-4746-8b11-18aa25295546","product_id":"b1672c93-5bc0-4c31-aa5f-9fc22a4ac423","title":"gray-one size","weight_unit":"kg","inventory_quantity":0,"sku":"662305111154-gray-one size","barcode":"","position":1,"option1":"gray","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ce39c36ee6e3ca62121a9741163158fd.jpeg","path":"ce39c36ee6e3ca62121a9741163158fd.jpeg","width":800,"height":1000,"alt":"Summer simple loose plus size shawl","aspect_ratio":0.8},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0.15","compare_at_price":"49","price":"39.99","retail_price":"49","available":true,"url":"\/products\/summer-simple-loose-plus-size-shawl?variant=ed71c1fe-20a5-4746-8b11-18aa25295546","available_quantity":999999999,"options":[{"name":"color","value":"gray"},{"name":"size","value":"one size"}],"off_ratio":18,"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.