${function() {
const variantData = data.variant || {"id":"6027ff93-d8aa-4c4a-9c82-e2cf57bd7746","product_id":"7f6652f6-ef8e-4ae6-bd94-c01b1083adf6","title":"White-M","weight_unit":"kg","inventory_quantity":936,"sku":"SDV001186_W_M","barcode":"","position":1,"option1":"White","option2":"M","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/5b819ce8732ff1967f608e18b10f4480.jpeg","path":"5b819ce8732ff1967f608e18b10f4480.jpeg","width":750,"height":1000,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":59.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"59.99","retail_price":"0","available":true,"url":"\/products\/casual-trendy-2-piece-t-shirt-set?variant=6027ff93-d8aa-4c4a-9c82-e2cf57bd7746","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"M"}],"off_ratio":0,"flashsale_info":[],"sales":451};
const saveType = "amount";
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.