${function() {
const variantData = data.variant || {"id":"ee3a5d54-9d16-469c-9e26-254b6ff4ba8e","product_id":"59c5571b-f58e-4074-a36e-99d8ecb0ea6a","title":"1pc","weight_unit":"kg","inventory_quantity":1000,"sku":"CRIS_1pc","barcode":"","position":1,"option1":"1pc","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/9a89e7cac231c0ea0a2cd7892ffc68ca.webp","path":"9a89e7cac231c0ea0a2cd7892ffc68ca.webp","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":39.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"39.99","retail_price":"0","available":true,"url":"\/products\/creative-rechargeable-induction-sucker-night-light?variant=ee3a5d54-9d16-469c-9e26-254b6ff4ba8e","available_quantity":999999999,"options":[{"name":"pieces","value":"1pc"}],"off_ratio":0,"flashsale_info":[],"sales":0};
const saveType = "percentage";
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}
`
}()}
Product was out of stock.
Product is unavailable.