Support

Home Forums Event Espresso Premium No register button(s) or featured image?

No register button(s) or featured image?

Posted: April 16, 2014 at 4:03 am

Viewing 14 reply threads


Kevin Dillon

April 16, 2014 at 4:03 am

Love the upgrade! Text actually reads great now!

However, I do not see any way to sign up for an event. I also do not see a way too add a featured image to an event?

http://www.policecombat.com/events

Thanks in advance,

-Jed


Tony

  • Support Staff

April 16, 2014 at 10:09 am

Hi Jed,

Unfortunately it looks like both those issues are concerning your theme.

However when testing the same theme with 4.2 on a test site the Register button is displayed – http://take.ms/y6W7L

Have you modified the theme or created your own templates for EE events?

The feature image appears if using another theme. EE adds support for the Events CPT’s (espresso_events) but that theme does not display the metabox within the Admin.


Kevin Dillon

April 17, 2014 at 9:36 am

Aloha Tony:

Thanks so much for your response. Wanted to go through as much as I could to give you a reasonable response. I loaded your newest version of theme to our beta site, (which we won’t be using) and all is PERFECT! http://www.policecombat.com/ee4/events/ Registration button shows etc.

Back to live site… http://www.policecombat.com/events/ . Before there were some issues with wp-commerce plugin, so I disabled it for the time being. Definite layout issues, however after clicking on an event, the registration button appears!!!!!

WP-commerce is installed and activated on the stage site. So it is strange that is ‘the’ conflict with register button issue on live site.

Ideally would like to have ‘events page’ not be ‘blog archives’ I’m sure you can point me. Otherwise can you provide any insight on conflicts with wp-commerce on certain themes?

Going on 4 months now trying to get this live for my client.

Please help!!!!

-Jed


Kevin Dillon

April 17, 2014 at 9:47 am

Figured out workaround for blog archive page, actually you created this page: http://www.policecombat.com/event-registration-2/ when you were in there in Feb.

Again, wp-commerce is now disabled, if I enable it register now etc. goes away….

This has to be close, any help would be awesome.


Tony

  • Support Staff

April 17, 2014 at 10:39 am

Hi Kevin,

The beta site uses a different theme than your main site. As such you will see different issues on each site depend on the code the theme is running.

Regarding the wp-commerce issue you could try adding this:

function callback_that_does_nothing( $WP_Query ) {
    return $WP_Query;
}
add_action( 'pre_get_posts', 'callback_that_does_nothing', 8 );

To your themes functions.php file and re-test.


Kevin Dillon

April 17, 2014 at 12:43 pm

Thanks Tony, added code and activated wp-commerce, still nothing after event info…

Noticed $WP_Query in functions.phpp in this code:

// Related Post
function get_related_posts($post_id, $tags = array()) {
$query = new WP_Query();

$post_types = get_post_types();
unset($post_types[‘page’], $post_types[‘attachment’], $post_types[‘revision’], $post_types[‘nav_menu_item’]);

if($tags) {
foreach($tags as $tag) {
$tagsA[] = $tag->term_id;
}
}
$query = new WP_Query( array(‘showposts’ => 4,’post_type’ => $post_types,’post__not_in’ => array($post_id),’tag__in’ => $tagsA,’ignore_sticky_posts’ => 1,
));
return $query;
}

Any ideas?


Sidney Harrell

April 17, 2014 at 6:30 pm

It’s definitely a conflict with wp-e-commerce. I installed it on a test site and it’s killing the content of the event posts. Looking further into it now.


Sidney Harrell

April 17, 2014 at 8:47 pm

After several hours of wading through it, I’ve determined that wp-e-commerce is really messing with the wp-query, not only on EE pages, but on all pages. I couldn’t determine a way within EE to get around wp-e-commerce not playing nice with others, but I did figure out a way to make the EE pages a wp-e-commerce free zone. It’s a bit of a blunt hammer, but if you open up plugins/wp-e-commerce/wp-shopping-cart.php and go to line 31 and change it to:

		if (strpos($_SERVER['REQUEST_URI'], 'events') === FALSE) add_action( 'plugins_loaded' , array( $this, 'init' ), 8 );

