${function() {
const variantData = data.variant || {"id":"11d70c67-6220-47f2-8515-fb843adf50fb","product_id":"ea1f4314-fad8-47fa-b8b1-5bcb08f7b560","title":"White-M","weight_unit":"kg","inventory_quantity":995,"sku":"CP10090701522L01","barcode":"","position":1,"option1":"White","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a6373d223b1347847962a0a7f8b96916.jpeg","path":"a6373d223b1347847962a0a7f8b96916.jpeg","width":560,"height":800,"alt":"","aspect_ratio":0.7},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"21.99","price":"19.99","retail_price":"21.99","available":true,"url":"\/products\/daddy-print-tank-top?variant=11d70c67-6220-47f2-8515-fb843adf50fb","available_quantity":999999999,"options":[{"name":"color","value":"White"},{"name":"size","value":"M"}],"off_ratio":9,"flashsale_info":[],"sales":0};
const saveType = "amount";
const saveText = "Save {{saved_amount}}";
const productLabelDiscountOn = true;
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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.