${function() {
const variantData = data.variant || {"id":"d99c8e91-bb66-4c1d-9e36-95f47523d35f","product_id":"b078d6ab-c662-4b7e-aaf4-e1c6d64c025c","title":"khaki-one size","weight_unit":"kg","inventory_quantity":0,"sku":"662305101055-khaki-one size","barcode":"","position":3,"option1":"khaki","option2":"one size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/a181f64e9871f8c3cad5e8a74a551f3e.jpeg","path":"a181f64e9871f8c3cad5e8a74a551f3e.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=d99c8e91-bb66-4c1d-9e36-95f47523d35f","available_quantity":999999999,"options":[{"name":"color","value":"khaki"},{"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.