Posted: November 20, 2024 at 2:57 pm
I want the registrants organization to appear on the confirmation email, invoice, and on the badge. There is no shortcode for that and adding the form field admin label results in an error. Is there a way to pull in that field data and display it where I want it? I found this topic https://eventespresso.com/topic/company-name-in-emails/ but I’m not understanding it, as it seems targeted towards another issue for email administartors. |
|
Hi there,
So is this a custom question you have created within EE and the ‘Question text’ for that question is set to ‘Organization Name’? If so, we have a shortcode to pull in the value for that, you can use. If its set on the Primary Registrant you have:
So in your case, if the above is correct, that would be:
Is that what you are looking for? |
|
Yes – that is exactly what i needed – thank you! |
|
I just tried this and it doesn’t appear to be working. Do i need to add the Question Field as you did or is it supposed to be the admin label? |
|
You use the question text field as above, it needs to match exactly. Does your shortcode question text value match exactly what you have for the question itself? |
|
I’ve done some testing. Other shortcodes work, but it appears that the [PRIMARY_REGISTRANT_ANSWER_*{question_text}] will not work, even if I try other questions in the form. I really need to get this resolved. I think the shortcode is just broken. my form is at https://olc-events.com/olc-online-registration/ can you please take a look. I provided a user for Tony for a previous issue and it is still active. Thanks for you help on this. |
|
Hi there, I don’t think the shortcode is broken as it’s working as expected on multiple test sites. A quick example: Question: https://monosnap.com/file/zv9Yl49Sz6FUCbXVVQgkF4PlKput9Z Shortcode in use: https://monosnap.com/file/YJ0MuKsAiV2h5pJHlGBkb94oM7fUI1 Output: https://monosnap.com/file/EksaIggL7gzuTn9yrCbFk6aKd4ebon The answer I provided for that question is “Org Name Q – Event Espresso”.
We don’t keep credentials but if you reset the password and send the details over using this form: https://eventespresso.com/send-login-details/ I’ll take a look. |
|
This reply has been marked as private. | |
This reply has been marked as private. | |
This reply has been marked as private. | |
Very strange! The shortcode is correct, and works with the same setup locally for me. I know the Pricing add-on hooks into the shortcode generation so you could try loading the ticket template with that Plugin disabled to see if that makes a difference. I can troubleshoot the shortcode parsing within core to confirm its working there but for that I’ll need to add some debug code to core so will need file access (FTP/SFTP/etc), we don’t make code changes with the WP code editor. |
|
Hi Tony – I’m still working on this. I disabled the price modifier and the Company Name appears now on the ticket. Do you know if there is a way to use the price modifier and still get the company name on there? Or is there a workaround to do add-ons to the ticket? I really need both features or an equivelant way to do the same things. |
|
In short sounds like the price modifier needs to be updated so that (I’m guessing here) doesn’t return an empty string for question’s its not related to. Can you send me a copy of the price modifier? I can’t promise a fix (it’s not an add-on we provide support for), but I’ll take a look and see if it’s something obvious. |
|
This reply has been marked as private. | |
Ok, so this is a bug related to how the price modifier add-on parses the The idea of the The pricing add-on hooks into the shortcode parser. For So, in summary, EE parses That’s why you end up with no value and it needs to be fixed in the price modifier add-on.
Using the price modifier add-on is the only way to add additional values to a transaction based on questions. The other way to handle that setup would be to create individual tickets matching the additional values: Admission = X I don’t think that will work for your set-up. |
|
OK – I emailed Aparna about it. I hope they can fix it. If they can’t do you know if there is a script or something that I can add to the ticket that can pull in the Company Name from the database so I can work around the shortcode? |
|
No, because So, to rephrase the above, you are asking for a script to dynamically pull in the registration question answer to replace the script that dynamically pulls in the registration question answer. That’s not something we have created outside of core. Having said that, it is possible to hook into the shortcode parser in the same way the Price Modifier add-on does, pulling in the correct value. For this to work, it would need to be a later priority than the price modifier, doing its thing after the add-on has to return the correct value. If it’s a deal breaker for you, it’s something I can put together using a support token but Aparna may be able to fix this relatively quickly. |
|
This reply has been marked as private. | |
This reply has been marked as private. | |
You must be logged in to reply to this support post. Sign In or Register for an Account