${function() {
const variantData = data.variant || {"id":"2c0f63df-666d-4b38-96aa-0c106120ee76","product_id":"0931dff7-4cb0-4bb2-9042-8089ae3465a9","title":"dark blue","weight_unit":"kg","inventory_quantity":1000,"sku":"TY18760-X14112","barcode":"","position":1,"option1":"dark blue","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f95065041d321fa0d03060e5f2f1eca4.jpeg","path":"f95065041d321fa0d03060e5f2f1eca4.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/duck-waterwheel-bath-toys?variant=2c0f63df-666d-4b38-96aa-0c106120ee76","available_quantity":999999999,"options":[{"name":"Color","value":"dark blue"}],"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.