${function() {
const variantData = data.variant || {"id":"dc288747-f5e3-4457-868e-a278e7ef7611","product_id":"782a9362-9a67-4a0b-82de-c97c917ae4bf","title":"Yellow-M","weight_unit":"kg","inventory_quantity":1000,"sku":"SH480C218872","barcode":"","position":1,"option1":"Yellow","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6358fae28813b34d7441c17f02a0c42a.png","path":"6358fae28813b34d7441c17f02a0c42a.png","width":1200,"height":1600,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":31.9,"min_quantity":1}],"weight":"0","compare_at_price":"61.35","price":"31.9","retail_price":"61.35","available":true,"url":"\/products\/geometric-shirts-tops?variant=dc288747-f5e3-4457-868e-a278e7ef7611","available_quantity":1000,"options":[{"name":"Color","value":"Yellow"},{"name":"Size","value":"M"}],"off_ratio":48,"flashsale_info":[],"sales":0};
const saveType = "amount";
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.