-
AuthorPosts
-
July 9, 2016 at 4:23 am #658691
I have the Enfold theme (fully up-to-date), WooCommerce (fully up-to-date) and Event Tickets Plus (fully up-to-date) and I am unable to view the ticket information (the plus/minus buttons, quantity field, and Add to Cart button) on any page when the Enfold theme is active. If I activate a different theme, the ticket information shows up properly, so I’m assuming this is a theme conflict. Do you have any idea how I can fix this? A sample page that should have a ticket on it is here (http://ncterms.org/agenda/) and the ticket should be visible directly above the black footer section. Thanks for your help!
July 11, 2016 at 9:30 pm #659553Just FYI, I found that by changing the theme, and then copying the HTML from the correctly-generated page, then adding a “code block” and re-applying my original theme, I could get the tickets section to show up. So, technically with the Enfold theme active, the tickets are purchasable on my pages, though when any other theme is active there are two ticket sections now (one from my code block and the other generated from the Event Tickets plugin). I still need help with this though, because this is pretty hacktastic as-is. Thanks!
July 12, 2016 at 3:51 am #659643Hi,
Thank you for using Enfold.
Please switch to the default editor if you intend to use the plugin for pages. It’s NOT going to work with the advance layout builder because the builder is using another template called template-builder.php file to render the page. Or ask the plugin author what callback function to use so that we can add it in the template.
Best regards,
IsmaelJuly 13, 2016 at 4:25 am #660183Thank you for getting back to me. I have an open thread with them, so I will ask them about the callback function since I’d really like to be able to use the advanced layout builder on these pages.
July 13, 2016 at 2:21 pm #660425Hi,
Ok, thanks for the feedback. We’ll keep the thread open in case you should need any help from us.
Regards,
RikardJuly 13, 2016 at 5:32 pm #660511Alright, here is the response I got from Tribe about the callback function:
“By the looks of it, it sounds like the callback function they are looking for would look something like:
add_action( ‘some_theme_hook’, array( Tribe__Events__Tickets__Woo__Main::get_instance(), ‘front_end_tickets_form’ ) ); ”does that help?
July 16, 2016 at 3:25 am #661591Hi,
Thank you for the info.
Please edit the template-builder.php file then look for this code around line 45:
$content = apply_filters('avf_template_builder_content', $content); echo $content;
.. below add this code:
do_action( 'ava_after_content_ticket' );
Edit the child theme’s functions.php file, look for this code:
tribe_etp_move_tickets_purchase_form('ava_after_main_title', 10);
Replace “ava_after_main_title” with “ava_after_content_ticket”.
Best regards,
IsmaelOctober 13, 2016 at 10:36 pm #698914Hi
I have the same problem (I want use advance layout builder).
I am looking for this phrase:tribe_etp_move_tickets_purchase_form('ava_after_main_title', 10);
in child theme’s functions.php but I cannot find it.
I am using child which you recommend http://kriesi.at/documentation/enfold/using-a-child-theme/
I cannot find this phrase also in enfold functions.php file.
What can I do?
Thank you in advanced
KrzysztofOctober 18, 2016 at 9:23 am #700478Hi,
The user added that line in the child theme’s function.php file. Please try to add it in your own child theme’s functions.php file using the “ava_after_content_ticket” hook.
Best regards,
IsmaelOctober 18, 2016 at 4:40 pm #700760Hi Ismael
I’ve addedtribe_etp_move_tickets_purchase_form('ava_after_content_ticket', 10);
into my child theme’s functions.php file, but I consider it should be another code I have to add also because my instalation break down.
When I can find that code or manual how to do that?
Best regards
KrzysztofOctober 19, 2016 at 6:41 am #701016Hi!
Did you modify the template-builder.php file?
Best regards,
Ismael -
AuthorPosts
- The topic ‘Display issue with Enfold theme and Event Tickets Plus by Modern Tribe’ is closed to new replies.