WordPress.org

Forums

Events Manager
[resolved] Events Manager & Shopp compatibility? (10 posts)

  1. shotage
    Member
    Posted 2 years ago #

    Hi all.

    I have been using Events Manager and Shopp for some time on my site with no problems. I use shortcodes to put the products on the pages.

    After some recent issues I decided to upgrade Shopp to the latest version. It fixed those issues but...

    I have a problem with the formatting when inserting the short codes. We were using a shortcode that seemed to be out of date to what we found here: https://shopplugin.net/docs/the-catalog/shortcodes/

    So we are now using these shortcodes and they work fine on a 'Page' like this...
    http://andrewnewson.co.uk/photography-courses/1-2-1-photography-courses/
    Please scroll to the bottom of the page to see the product.

    However there is a problem when putting the shortcode on an 'Event', like this....
    http://andrewnewson.co.uk/special-events/youth-creative-days/
    You can clearly see there is an issue with stray code and just generally looks messy.

    The events are created using 'Events Manager' and worked absolutely fine until this upgrade.

    Is there a known issue between Events Manager and Shopp?

    Many thanks,
    Andy

    http://wordpress.org/extend/plugins/events-manager/

  2. Marcus
    NetWebLogic Support
    Plugin Author

    Posted 2 years ago #

    Hi Andy,

    If you disable the override with formatting option for events in Events > Settings > Pages > Event Pages, does that make the shortcode display correctly?

    If not, then what if you switch to the default WP theme?

  3. shotage
    Member
    Posted 2 years ago #

    Wow, genius!

    I did disable the override and it seems to work just fine!

    Very happy :-) Thanks so much.

    Andy

  4. agelonwl
    Member
    Posted 2 years ago #

    glad it worked.

  5. shotage
    Member
    Posted 2 years ago #

    Oh but...

    I stupidly didn't notice that in doing this it disabled the dates, times, location and google map.

    Any fix for this?

    Thanks,
    Andy

  6. agelonwl
    Member
    Posted 2 years ago #

    you need to create cpt templates for this e.g. re-copy your single.php and then rename it to single-event.php and then add something like this

    <?php
      global $post;
      $EM_Event = em_get_event($post->ID, 'post_id');
    ?>
    
    <header class="entry-header">
      <h1 class="entry-title"><?php echo $EM_Event->output('#_EVENTNAME'); ?></h1>
     </header>
    
    <div class="entry-content">
     <p><?php echo $EM_Event->output( get_option('dbem_single_event_format') ); ?></p>
    </div>

    http://wordpress.org/support/topic/events-manager-eventslocation-pages-cant-get-sidebar?replies=22

  7. jeremybr0wn
    Member
    Posted 2 years ago #

    I'm the web dude for Andy 'shotage'. That did it, thanks so much!

  8. shotage
    Member
    Posted 2 years ago #

    Thank you agelonwl :-)

  9. jeremybr0wn
    Member
    Posted 2 years ago #

    In the solution given by agelonwl, the social sharing icons supplied with WordPress Jetpack aren't included. Does anyone know an addition to `<?php
    global $post;
    $EM_Event = em_get_event($post->ID, 'post_id');
    ?>

    <header class="entry-header">
    <h1 class="entry-title"><?php echo $EM_Event->output('#_EVENTNAME'); ?></h1>
    </header>

    <div class="entry-content">
    <p><?php echo $EM_Event->output( get_option('dbem_single_event_format') ); ?></p>
    </div>` That will include those sharing icons?

    Thanks,

  10. agelonwl
    Member
    Posted 2 years ago #

    hi @jeremybr0wn

    maybe Jetpack has a similar code which you can use; e.g. shortcode

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Events Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags

No tags yet.