${function() {
const variantData = data.variant || {"id":"7cc9f9e5-0b77-47f1-b0d1-92a683922877","product_id":"c0c26178-4685-4398-b35a-1d41bfe8a458","title":"Red","weight_unit":"kg","inventory_quantity":1000,"sku":"Electronic_Thickness_Gauge_Red","barcode":"","position":1,"option1":"Red","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/7175619fca955427f69a800c7fec075c.jpeg","path":"7175619fca955427f69a800c7fec075c.jpeg","width":800,"height":800,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":23.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"23.99","retail_price":"0","available":true,"url":"\/products\/electronic-thickness-gauge-0-12-7mm-digital-display-thickness-gauge-carbon-fiber-thickness-gauge-thickness-measuring-instrument?variant=7cc9f9e5-0b77-47f1-b0d1-92a683922877","available_quantity":999999999,"options":[{"name":"Color","value":"Red"}],"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.