${function() {
const variantData = data.variant || {"id":"50ba0de0-e335-408a-9caf-2fa6b17f7408","product_id":"004353dc-2b85-4d75-bfe6-e15f918713cb","title":"Green","weight_unit":"kg","inventory_quantity":1000,"sku":"ROTATING-MOUSE-Green","barcode":"","position":1,"option1":"Green","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/6626bde623ea5b3cc3088ad46c7a14bc.jpg","path":"6626bde623ea5b3cc3088ad46c7a14bc.jpg","width":640,"height":640,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":19.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"19.99","retail_price":"0","available":true,"url":"\/products\/interactive-rotating-mouse-for-cats?variant=50ba0de0-e335-408a-9caf-2fa6b17f7408","available_quantity":999999999,"options":[{"name":"Color\uff1a","value":"Green"}],"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.