Support

Home Forums Event Espresso Premium Double ticket selector

Double ticket selector

Posted: December 14, 2015 at 12:01 pm

Viewing 17 reply threads


MR DECLAN J MAIR

December 14, 2015 at 12:01 pm

Hello,

I have an issue that has apparently been the case for a while but I’ve just now been informed. On the events list… ie. Link its showing the same ticket twice but 1 has info and one doesn’t. I was reading a previous post where they updated and it was sorted but its still the case here.
Any suggestions? The pages are set to show events in a set order via shortcodes.

Thanks in advance
Declan


Josh

  • Support Staff

December 14, 2015 at 4:09 pm

Hi Declan,

Do you have any custom functions or custom templates set to alter the event list? One thing you can try is go to Event Espresso > Templates and look under the Event List Pages section for a setting that says Use Custom Display Order. You’ll need to make sure that’s set to No.


MR DECLAN J MAIR

December 15, 2015 at 2:08 am

Hi Josh,
There are some custom functions, thats to alter colour though. I removed them but didn’t make a difference. (below)

Image

I checked if there’s a custom order and it’s always been set to no.
This is how the page is set to load the events in a set order:
Image


Tony

  • Support Staff

December 15, 2015 at 5:09 am

Hi Declan,

I remember from previous threads that you are loading custom EE templates within your theme.

If you look within your theme directory, do you have a ‘loop-espresso_events.php’ file there? If so rename it to something different and retest that page. (You can just add a 2 to the filename – ‘loop-espresso_events2.php’)


MR DECLAN J MAIR

December 15, 2015 at 5:20 am

Hi Tony,
You’re correct… I think thats to show the sidebar in the event page as I see its now not showing. I’ve renamed it but still showing 2 tickets :/

Thanks in advance.
Declan


Tony

  • Support Staff

December 15, 2015 at 5:37 am

‘loop-espresso_events.php’ should not be adding a sidebar to the single events page, can you double check that is the file you renamed please?


MR DECLAN J MAIR

December 15, 2015 at 5:55 am

Sorry… I renamed the wrong file! Right so I’ve done that… the main events listing is ok and now only showing the 1 ticket… but if you click into any event its not really showing you any info and you cant book from there…


Tony

  • Support Staff

December 15, 2015 at 6:16 am

Hmm, ok, rename the file back to the original, does it then all load correctly?


MR DECLAN J MAIR

December 15, 2015 at 6:35 am

Hi Tony,
the main events listings shows double again… the event page is fine now.

Code below if that helps… If memory served right I think you kindly passed it onto me.

<?php
/**
 * This template will display The Loop that displays your events 
 *
 * @ package		Event Espresso
 * @ author		Seth Shoultes
 * @ copyright	(c) 2008-2013 Event Espresso  All Rights Reserved.
 * @ license		https://eventespresso.com/support/terms-conditions/   * see Plugin Licensing *
 * @ link			http://www.eventespresso.com
 * @ version		4+
 */

 if ( have_posts() ) : ?>
	
	<?php 
		// allow other stuff
		do_action( 'AHEE__archive_espresso_events_template__before_loop' ); 
		// Start the Loop.
		while ( have_posts() ) : the_post(); 
			// Include the post TYPE-specific template for the content.
			espresso_get_template_part( 'content', 'espresso_events' );
		endwhile;
		// espresso_pagination();
		// Previous/next page navigation.
		// allow moar other stuff
		do_action( 'AHEE__archive_espresso_events_template__after_loop' );

	else :
		// If no content, include the "No posts found" template.
		espresso_get_template_part( 'content', 'none' );
		
	endif;
	


Tony

  • Support Staff

December 15, 2015 at 7:17 am

Can you change this line:

espresso_get_template_part( 'content', 'espresso_events' );

To this:

espresso_get_template_part( 'content', 'espresso_events-shortcode' );

and let me know how that works please?


MR DECLAN J MAIR

December 15, 2015 at 7:31 am

Right… that works on the main events listing page only showing 1 ticket. But its the same issue that the ticket box disappears on an single event page.


Tony

  • Support Staff

December 15, 2015 at 7:35 am

Hmm, that shouldn’t be happening.

Can you send me a copy of your current theme please? Or FTP access so I can download it see what is happening.

If you would like to send a copy you’ll need to zip the file and host it somewhere and email the link to support[at]eventespresso.com so I can download it.

If you prefer to send FTP details, please use this form:

https://eventespresso.com/send-login-details/


MR DECLAN J MAIR

December 15, 2015 at 7:53 am

done. Hosted via dropbox so the link should be with you.


Josh

  • Support Staff

December 15, 2015 at 8:57 am

Hi there,

We’re unable to access the dropbox file because you sent access to the support email account, which does not have a dropbox account associated with it. Can you send a direct link to the dropbox file instead?


MR DECLAN J MAIR

December 15, 2015 at 9:13 am

sent.


Josh

  • Support Staff

December 15, 2015 at 9:38 am

Hi Declan,

This the fix I can recommend. You open up single-espresso_events.php, and edit line 42 where it currently has this:

<?php espresso_get_template_part( 'loop', 'espresso_events' ); ?>

You change it to:

<?php // Start the Loop.
while ( have_posts() ) : the_post();
    espresso_get_template_part( 'content', 'espresso_events' );
endwhile; ?>


MR DECLAN J MAIR

December 15, 2015 at 9:49 am

Wonderful 🙂 Kept Tony’s bit of code in and added yours and we’re sorted!

Out of interest, is it a theme conflict that was occurring?

Thanks for the help!

Declan


Josh

  • Support Staff

December 15, 2015 at 1:14 pm

There may be some issues with the theme, but the key issue here was the loop template should not be used for the single event view.

Viewing 17 reply threads

The support post ‘Double ticket selector’ 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