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


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.

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3 Documentation for Event Espresso 4

Status: publish

Updated by  Tony 1 month ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!