Home › Forums › Event Espresso Premium › HTML receipt message does not show ACF numeric 0 "zero" in final display
Posted: August 24, 2020 at 8:43 am
EE4 Everything License
August 24, 2020 at 8:43 am
Values in ACF fields which hold the value “0” do not show up in receipt shown from transaction record button. Is there something I can do in the layout to force it to show a “0” zero?
August 24, 2020 at 8:51 am
Can you explain the setup a little so I can try to reproduce locally?
These are ACF values saved on the event itself? Which shortcode are you using to add them to the receipt and where?
August 24, 2020 at 9:01 am
Hello, thanks for the response.
Custom Message Templates>Message Type: Receipt> Messenger: HTML
August 24, 2020 at 9:41 am
So, [EVENT_META_*] has an empty() check within the shortcode.
empty(0) and empty('0') both evaluate to true so nothing is returned (actually an empty string is returned for the shortcode but same outcome).
Right now you can’t prevent that but I’ll open a ticket to discuss if adding the ability to output 0 through event meta is something we should add.
You must be logged in to reply to this support post. Sign In or Register for an Account
Updated by Tony 1 month ago ago
Tagged: zero from ACF not displaying in receipt