${function() {
const variantData = data.variant || {"id":"1e976732-a501-4219-8de8-a2d6c5a63664","product_id":"5a33d1be-2d31-4b1f-921b-ef32bc0703b6","title":"Hip-hop Santa","weight_unit":"kg","inventory_quantity":1000,"sku":"TY21712-E001","barcode":"","position":1,"option1":"Hip-hop Santa","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/bcdced6d8d41cd65bd1b06e0211cfe5b.jpeg","path":"bcdced6d8d41cd65bd1b06e0211cfe5b.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":29.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"29.99","retail_price":"0","available":true,"url":"\/products\/funny-santa-claus-doll?variant=1e976732-a501-4219-8de8-a2d6c5a63664","available_quantity":999999999,"options":[{"name":"Style","value":"Hip-hop Santa"}],"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.