${function() {
const variantData = data.variant || {"id":"7a533078-3f75-4891-8b2a-eeb5f1f8db98","product_id":"fb1c45d0-843a-4011-95ab-a71d4891ed15","title":"White","weight_unit":"kg","inventory_quantity":1000,"sku":"CP19923-C024-X5009","barcode":"","position":1,"option1":"White","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5b4098463dd1f3d0ebaaa1a22ad498ec.jpeg","path":"5b4098463dd1f3d0ebaaa1a22ad498ec.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\/soft-bristled-bath-brush?variant=7a533078-3f75-4891-8b2a-eeb5f1f8db98","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.