Event End Date in Confirmation Email

More
12 years 8 months ago #31143 by Ira
Hi!

I am reworking the email template to look more like a ticket for our users and need to include the event end date so that attendees have both the start and end time in the email; however, when I call event_end_date in emailtemplates/individual_detail.php I simply get today's date. Is there anyway to include the event end date in the individual email?

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
12 years 8 months ago #31156 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Event End Date in Confirmation Email
Hi

In order to use the code in the email template , we will have to edit the code in the helper file alitle. Please get the file below, unzip it, then upload to components/com_eventbooking/helper folder.

After that, check it again and the code you wrote should work as expected.

Tuan

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

More
12 years 8 months ago - 12 years 8 months ago #31310 by Ira
Thanks so much for your help! Unfortunately after uploading the helper file the current date and time are still being output. I using
echo JHTML::_('date', $item->event_end_date, $this->config->event_date_format, $param) ; in individual_detail.php under the emailtemplates folder to call the end date. Could I possibly be missing something?
Last edit: 12 years 8 months ago by Ira.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
12 years 8 months ago #31402 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Event End Date in Confirmation Email
Hi Ira

Please submit a support ticket sending me administrator and FTP account of your site so that I can check and edit the code for you.

Tuan

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

More
12 years 7 months ago - 12 years 7 months ago #32394 by Ira
Sorry for the delay. Thanks so much for your help! I have submitted the ticket. Thanks!
Last edit: 12 years 7 months ago by Ira.

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

  • Tuan Pham Ngoc
  • Away
  • Administrator
  • Administrator
More
12 years 7 months ago #32844 by Tuan Pham Ngoc
Replied by Tuan Pham Ngoc on topic Re: Event End Date in Confirmation Email
You must change the code from
Code:
echo JHTML::_('date', $item->event_end_date, $this->config->event_date_format, $param)

To
Code:
echo JHTML::_('date', $this->rowEvent->event_end_date, $this->config->event_date_format, $param)

Please note $this->item is incorrect. $this->rowEvent is correct.

Tuan

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

Moderators: Tuan Pham Ngoc