add event title to order page

Home Forums Ticket Products Event Tickets Plus add event title to order page

Viewing 12 posts - 16 through 27 (of 27 total)
  • Author
    Posts
  • #1188983
    Sallé Alexander
    Participant

    hello,

    it works now but i have always somthning with the title.
    on the order page in front, there is “commande reçue” in italic insted of the the event title ” cours test”.
    on email sent , its ok !

    i send u a screenshot

    all the best

    Alexander

    #1189992
    Brook
    Participant

    Well that’s odd! Could you link me to the cours test event, so that I could try adding it to my cart and seeing the problem in action?

    Cheers!

    – Brook

    #1190166
    Sallé Alexander
    Participant

    hello,

    this the link:
    http://mda.axionweb.fr/site/event/cours-test/

    all the best

    Alexander

    #1194342
    Sallé Alexander
    Participant

    hello,

    i didnt have any answer for my last replie.
    so i give u another screenshot.

    We can see the first title ” commande reçue” and the second is ok.

    So do u have a solution ?

    All the best

    Alexander

    #1195800
    Brook
    Participant

    Ooops, my last response must not have submitted properly. Sorry for the delay.

    The likeliest cause of this is that something else is filtering the WordPress filter “the_title” without properly checking to see if the post_type matches the thing they wish to filter. In laymen’s terms, you likely have a conflict with your theme or one of the other plugins causing this. You can test to see if this is the problem by switching themes to the default Twenty Sixteen theme. Then deactivate all other plugins except these ones:

    Now try creating a new order. The problem should go away. If it does, can you try reactivating plugins one at a time until this issue resurfaces? Which plugin is or theme is causing the conflict? It might be possible to create a compatibility patch, but it might not. We will need to know which one is conflicting before we can research further.

    Does that all make sense? Please let me know.

    Cheers!

    – Brook

    #1196357
    Sallé Alexander
    Participant

    hello,

    i try with ur test but its the same, on the last screenshot u can that only the first event have “commande reçue” so its not a conflict, i think, i see a similar question in a topic. its a line of code which return “commande reçue” because it don’t find the good title.

    can help me ?

    all the best

    Alexander

    #1196461
    Brook
    Participant

    Well that is unexpected, but a conflict seems to be the only possible explanation. The more I look at this the more that explanation makes sense. Likely it’s your theme since your theme does not appear to be showing the_title() anywhere. You will need to isolate what is conflicting before a fix might be possible. Do you mind trying the conflict test again. In particular make sure you switch themes to an unmodified version of the Twenty Sixteen theme.

    I have searched and searched and not seen anyone else with this issue. Do you have a link to that thread?

    Cheers!

    – Brook

    #1196583
    Sallé Alexander
    Participant

    hello,

    i try again:
    – with theme default it’s ok… sorry
    – so i deactivate all the uneeded plugin and reactivate all one by one : it’s ok
    – i reactivate my theme : again “commande reçue”
    – i test my function.php with no function : again “commande reçue”
    – i have no activated my woocommerce customisation : again “commande reçue”

    => so i don’t understand where is the conflict !

    My problem is like this thread with “up comming event”

    Include event title and description in woocommerce new order email

    an idea ?

    all the best

    Alexander

    #1196589
    Sallé Alexander
    Participant

    hello,

    the problem is with this line of code in the plugin:
    $event_details[] = sprintf(
    %2$s‘,
    esc_attr( get_permalink( $event ) ),
    esc_html( get_the_title( $event ) )
    );

    => the link is good but not the name …

    all the best

    Alexander

    #1198993
    Brook
    Participant

    Thank you for redoing the test Alexander! That does make sense.

    The issue is that your theme does not call the_title() anywhere. WooCommerce expects this, or get_the_title(), to be called at least once during the content body. The first time that it is called WooCommerce will override it with the Woo page title.

    The best solution here would be to add the_title() to your theme, inside the content area/loop. Doing that will not only show the current page title, but it should also stop WooCommerce from inserting its title in place of the event title.

    Does that all make sense? Will that work for you? Please let me know.

    Cheers!

    – Brook

    #1199213
    Sallé Alexander
    Participant

    hello,

    that’s it !

    i put the_title() in display none!

    all the best

    Alexander

    #1199617
    Brook
    Participant

    Thank you Alexander. I really appreciate your patience here while we implemented this new extension, and helping me fix the bug in it.

    I hope the rest of your site goes smooth. Please let us know if you need ever need anything else.

    – Brook

Viewing 12 posts - 16 through 27 (of 27 total)
  • The topic ‘add event title to order page’ is closed to new replies.