${function() {
const variantData = data.variant || {"id":"dfbd688c-b372-4569-8e9f-8c5db06cd5b6","product_id":"97be4313-3505-43ab-a74c-9c9500dcb17f","title":"GREEN","weight_unit":"kg","inventory_quantity":1000,"sku":"EC45641-X24005","barcode":"","position":1,"option1":"GREEN","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/4bf8bd42107b980f27404710c5416dda.jpeg","path":"4bf8bd42107b980f27404710c5416dda.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":17.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"17.99","retail_price":"0","available":true,"url":"\/products\/electric-coffee-stirring-cup?variant=dfbd688c-b372-4569-8e9f-8c5db06cd5b6","available_quantity":999999999,"options":[{"name":"Color","value":"GREEN"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
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}
`
}()}
Product was out of stock.
Product is unavailable.