${function() {
const variantData = data.variant || {"id":"1831a81b-5d77-44de-b05a-d037c40f3eb5","product_id":"3429fd16-eef3-4420-9d12-827a16db34fe","title":"white+black","weight_unit":"kg","inventory_quantity":0,"sku":"662211252131-white+black","barcode":"","position":2,"option1":"white+black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/99fa18ed84b5bf6d53a0ca9dbf98e66c.jpeg","path":"99fa18ed84b5bf6d53a0ca9dbf98e66c.jpeg","width":533,"height":580,"alt":"Soccer socks DO NOT DISTURB WATCHING FOOTBALL casual socks","aspect_ratio":0.9189655172413793},"wholesale_price":[{"price":8.99,"min_quantity":1}],"weight":"0.05","compare_at_price":"14","price":"8.99","retail_price":"14","available":true,"url":"\/products\/soccer-socks-do-not-disturb-watching-football-casual-socks?variant=1831a81b-5d77-44de-b05a-d037c40f3eb5","available_quantity":999999999,"options":[{"name":"color","value":"white+black"}],"off_ratio":36,"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.