I am creating a template for abandoned carts email. How do I output some html with custom contact properties only if those properties are not empty or zero? My code:
Please note that using personalization variables (contact and company variables) within if statements is not currently supported for email in HubSpot. These variables can be used for logic on HubSpot CMS pages and blog templates.
Additionally, information passed via the Transactional Email API will not function within if statements, as the templates compile before the information populates.
Please note that using personalization variables (contact and company variables) within if statements is not currently supported for email in HubSpot. These variables can be used for logic on HubSpot CMS pages and blog templates.
Additionally, information passed via the Transactional Email API will not function within if statements, as the templates compile before the information populates.
I'm not entirely sure but try adding an if statment to wrap the product price and base currency, something like the below. I think this may work if the property is blank, not sure if it will work if it's filled in with a 0.