${function() {
const variantData = data.variant || {"id":"2fdf5fa9-0e80-4f1e-baac-7d368769c1a7","product_id":"9ed0efe9-cdba-4d0f-92d1-017e6df1d1dc","title":"White","weight_unit":"kg","inventory_quantity":1000,"sku":"GJ20747-E001","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d2da61714519c2a503e0d8a823c1012c.jpeg","path":"d2da61714519c2a503e0d8a823c1012c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":9.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"9.99","retail_price":"0","available":true,"url":"\/products\/automatic-rolling-tape-girth-measuring-ruler?variant=2fdf5fa9-0e80-4f1e-baac-7d368769c1a7","available_quantity":999999999,"options":[{"name":"Color","value":"White"}],"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.