${function() {
const variantData = data.variant || {"id":"b2c82d21-28af-4eef-805e-9ef72128cf1c","product_id":"4e82bba0-f5c2-4924-8a9c-bf925239e413","title":"Black-One Size","weight_unit":"g","inventory_quantity":1000,"sku":"HAT011-B","barcode":"","position":1,"option1":"Black","option2":"One Size","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/97eb354265e1a73350db93a57f56906a.jpg","path":"97eb354265e1a73350db93a57f56906a.jpg","width":800,"height":1000,"alt":"","aspect_ratio":0.8},"wholesale_price":[{"price":12.99,"min_quantity":1}],"weight":"100","compare_at_price":"20.99","price":"12.99","retail_price":"20.99","available":true,"url":"\/products\/try-that-in-a-small-town-hat?variant=b2c82d21-28af-4eef-805e-9ef72128cf1c","available_quantity":1000,"options":[{"name":"Color","value":"Black"},{"name":"Size","value":"One Size"}],"off_ratio":38,"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 + '%'
: ``
)}
`;
}()}
Free Shipping On Orders Over $119
${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}
`
}()}