${function() {
const variantData = data.variant || {"id":"a3a9e477-dbde-44cd-90f0-18282a46177b","product_id":"56c6ae9e-5751-43b2-98d8-f38e99ebf3d2","title":"Red-One-size","weight_unit":"kg","inventory_quantity":0,"sku":"20101022-red-onesize","barcode":"","position":1,"option1":"Red","option2":"One-size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/231664ef1a7f52c55ff32fa9fa977b45.jpeg","path":"231664ef1a7f52c55ff32fa9fa977b45.jpeg","width":1200,"height":1600,"alt":"Red Knitted Underwear & Socks","aspect_ratio":0.75},"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=a3a9e477-dbde-44cd-90f0-18282a46177b","available_quantity":999999999,"options":[{"name":"Color","value":"Red"},{"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.