${function() {
const variantData = data.variant || {"id":"ba126a19-e938-49da-bbba-d28e81bea689","product_id":"e1cf7566-2b3f-4638-98c1-2e14a1eb0ae3","title":"Black","weight_unit":"g","inventory_quantity":782,"sku":"SKU102488400001","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ca6d0a64c093e5f9fa35a7c3ff05e66d.jpeg","path":"ca6d0a64c093e5f9fa35a7c3ff05e66d.jpeg","width":800,"height":800,"alt":"Fishing Outdoors Pattern Baseball Cap - cioyinc","aspect_ratio":1},"wholesale_price":[{"price":9.98,"min_quantity":1}],"weight":"100","compare_at_price":"14.48","price":"9.98","retail_price":"14.48","available":true,"url":"\/products\/fishing-outdoors-pattern-baseball-cap?variant=ba126a19-e938-49da-bbba-d28e81bea689","available_quantity":782,"options":[{"name":"Color","value":"Black"}],"off_ratio":31,"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}
`
}()}
Product was out of stock.
Product is unavailable.
${function(){
const variantData = data.variant || {"id":"ba126a19-e938-49da-bbba-d28e81bea689","product_id":"e1cf7566-2b3f-4638-98c1-2e14a1eb0ae3","title":"Black","weight_unit":"g","inventory_quantity":782,"sku":"SKU102488400001","barcode":"","position":1,"option1":"Black","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/ca6d0a64c093e5f9fa35a7c3ff05e66d.jpeg","path":"ca6d0a64c093e5f9fa35a7c3ff05e66d.jpeg","width":800,"height":800,"alt":"Fishing Outdoors Pattern Baseball Cap - cioyinc","aspect_ratio":1},"wholesale_price":[{"price":9.98,"min_quantity":1}],"weight":"100","compare_at_price":"14.48","price":"9.98","retail_price":"14.48","available":true,"url":"\/products\/fishing-outdoors-pattern-baseball-cap?variant=ba126a19-e938-49da-bbba-d28e81bea689","available_quantity":782,"options":[{"name":"Color","value":"Black"}],"off_ratio":31,"flashsale_info":[],"sales":0};
return `
`
}()}