${function() {
const variantData = data.variant || {"id":"034e3398-4240-418c-a0b8-7efe797ea752","product_id":"4436b0f0-5fd3-4b5c-a1b9-9a8c8330d2b3","title":"S(48x40x40cm))","weight_unit":"kg","inventory_quantity":1000,"sku":"Cat-Christmas-Tree-S-1PC","barcode":"","position":1,"option1":"S(48x40x40cm))","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/06ccb670bca8890d77576f5d8d701cdf.jpg","path":"06ccb670bca8890d77576f5d8d701cdf.jpg","width":400,"height":400,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":44.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"44.99","retail_price":"0","available":true,"url":"\/products\/cat-christmas-tree-winter-warm-nest?variant=034e3398-4240-418c-a0b8-7efe797ea752","available_quantity":999999999,"options":[{"name":"Size","value":"S(48x40x40cm))"}],"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.