${function() {
const variantData = data.variant || {"id":"f09e6d2e-922f-4e9d-8a2a-70be00a367c6","product_id":"b705651a-0012-45a9-ba2a-4a4b284ef83b","title":"card","weight_unit":"kg","inventory_quantity":1000,"sku":"TY14611-X7596","barcode":"","position":1,"option1":"card","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/0e6946011ae3d032e510ac5f886ac9bf.jpeg","path":"0e6946011ae3d032e510ac5f886ac9bf.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"24.99","retail_price":"0","available":true,"url":"\/products\/early-learning-smart-talking-book?variant=f09e6d2e-922f-4e9d-8a2a-70be00a367c6","available_quantity":999999999,"options":[{"name":"Style","value":"card"}],"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.