Change date in email template

Home Forums Ticket Products Event Tickets Plus Change date in email template

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #259436
    renesejling
    Participant

    How 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é

    #262160

    Hi

    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.

    #262534
    renesejling
    Participant

    Thanks 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é

    #262698

    Hi 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

    #266233
    renesejling
    Participant

    It 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, thanks

    #267884

    Hi 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

    #267888
    renesejling
    Participant

    Thanks 🙂 I will try that. Glad to help find bugs 🙂

    #267979

    Hi, 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

    #434235
    Leah
    Member

    Hi 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

Viewing 9 posts - 1 through 9 (of 9 total)
  • The topic ‘Change date in email template’ is closed to new replies.