then on all your pages under ‘events’ it will act like wp-e-commerce is not activated.


Kevin Dillon

April 18, 2014 at 3:43 am

aloha Tony:

Can’t express my thanks for your time. Indeed I am into 4 months trying ‘everything’…

After selecting # of tickets and clicking register now, I get this error on following page:

An error has occurred:
We’re sorry but your request failed to pass a security check.
Please click the back button on your browser and try again.
TCKSLC-DTCKSLC-PROTICSEL-275

Realized was prolly a session issue, tried firefox, and got blank page after register button. I’m horrible at php but I ammended your code on line 31 to:

if (strpos($_SERVER[‘REQUEST_URI’], ‘events’) === FALSE && strpos($_SERVER[‘REQUEST_URI’], ‘event-registration’) === FALSE && strpos($_SERVER[‘REQUEST_URI’], ‘event-payments’) === FALSE) add_action( ‘plugins_loaded’ , array( $this, ‘init’ ), 8 );

Any others that I need to add? I know it’s a hammer fix=)

Endless thanks. If this testing goes well etc, I do want to know how to remove the “Upcoming Date(s) and Time(s)” block, and just need to be pointed to that layout.

Endless Mahalos,

-Jed


Kevin Dillon

April 18, 2014 at 4:05 am

Added thank-you page to array, seems I was able to complete 2 registrations!

Let me know if you can think of any other url possibilities I am not seeing etc.

Formatting will be a task, wish it was a little more ‘bare-bones’ as to use theme styles for forms etc. Just a thought.

Updated current code:

if (strpos($_SERVER[‘REQUEST_URI’], ‘events’) === FALSE && strpos($_SERVER[‘REQUEST_URI’], ‘event-registration’) === FALSE && strpos($_SERVER[‘REQUEST_URI’], ‘event-payments’) === FALSE && strpos($_SERVER[‘REQUEST_URI’], ‘thank-you’) === FALSE) add_action( ‘plugins_loaded’ , array( $this, ‘init’ ), 8 );


Tony

  • Support Staff

April 18, 2014 at 6:33 am

Hi Kevin,

That should be all of the pages you need to add.

If you go to Event Espresso -> General Settings. Click on the Critical Pages tab.

You’ll find all of EE4’s critical pages listed, those are the pages you need to include in your code above to remove wp-e-Commerce.

Also to note those modification will be lost each time you update wp-e-Commerce.


Kevin Dillon

April 20, 2014 at 6:04 am

Aloha Tony, thanks SO much!!!

Getting good to go.

I do want to know how to remove the “Upcoming Date(s) and Time(s)” block, and just need to be pointed to that layout.

The more I know the more sites i can include your system=)

Endless thanks!

-Jed


Kevin Dillon

April 20, 2014 at 6:46 am

Looking like I have to log a ton of layout changes. Really surprised you have line breaks in between your hidden input types on your form?? Just getting started, but going to be rough…


Kevin Dillon

April 20, 2014 at 7:16 am

Was able to remove ‘upcoming dates and times’…

A ‘couple ‘would be nice’ items:

Ability to change the wording Event(s) to Course(s)
Make template fullwidth rather than side-bar.

Sure I’ll figure out, just fyi.

Endless thanks,

-Jed


Josh

  • Support Staff

April 21, 2014 at 1:33 pm

The line breaks are likely being added by your theme’s altering of the wpautop function. You can avoid that by removing its filtering of wpautop

The wording can be changed via a small function. There is example code in the help/support section of the plugin that shows how to change the events custom post type slug to “workshops”.

If you theme allows it, there’s a plugin you can install that will let you select a page template when you set up an event (like a full width page template). Here’s a link to where you can download it:

http://wordpress.org/plugins/custom-post-type-page-template/

Viewing 14 reply threads

The support post ‘No register button(s) or featured image?’ 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