${function() {
const variantData = data.variant || {"id":"b9c482ac-b009-4fa3-b730-eea4e92677dd","product_id":"f4ec2291-9245-4cb6-9e72-38b1f35a0871","title":"black","weight_unit":"kg","inventory_quantity":0,"sku":"662209262745-black","barcode":"","position":1,"option1":"black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/10e12a81f74d9f1800314451039b4151.jpeg","path":"10e12a81f74d9f1800314451039b4151.jpeg","width":800,"height":800,"alt":"Fashion tie-dyed long thigh-high pile socks knit socks","aspect_ratio":1},"wholesale_price":[{"price":19.52,"min_quantity":1}],"weight":"0.17","compare_at_price":"37.54","price":"19.52","retail_price":"37.54","available":true,"url":"\/products\/fashion-tie-dyed-long-thigh-high-pile-socks-knit-socks?variant=b9c482ac-b009-4fa3-b730-eea4e92677dd","available_quantity":999999999,"options":[{"name":"color","value":"black"}],"off_ratio":48,"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.