Home › Forums › Ticket Products › Event Tickets Plus › Change date in email template
- This topic has 8 replies, 3 voices, and was last updated 11 years, 9 months ago by
Leah.
-
AuthorPosts
-
June 29, 2014 at 3:17 am #259436
renesejling
ParticipantHow do I change the date format of the ticket email? I can’t seem to find in the template files anywhere. I want to change it to danish date format instead and remove the strange k that is infront of the day name also, check it out here: https://www.evernote.com/shard/s138/sh/fb0ea2c7-1488-4282-8e50-6c2fd0280b65/0b2a2de5b425d2655e8159fc4c4b2310
Thanks in advance.
RenéJune 30, 2014 at 7:27 am #262160matthewdenton
MemberHi
Thanks for reaching out to us! I’d be more than happy to answer your question. The email templates used by the WooCommerce Tickets actually come from common templates that are found within The Events Calendar plugin. If you look in the plugin folder /the-events-calendar/views/tickets/email.php you should be able to modify the date format.
If you are unfamiliar with how to override the templates in the plugin within your theme I would highly suggest looking at our Themer’s Guide. This way when a new version is available it won’t re-write your changes.
Please let me know if this answered your question.
June 30, 2014 at 12:12 pm #262534renesejling
ParticipantThanks for the reply.
That only shows this though: tribe_get_start_date, no format to change or anything.
Where do I find where the date format is coming from?
Thanks
RenéJune 30, 2014 at 2:29 pm #262698matthewdenton
MemberHi Rene:
Sorry for my oversight and thanks for clarifying the exact issue you were having. Within The Events Calendar we have settings that define how dates are formatted they can be fount within your admin dashboard at :
Events > Settings > Display >> Display Settings
Here you can specify any format accepted by the php date() function.
I hope this answers your question.
– Matthew
July 1, 2014 at 11:56 pm #266233renesejling
ParticipantIt doesn’t work what you mention as the date in display settings is already set for the correct format but not reflecting in the date in the email, see this link please http://screencast.com/t/KWzaadzi5
Please advise where to edit this, thanksJuly 2, 2014 at 11:32 am #267884matthewdenton
MemberHi René:
Thanks for your patience. I went back to the code base and you are correct the tribe_get_start_date template tag does not read the date display settings. This is an oversight on our part and I’ve logged a ticket to our system to see about adding it. In the mean time you can modify the template to pass a date format to the function to have it display as you desire.
echo tribe_get_start_date( $event, true, 'j, F Y');I hope this resolves out your issue and sorry for our oversight with the display settings.
– Matthew
July 2, 2014 at 11:35 am #267888renesejling
ParticipantThanks 🙂 I will try that. Glad to help find bugs 🙂
July 2, 2014 at 12:34 pm #267979matthewdenton
MemberHi, I see that you marked the issue as resolved, Thanks for confirming that your issue got resolved and for your patience.
If you have a minute or two, we would love it if you’d write a few words for us here: http://m.tri.be/lo<i>
</i>Thanks in advance.
– Matthew
July 17, 2014 at 5:40 pm #434235Leah
MemberHi there,
I just wanted to drop in and update you on the status of this issue. We are working on a fix, but we were not able to include it in our upcoming release (3.7). Correcting this problem is still important to us and we hope to have a fix done for a future maintenance release. We will do our best to keep you updated here on our progress. Thank you for your patience and understanding while we work on this.
Best,
Leah -
AuthorPosts
- The topic ‘Change date in email template’ is closed to new replies.
