${function() {
const variantData = data.variant || {"id":"e312a3af-47b8-4f51-809a-70cac87cf2a1","product_id":"56c6ae9e-5751-43b2-98d8-f38e99ebf3d2","title":"Orange-One-size","weight_unit":"kg","inventory_quantity":0,"sku":"20101022-orange-onesize","barcode":"","position":2,"option1":"Orange","option2":"One-size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/1c5cb2b5baa63bb45ae032980af5e45f.jpeg","path":"1c5cb2b5baa63bb45ae032980af5e45f.jpeg","width":1280,"height":1024,"alt":"Red Knitted Underwear & Socks","aspect_ratio":1.25},"wholesale_price":[{"price":5.61,"min_quantity":1}],"weight":"0.06","compare_at_price":"6.34","price":"5.61","retail_price":"6.34","available":true,"url":"\/products\/red-knitted-underwear-socks-u2hk?variant=e312a3af-47b8-4f51-809a-70cac87cf2a1","available_quantity":999999999,"options":[{"name":"Color","value":"Orange"},{"name":"Size","value":"One-size"}],"off_ratio":12,"flashsale_info":[],"sales":1};
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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.