${function() {
const variantData = data.variant || {"id":"8995b070-dd02-467c-a90d-26326521fc2c","product_id":"b4505a24-7eec-4990-8a82-c51f06d156c1","title":"Fuchsia","weight_unit":"kg","inventory_quantity":1000,"sku":"ASGY004","barcode":"","position":1,"option1":"Fuchsia","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/dcdc2a004c6a37e2763d555014273707.jpeg","path":"dcdc2a004c6a37e2763d555014273707.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":6.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"6.99","retail_price":"0","available":true,"url":"\/products\/electronic-pet-fish?variant=8995b070-dd02-467c-a90d-26326521fc2c","available_quantity":999999999,"options":[{"name":"Color","value":"Fuchsia"}],"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.