Support

Home Forums Event Espresso Premium HTML receipt message does not show ACF numeric 0 "zero" in final display

HTML receipt message does not show ACF numeric 0 "zero" in final display

Posted: August 24, 2020 at 8:43 am

Viewing 3 reply threads


ICLE

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?


Tony

  • Support Staff

August 24, 2020 at 8:51 am

Hi there,

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?


ICLE

August 24, 2020 at 9:01 am

Hello, thanks for the response.
Custom Message Templates>Message Type: Receipt> Messenger: HTML
Recipient: Purchaser

  • These are ACF values saved on the event itself? YES
  • Which shortcode are you using [EVENT_META_*cle_value_ethics]<br> [EVENT_META_*cle_value_professionalism]<br>[EVENT_META_*cle_value_trial_practice]
  • ACF fields Type=”text”


Tony

  • Support Staff

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.

Viewing 3 reply threads

The support post ‘HTML receipt message does not show ACF numeric 0 "zero" in final display’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso