Email Tags -

  • Roy Chappell
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 3 weeks ago #142465 by Roy Chappell
Email Tags - was created by Roy Chappell
Hi Tuan

We have an 2 day event, where people can book day 1 & 2, day 1 only or day 2 only.
www.inspiremedilaw.co.uk/expert-witness-...al-registration.html

In the registration email we have 2 custom fields to handle if the whole event is a 1 or 2 day event
Date: [FIELD_EVENT_DATE_INFO][FIELD_EVENT_MULTI_DATE_INFO]

However if they book just one days the email says they have booked for 2 days. Is it possible to show in the email, which day of the 2 days they booked? Or can you suggest another approach

thanks
Roy

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
3 years 3 weeks ago #142472 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email Tags -
Hi Roy

Look like you changed your setup? I see that you are using Ticket Types, not custom fields now?

Tuan

Please Log in or Create an account to join the conversation.

  • Roy Chappell
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 3 weeks ago #142481 by Roy Chappell
Replied by Roy Chappell on topic Email Tags -
Hi

I'm using tickets types o handle the 3 variations of the tickets for the 2 day event. We use the 2 custom fields to add extra date info to the emails and messages.

I would like to put in the email the type of ticket they bought from the 3 options

Roy

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
3 years 3 weeks ago #142486 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email Tags -
Try to use [TICKET_TYPES] or [TICKET_TYPES_TABLE] tags

It should show the ticket types registrants select for their registration

Tuan
The following user(s) said Thank You: Roy Chappell

Please Log in or Create an account to join the conversation.

  • Roy Chappell
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
3 years 2 weeks ago #142628 by Roy Chappell
Replied by Roy Chappell on topic Email Tags -
Hi Tuan

Is it possible to override the [TICKET_TYPES] tag?

I want to remove the last part :1 - the colon and quantity

thanks
Roy

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
3 years 2 weeks ago #142633 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email Tags -
Hello Roy

Yes. But you will have to override the whole method buildTags in components/com_eventbooking/helper/registration.php

Tuan

Please Log in or Create an account to join the conversation.

  • Roy Chappell
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 years 4 months ago #148360 by Roy Chappell
Replied by Roy Chappell on topic Email Tags -
Hi Tuan

I'm looking to override registration.php

I have copied the file here:
public_html/components/com_eventbooking/helper/registration.php

and overidden it here:
public_html/templates/yootheme/html/com_eventbooking/helper/registration.php

However the change is not being reflected on the website. I have also tried
public_html/templates/yootheme/html/com_eventbooking/registration.php
but again this doesn't display.

Is the later part of the template path correct?

Roy

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
2 years 4 months ago #148368 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email Tags -
Hello Roy

That's not the right way. See eventbookingdoc.joomservices.com/develop...thods-helper-methods for instructions

You should really override the method, not copy the whole file

Regards,

Tuan

Please Log in or Create an account to join the conversation.

  • Roy Chappell
  • Topic Author
  • Offline
  • Premium Member
  • Premium Member
More
2 years 4 months ago #148373 by Roy Chappell
Replied by Roy Chappell on topic Email Tags -
Hi

I'm trying to override the following code. I have looked at the page you referred me to but I'm very confused, I don't even know if I'm overriding a static methods, model, view or controller classes.
Code:
$ticketsOutput[]         = Text::_($ticketTypes[$registrantTicket->ticket_type_id]->title) . ': ' . $registrantTicket->quantity;
Code:
$ticketsOutput[]         = Text::_($ticketTypes[$registrantTicket->ticket_type_id]->title) . ' : Number of tickets ' . $registrantTicket->quantity . '<br>';

Could you give me some pointers please

thanks
Roy

Please Log in or Create an account to join the conversation.

  • Tuan Pham Ngoc
  • Online
  • Administrator
  • Administrator
More
2 years 4 months ago #148387 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Email Tags -
You can get this file, unzip it, upload the received file to folder components/com_eventbooking/helper/override on your site. After that, check it again, it should work as you want (I did the modification for you quickly, without testing, so please test it to make sure it works)

Tuan
Attachments:

Please Log in or Create an account to join the conversation.

Moderators: Tuan Pham Ngoc