${function() {
const variantData = data.variant || {"id":"f6acc61e-be0e-4fc9-9e25-ae4bd672803c","product_id":"b078d6ab-c662-4b7e-aaf4-e1c6d64c025c","title":"white-one size","weight_unit":"kg","inventory_quantity":0,"sku":"662305101055-white-one size","barcode":"","position":2,"option1":"white","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/f5737ea7f66fd13dd5b5d189d553c51e.jpeg","path":"f5737ea7f66fd13dd5b5d189d553c51e.jpeg","width":800,"height":800,"alt":"Summer ink printing casual T-shirt","aspect_ratio":1},"wholesale_price":[{"price":37.49,"min_quantity":1}],"weight":"0.2","compare_at_price":"42","price":"37.49","retail_price":"42","available":true,"url":"\/products\/summer-ink-printing-casual-t-shirt?variant=f6acc61e-be0e-4fc9-9e25-ae4bd672803c","available_quantity":999999999,"options":[{"name":"color","value":"white"},{"name":"size","value":"one size"}],"off_ratio":11,"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}
`
}()}
${function(){
const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data);
return `${tipText}
`
}()}
Product was out of stock.
Product is unavailable.