${function() {
const variantData = data.variant || {"id":"b459c903-2331-4124-9df7-71e25243568c","product_id":"d202b1ba-14b5-4085-b626-75c8acaa7e91","title":"White-S","weight_unit":"kg","inventory_quantity":998,"sku":"CP10140723854L01","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/caf7d915f53b0f63b1466eff34ff8958.jpeg","path":"caf7d915f53b0f63b1466eff34ff8958.jpeg","width":700,"height":1000,"alt":"","aspect_ratio":0.7},"wholesale_price":[{"price":25.99,"min_quantity":1}],"weight":"0","compare_at_price":"25.99","price":"25.99","retail_price":"25.99","available":true,"url":"\/products\/db10140723471?variant=b459c903-2331-4124-9df7-71e25243568c","available_quantity":999999999,"options":[{"name":"color","value":"White"},{"name":"size","value":"S"}],"off_ratio":0,"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.