Support

Home Forums Event Espresso Premium Duplicate Available Ticket Tables showing on event page

Duplicate Available Ticket Tables showing on event page

Posted: February 1, 2017 at 11:55 am

Viewing 10 reply threads


scaldwell

February 1, 2017 at 11:55 am

I’m not sure when this showed up but we just noticed that we’ve got two sets of the Ticket tables: https://portlandfashioninstitute.com/events/learn-to-sew-8/

Looking at the content_espresso_events template, I see the code as (can you see where it’s coming from?) I will likely do some testing, but a helping hand would be appreciated. Thanks!

`global $post;
$event_class = has_excerpt( $post->ID ) ? ‘ has-excerpt’ : ”;
$event_class = apply_filters( ‘FHEE__content_espresso_events__event_class’, $event_class );
?>
<?php do_action( ‘AHEE_event_details_before_post’, $post ); ?>
<article id=”post-<?php the_ID(); ?>” <?php post_class( $event_class ); ?>>

<?php if ( is_single() ) : ?>

<div id=”espresso-event-header-dv-<?php echo $post->ID;?>” class=”espresso-event-header-dv”>
<?php espresso_get_template_part( ‘content’, ‘espresso_events-thumbnail’ ); ?>
<?php espresso_get_template_part( ‘content’, ‘espresso_events-header’ ); ?>
</div>

<div class=”espresso-event-wrapper-dv”>
<div id=”class-details”><?php espresso_get_template_part( ‘content’, ‘espresso_events-details’ ); ?></div>
<?php espresso_get_template_part( ‘content’, ‘espresso_events-venues’ ); ?>
<?php espresso_get_template_part( ‘content’, ‘espresso_events-tickets’ ); ?>
<?php espresso_get_template_part( ‘content’, ‘espresso_events-datetimes’ ); ?>
<footer class=”event-meta”>
<?php do_action( ‘AHEE_event_details_footer_top’, $post ); ?>
<?php do_action( ‘AHEE_event_details_footer_bottom’, $post ); ?>
</footer>
</div>

<?php elseif ( is_archive() ) : ?>

<div id=”espresso-event-list-header-dv-<?php echo $post->ID;?>” class=”espresso-event-header-dv”>
<?php espresso_get_template_part( ‘content’, ‘espresso_events-thumbnail’ ); ?>
<?php espresso_get_template_part( ‘content’, ‘espresso_events-header’ ); ?>
</div>

<div class=”espresso-event-list-wrapper-dv”>
<div id=”class-details”><?php espresso_get_template_part( ‘content’, ‘espresso_events-details’ ); ?></div>
<?php espresso_get_template_part( ‘content’, ‘espresso_events-venues’ ); ?>
<?php espresso_get_template_part( ‘content’, ‘espresso_events-tickets’ ); ?>
<?php espresso_get_template_part( ‘content’, ‘espresso_events-datetimes’ ); ?>
</div>

<?php endif; ?>

</article>
<!– #post –>
<?php do_action( ‘AHEE_event_details_after_post’, $post );


Josh

  • Support Staff

February 1, 2017 at 12:07 pm

Hi there,

The extra table wouldn’t come from the template. May I ask if you go in to edit the event, does the event description have an
[ESPRESSO_TICKET_SELECTOR] short code included there? If so, that’s where the duplicate is coming from.


scaldwell

February 1, 2017 at 12:12 pm

Nope… Any other ideas Josh. It’s so WEIRD…


Josh

  • Support Staff

February 1, 2017 at 12:16 pm

May I ask are any of Event Espresso’s templates copied over to the active WordPress theme? If so, which templates?


scaldwell

February 1, 2017 at 12:33 pm

content-espresso_events.php
ticket_selector_chart.template.php


scaldwell

February 1, 2017 at 2:06 pm

I tested what would happen if I deleted the ticket_selector_cart.template.php page and both tables disappeared – and I was left with two Add to Event Cart buttons….


Josh

  • Support Staff

February 1, 2017 at 4:48 pm

Hi there,

Can you check in the theme’s functions.php file -or- if you have a plugin set up for adding in functions, you look for some code that looks like this:

add_filter ('FHEE__EE_Ticket_Selector__display_ticket_selector__template_path', 'my_custom_ticket_selector_template_location');

If you find something similar to the above, you can remove that line of code, save the file, then check to see if the duplicate is removed.


scaldwell

February 1, 2017 at 5:08 pm

Hi Josh – I did find that line of code. Removed it… but 🙁 no change…

-S


Josh

  • Support Staff

February 1, 2017 at 5:33 pm

Can you try temporarily removing the customizations (file by file) until the double goes away? An unmodified site with Event Espresso will show the Ticket Selector one time. We can also help with troubleshooting if you can post all of the customizations for Event Espresso into a paste bin or gist.


scaldwell

February 1, 2017 at 6:13 pm

Those would be any EE templates that exists inside the theme directory, correct?


Josh

  • Support Staff

February 1, 2017 at 6:38 pm

That’s correct, any EE templates that are for displaying an event or a template part for part of the display of the event. Other EE templates for displaying venues, attendees or anything like that wouldn’t affect the display of the Ticket Select.

Viewing 10 reply threads

The support post ‘Duplicate Available Ticket Tables showing on event page’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso