Showing more status for front end registrants list
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 28 Jun 2018 18:30:07 +0000 (14:30 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 28 Jun 2018 18:30:07 +0000 (14:30 -0400)
showing all but the 'In Cart' 'Failed Submission' or 'Canceled'

index.php
readme.txt
views/front/registrations/registration.html

index 7bca565..3d3293e 100644 (file)
--- a/index.php
+++ b/index.php
@@ -3,7 +3,7 @@
  * Plugin Name: GLM Members Database Event Registrations
  * Plugin URI: http://www.gaslightmedia.com/
  * Description: Add-on to integrate registrations into Events add-on.
- * Version: 1.0.4
+ * Version: 1.0.5
  * Author: Gaslight Media
  * Author URI: http://www.gaslightmedia.com/
  * License: GPL2
@@ -19,7 +19,7 @@
  * @package glmMembersRegistrationsAddOn
  * @author Chuck Scott <cscott@gaslightmedia.com>
  * @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.0.4
+ * @version 1.0.5
  */
 
 // Check that we're being called by WordPress.
@@ -43,7 +43,7 @@ if (!defined('ABSPATH')) {
  *  so that we're sure the other add-ons see an up to date
  *  version from this plugin.
  */
-define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_VERSION', '1.0.4');
+define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_VERSION', '1.0.5');
 define('GLM_MEMBERS_REGISTRATIONS_PLUGIN_DB_VERSION', '1.0.1');
 
 // This is the minimum version of the GLM Members DB plugin require for this plugin.
index 40e95a3..420f8e4 100644 (file)
@@ -25,6 +25,8 @@ e.g.
 1. Activate the plugin through the 'Plugins' menu in WordPress
 
 == Changelog ==
+= 1.0.5 =
+For registrant front end list show more than just Complete status.
 
 = 1.0.0 =
 
index 2dae850..a254a1c 100644 (file)
         <h3>Current List of {$terms.reg_term_attendee_plur_cap} for This {$terms.reg_term_event_cap}</h3>
         <div style="margin-bottom: 5px; padding: 5px;">
     {foreach $registrantsList as $registrantAttending}
-       {if !$registrantAttending.not_attending.value && $registrantAttending.request_status_name == "Complete"}
+       {if !$registrantAttending.not_attending.value && !in_array( $registrantAttending.request_status_name, array( 'In Cart', 'Failed Submission', 'Canceled' ) )}
             {$registrantAttending.fname} {$registrantAttending.lname}{if !$registrantAttending@last}, {/if}
        {/if}
     {/foreach}