${function() {
const variantData = data.variant || {"id":"9a536bea-d5a9-4a65-91dd-fd1e32bdc828","product_id":"196b7a1c-4329-4ebe-a1ce-f281b207b8e2","title":"Stocking","weight_unit":"kg","inventory_quantity":97637,"sku":"2211101571-Stocking","barcode":"","position":3,"option1":"Stocking","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ff93da1a24d9859b042bbb6a5107efee.jpeg","path":"ff93da1a24d9859b042bbb6a5107efee.jpeg","width":800,"height":800,"alt":"\"DO NOT DISTURB\" Fluorescent socks for men","aspect_ratio":1},"wholesale_price":[{"price":8.9,"min_quantity":1}],"weight":"0.05","compare_at_price":"10.72","price":"8.9","retail_price":"10.72","available":true,"url":"\/products\/do-not-disturb-fluorescent-socks-for-men-xxlt?variant=9a536bea-d5a9-4a65-91dd-fd1e32bdc828","available_quantity":999999999,"options":[{"name":"Color","value":"Stocking"}],"off_ratio":17,"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.