${function() {
const variantData = data.variant || {"id":"a2b6141a-f610-45df-acbb-9f125c1e4bae","product_id":"cba18fdc-4d53-4787-8ee0-259e23b9beea","title":"brown-s","weight_unit":"kg","inventory_quantity":0,"sku":"Lin21041501-brown-s","barcode":"","position":1,"option1":"brown","option2":"s","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/07365c7e7c840f0cba4103064b4731fc.jpg","path":"07365c7e7c840f0cba4103064b4731fc.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=a2b6141a-f610-45df-acbb-9f125c1e4bae","available_quantity":999999999,"options":[{"name":"color","value":"brown"},{"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.