- Posts: 229
- Thank you received: 4
Emails: Show label and value of field only if category is matching
- Patrick
-
Topic Author
- Offline
- Elite Member
-
Less
More
3 years 6 months ago - 3 years 6 months ago #147121
by Patrick
Emails: Show label and value of field only if category is matching was created by Patrick
Hello
I use custom fields. In configuration I have set up to assign these fields to categories instead of evens. I have seperate fields for most categories.
If I use [REGISTRATION_DETAIL] for confirmation messages and emails, the custom fields are showing correctly.
But to have better control of the layout I add fields manually. Example:
Mylabel for new field 1: [NEW_FIELD_1]
NEW_FIELD_1 is assigned to category "Cars".
This works.
But "Mylabel for new field 1" gets printend in all emails and all confirmation messages, even if an event is booked from other category.
If I book an event from caregory "Trains", where [NEW_FIELD_1] is not assigned, label "Mylabel for new field 1" still gets printed.
Is there a way to avoid this? In emails and confirmation messages I want to show custom fields only depending on their category.
So for example I'm thinking of something like this: {cars}Mylabel for new field 1: [NEW_FIELD_1]{/cars}
Is there a way to do so?
Thanks.
Parick
I use custom fields. In configuration I have set up to assign these fields to categories instead of evens. I have seperate fields for most categories.
If I use [REGISTRATION_DETAIL] for confirmation messages and emails, the custom fields are showing correctly.
But to have better control of the layout I add fields manually. Example:
Mylabel for new field 1: [NEW_FIELD_1]
NEW_FIELD_1 is assigned to category "Cars".
This works.
But "Mylabel for new field 1" gets printend in all emails and all confirmation messages, even if an event is booked from other category.
If I book an event from caregory "Trains", where [NEW_FIELD_1] is not assigned, label "Mylabel for new field 1" still gets printed.
Is there a way to avoid this? In emails and confirmation messages I want to show custom fields only depending on their category.
So for example I'm thinking of something like this: {cars}Mylabel for new field 1: [NEW_FIELD_1]{/cars}
Is there a way to do so?
Thanks.
Parick
Last edit: 3 years 6 months ago by Patrick.
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 6 months ago #147122
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Emailks: Show label and value of field only if category is matching
Hello Parick
Please submit a support ticket so that we can give you a package to try. You can use the syntax below after updating:
{ebShowText [MAIN_CATEGORY_ID]=10}Mylabel for new field 1: [NEW_FIELD_1]{/ebShowText}
With that syntax, the field 1 above will only be shown if someone register for event belong to category with ID = 10
That could be a solution for your problem
Regards,
Tuan
Please submit a support ticket so that we can give you a package to try. You can use the syntax below after updating:
{ebShowText [MAIN_CATEGORY_ID]=10}Mylabel for new field 1: [NEW_FIELD_1]{/ebShowText}
With that syntax, the field 1 above will only be shown if someone register for event belong to category with ID = 10
That could be a solution for your problem
Regards,
Tuan
The following user(s) said Thank You: Patrick
Please Log in or Create an account to join the conversation.
- Patrick
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 229
- Thank you received: 4
3 years 6 months ago #147126
by Patrick
Replied by Patrick on topic Emailks: Show label and value of field only if category is matching
Hello Tuan
I have opened the ticket.
Thanks a lot.
Regards
Patrick
I have opened the ticket.
Thanks a lot.
Regards
Patrick
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 6 months ago #147127
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Emailks: Show label and value of field only if category is matching
Hi Patrick
Just sent you the package via support ticket. Please update, try the suggested solution and update me with the resolution
Regards,
Tuan
Just sent you the package via support ticket. Please update, try the suggested solution and update me with the resolution
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Patrick
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 229
- Thank you received: 4
3 years 6 months ago #147129
by Patrick
Replied by Patrick on topic Emailks: Show label and value of field only if category is matching
Hi Tuan
Great! Will do so!
Patrick
Great! Will do so!
Patrick
Please Log in or Create an account to join the conversation.
- Patrick
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 229
- Thank you received: 4
3 years 6 months ago #147131
by Patrick
Replied by Patrick on topic Emailks: Show label and value of field only if category is matching
Hello Tuan
Works fine!
I'll do more testing tomorrow and will give feedback again.
Regards
Patrick
Works fine!
I'll do more testing tomorrow and will give feedback again.
Regards
Patrick
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 6 months ago #147134
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Emailks: Show label and value of field only if category is matching
Great. Happy to hear that. Thanks Patrick for the info
Regards,
Tuan
Regards,
Tuan
Please Log in or Create an account to join the conversation.
- Patrick
-
Topic Author
- Offline
- Elite Member
-
Less
More
- Posts: 229
- Thank you received: 4
3 years 6 months ago #147150
by Patrick
Replied by Patrick on topic Emails: Show label and value of field only if category is matching
Hi Tuan
I now use seven custom fields in three categories.
I have added the new code to messages and emails.
It all works fine!
Will you include this new feature in future updates of EB?
Thanks a lot for your help.
Regards
Patrick
I now use seven custom fields in three categories.
I have added the new code to messages and emails.
It all works fine!
Will you include this new feature in future updates of EB?
Thanks a lot for your help.
Regards
Patrick
Please Log in or Create an account to join the conversation.
- Tuan Pham Ngoc
- Offline
- Administrator
-
3 years 6 months ago #147151
by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Emails: Show label and value of field only if category is matching
Hi Patrick
Yes, the change will be included in future releases of Events Booking
Regards,
Tuan
Yes, the change will be included in future releases of Events Booking
Regards,
Tuan
The following user(s) said Thank You: Patrick
Please Log in or Create an account to join the conversation.
Moderators: Tuan Pham Ngoc
Support
Documentation
Information
Copyright © 2025 Joomla Extensions by Joomdonation. All Rights Reserved.
joomdonation.com is not affiliated with or endorsed by the Joomla! Project or Open Source Matters.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.
The Joomla! name and logo is used under a limited license granted by Open Source Matters the trademark holder in the United States and other countries.