Forum Replies Created

Viewing 15 replies - 31 through 45 (of 2,344 total)
  • Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Sorry, but you are posting this question on the wrong forum.

    Email Users is an add-on for Events Manager and does nothing with canceling bookings. Please repost your question on the Events Manger forum:
    https://www.ads-software.com/plugins/events-manager/

    Thread Starter Stonehenge Creations

    (@duisterdenhaag)

    Never mind… ??

    Taking a closer look at the code, I noticed that the 105 year range is only used if EM.yearRange is not set.
    if( EM.yearRange ) datepicker_vals.yearRange = EM.yearRange;

    I solved it using the 'em_wp_localize_script' filter.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    The Single Booking Page is part of Events Manager and this add-on adds a small box to that.

    There are actually two ways to get there:
    In your WordPress Dashboard go to Events -> Bookings.

    1. In the first table you will find all the bookings for you upcoming events. Find the booking you want to move and click the link “Edit/View”.
    2. If that list is too long, you can also first select the event in the second table. When you click on the event name, you will get an overview of the current booking for that event. Find the booking you want to move and click the link “Edit/View”.

    There you will find a metabox to move the booking to another future event.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    It appears that the search shortcode does not accept these search arguments.
    Then you/we need to use the custom template after all.

    To keep custom coding safe from plugin updates, you need to copy the original template file to your theme directory using the same directory path as the original file. (Official Events Manager documentation)

    That comes down to:

    • Using FTP or the Files Manager in cPanel, go to /wp-content/themes/your-theme/.
    • Create these folders: /plugins/events-manager/forms/event.
    • In the event folder, create a new file: categories-public.php

    Then paste this snippet in categories-public.php

    
    <?php $args = !empty( $args ) ? $args : array(); /* @var $args array */ ?>
    <!-- START Category Search -->
    <div class="em-search-category em-search-field">
      <label>
        <span><?php echo esc_html($args['category_label']); ?></span>
        <?php
        EM_Object::ms_global_switch(); //in case in global tables mode of MultiSite, grabs main site categories, if not using MS Global, nothing happens
        wp_dropdown_categories( array (
          'hide_empty' => true,
          'orderby' =>'name',
          'name' => 'category',
          'hierarchical' => true,
          'taxonomy' => EM_TAXONOMY_CATEGORY,
          'exclude' => '81,108',
          'selected' => $args['category'],
          'show_option_none' => $args['categories_label'],
          'option_none_value'=> 0,
          'class'=>'em-events-search-category'
        ) );
        EM_Object::ms_global_switch_back(); //if switched above, switch back
        ?>
      </label>
    </div>
    <!-- END Category Search -->
    

    This snippet is an altered version of the Events Manger Pastebin link I posted in my previous reply. You can copy/paste, as I put you category ID’s already in there.

    Thread Starter Stonehenge Creations

    (@duisterdenhaag)

    Thank you, and also for the change log. ??

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Hi @eddypiv,
    Thank you for trying this plugin.

    The custom post status keeps the event status at 1 to keep existing bookings. Events Manager deletes all bookings data if an event is set to status 0. And then you would not be able to notify them by email anymore…

    The post status is also used to change the status to “Draft” if you deactivate this plugin for any reason, preventing orphaned events. When you reactivate this plugin, it will automatically loop through draft events and uses the event category “event-cancelled” to determine whether or not change the post status to “Cancelled” again.

    The event category is there for several reasons, but also to allow exclusion. It gives you the option to show or hide cancelled events to your visitors.

    Within Events Manager there are two ways to exclude event categories from the front-end, by using shortcodes or by editing a template file. Events Manager shortcodes are easier to use, because they overrule the default settings.

    Looking at your website, I assume you enabled the events search using the Events Manager settings. If so, you need to make a minor change in the template file, because Events Manager does not exclude or hide specific categories by default or settings.

    The easiest way would be to:

    • Disable the search form in the Events Manager settings.
    • Then lookup the Category ID for ‘event-cancelled’ in Events > Event Categories.
    • Go to your Events Page in Dashboard > Pages.
    • Paste the shortcode [event_search_form hide_empty=1 category="-14"] above “CONTENTS”, where 14 is your Category ID for ‘event-cancelled’.

    If you are comfortable to edit template files you could use the snippet that the Events Manger devs documented on their Pastebin.

    Let me know if you need help editing their template.

    Thread Starter Stonehenge Creations

    (@duisterdenhaag)

    I have all permissions and all other tables are being created without any hassle. The only ones that are not being created are those for Yoast.

    Since I asked the simple question multiple times and do not seem to get that answer, I will use a different SEO tool and close this unsolved topic.

    Thread Starter Stonehenge Creations

    (@duisterdenhaag)

    Yoast SEO will show you an error message when we are unable to create tables automatically.

    No, it does not… Only get a flood debug.log that the table does not exist.

    Please just point me to the correct file.

    Thread Starter Stonehenge Creations

    (@duisterdenhaag)

    No, unfortunately that did not solve the issue.

    Could you please tell me in which file I can find the method that should create the tables, so I can create them manually?

    Thread Starter Stonehenge Creations

    (@duisterdenhaag)

    Most likely the emails were sent because at the time of the import an actual User account

    That is incorrect.

    Importing payments & customers into WordPress using the EDD import (Tools) page does not (automatically) create a user account.

    The emails the EDD sends out are for non-users to access their Purchase History. Again, importing means “inserting existing data”. No new verification should have to be taken (anymore)…

    WordPress has filters to block emails upon user creation. EDD does not call those hooks when importing customers.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Reading back I realize that my answer was not sufficient. My apologies…

    To enhance EM Booking Emails (reply-to & attendees in the CC, etc) Events Manager cannot be in WP Mail mode, because there is no hook to target the correct email type.

    Applying html markup to all the event emails (your bookings) with this plugin is a Pro feature (one of many others).

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    And always doing html formatting manually, diminishes the described benefit of this plugin quite a lot, if one cares about the quality of the outgoing event emails.

    I disagree.
    A lot of EM users have their email markup within the Events Manager settings.

    This plugin hooks into Events Manager booking emails specifically, not all you outgoing emails. Depending on your website, Events Manager will most likely not be the only plugin sending out emails. Applying changes for all can be great, but that method is unsuited for specific email types.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    In the plugin options page you will find an image with the email flow chart for Events Manager which explains why.

    We are using the WP HTML Mail plugin for formatting all our outgoing emails.

    That is exactly the reason. ??
    This plugin allows you to target customer emails differently than admin emails, with options like, CC-ing attendees, set the correct reply-to address, etc. so that admins will no longer send replies to themselves.
    This is not possible if Events Manger uses wp_mail(), because there is no sure way to hook into the correct email type…

    The premium version of this plugin allows you even more control and enhancements for EM Booking emails, targeting the correct recipient(s).

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    Looking at your page, it is currently showing an embedded Google Map.
    That means that the coordinates have not been saved to your WordPress database by Events Manager.

    If you want to switch to using this plugin, you can save the coordinates by going to the Edit Location page and click the “Search Address” button.
    After the marker has been automatically moved to the fetched coordinates, you can still drag the marker to a more precise position, if needed.

    When you click “Update” the coordinates will be safely stored in your database and EM – OSM will not need to call the OpenCage API for that location anymore.

    Plugin Author Stonehenge Creations

    (@duisterdenhaag)

    The geocoding search (fetching the coordinates of a new location) is done through an Ajax call using jQuery. This search is initiated by clicking the “Search Address” button.
    The script then takes the form field values to perform the API call.

    You would need custom coding to execute this search programmatically…

    OpenCage Data will return its best result, but there is still room for errors, depending on accuracy of the provided address fields. Also, the marker might not be in the exact spot that you would like to be.

    Please note that before you start any custom coding, I am about to release an update with a complete code rewrite so method names etc could be different.

Viewing 15 replies - 31 through 45 (of 2,344 total)