Home › Forums › Ticket Products › Event Tickets Plus › add event title to order page
- This topic has 27 replies, 3 voices, and was last updated 9 years, 4 months ago by
Brook.
-
AuthorPosts
-
November 8, 2016 at 12:12 am #1188983
Sallé Alexander
Participanthello,
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
November 9, 2016 at 2:53 pm #1189992Brook
ParticipantWell 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
November 10, 2016 at 1:16 am #1190166Sallé Alexander
ParticipantNovember 18, 2016 at 12:33 am #1194342Sallé Alexander
Participanthello,
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
November 22, 2016 at 7:53 am #1195800Brook
ParticipantOoops, 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:
- The Events Calendar
- Event Tickets
- Event Tickets Plus
- Event Tickets: Additional Email Options
- WooCommerce
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
November 23, 2016 at 12:28 am #1196357Sallé Alexander
Participanthello,
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
November 23, 2016 at 6:53 am #1196461Brook
ParticipantWell 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
November 23, 2016 at 8:51 am #1196583Sallé Alexander
Participanthello,
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
November 23, 2016 at 9:02 am #1196589Sallé Alexander
Participanthello,
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
November 29, 2016 at 5:12 am #1198993Brook
ParticipantThank 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
November 29, 2016 at 9:06 am #1199213Sallé Alexander
Participanthello,
that’s it !
i put the_title() in display none!
all the best
Alexander
November 30, 2016 at 12:42 am #1199617Brook
ParticipantThank 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
-
AuthorPosts
- The topic ‘add event title to order page’ is closed to new replies.
