${function() {
const variantData = data.variant || {"id":"dcc93429-d166-405f-a20b-135086e219e3","product_id":"3429fd16-eef3-4420-9d12-827a16db34fe","title":"white+red","weight_unit":"kg","inventory_quantity":0,"sku":"662211252131-white+red","barcode":"","position":3,"option1":"white+red","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/d227aa16fdab334dfebdb0b5bbcf9adb.jpeg","path":"d227aa16fdab334dfebdb0b5bbcf9adb.jpeg","width":1351,"height":1500,"alt":"Soccer socks DO NOT DISTURB WATCHING FOOTBALL casual socks","aspect_ratio":0.9006666666666666},"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=dcc93429-d166-405f-a20b-135086e219e3","available_quantity":999999999,"options":[{"name":"color","value":"white+red"}],"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.