${function() {
const variantData = data.variant || {"id":"cab15a56-b214-45ed-9e81-515128cb7931","product_id":"7f305ffc-58c1-4119-8894-84c2512d3fdd","title":"White-S","weight_unit":"kg","inventory_quantity":1000,"sku":"MTI273174-WHI00S","barcode":"","position":1,"option1":"White","option2":"S","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/e8462c8bf2587d695537cdfbdd8d615d.jpeg","path":"e8462c8bf2587d695537cdfbdd8d615d.jpeg","width":675,"height":900,"alt":"","aspect_ratio":0.75},"wholesale_price":[{"price":21.99,"min_quantity":1}],"weight":"0","compare_at_price":"30.65","price":"21.99","retail_price":"30.65","available":true,"url":"\/products\/im-ok-its-not-my-blood-halloween-mens-printed-t-shirt?variant=cab15a56-b214-45ed-9e81-515128cb7931","available_quantity":999999999,"options":[{"name":"Color","value":"White"},{"name":"Size","value":"S"}],"off_ratio":28,"flashsale_info":[],"sales":2};
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.