${function() {
const variantData = data.variant || {"id":"59361887-443a-4c13-93c0-dfbc64b21bf4","product_id":"082f2c58-b51e-44ef-9eda-695686c5c39a","title":"White-S","weight_unit":"kg","inventory_quantity":998,"sku":"CP10020711837L01","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/229564ec0f516552dc6b0e7c8cc965b2.jpeg","path":"229564ec0f516552dc6b0e7c8cc965b2.jpeg","width":700,"height":1000,"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\/banana-print-t-shirt?variant=59361887-443a-4c13-93c0-dfbc64b21bf4","available_quantity":999999999,"options":[{"name":"color","value":"White"},{"name":"size","value":"S"}],"off_ratio":9,"flashsale_info":[],"sales":2};
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.