${function() {
const variantData = data.variant || {"id":"4318bea9-5363-4cde-8027-d6f0dc3221d2","product_id":"e1b810ac-e050-4f06-bd3e-b27c1f9c6e3e","title":"Green-One-size","weight_unit":"kg","inventory_quantity":0,"sku":"20101005-green-onesize","barcode":"","position":1,"option1":"Green","option2":"One-size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/fe235119430a58df560534d2be670eb4.jpeg","path":"fe235119430a58df560534d2be670eb4.jpeg","width":1200,"height":1600,"alt":"Stripes Underwear & Socks","aspect_ratio":0.75},"wholesale_price":[{"price":9.18,"min_quantity":1}],"weight":"0.08","compare_at_price":"11.04","price":"9.18","retail_price":"11.04","available":true,"url":"\/products\/stripes-underwear-socks?variant=4318bea9-5363-4cde-8027-d6f0dc3221d2","available_quantity":999999999,"options":[{"name":"Color","value":"Green"},{"name":"Size","value":"One-size"}],"off_ratio":17,"flashsale_info":[],"sales":2};
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.