From: Chuck Scott Date: Wed, 5 Sep 2018 16:04:36 +0000 (-0400) Subject: Fixed flxxy parameter error in requestDashboard and now adding submit error messages... X-Git-Tag: v1.0.22^2~23 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=e08a67fe60ce40bdad8559ed294ecc818ea7cce5;p=WP-Plugins%2Fglm-member-db-registrations.git Fixed flxxy parameter error in requestDashboard and now adding submit error messages to notes in reg_request --- diff --git a/models/front/registrations/checkoutProcess.php b/models/front/registrations/checkoutProcess.php old mode 100644 new mode 100755 index 5e21183..49b1406 --- a/models/front/registrations/checkoutProcess.php +++ b/models/front/registrations/checkoutProcess.php @@ -794,6 +794,22 @@ class GlmMembersFront_registrations_checkoutProcess extends GlmRegCartSupport // Include the billing info same flag $regAccount['billingSame'] = $billingSame; + // Build failure message text to append to request notes field. + $failNotes = "Checkout Failure: ".date('l F j, Y g:i a')."\n"; + if (is_array($messages) && count($messages > 0)) { + foreach ($messages as $mess) { + $failNotes .= '* '.$mess."\n"; + } + } + $failNotes .= '\n'; + + // Append failure message text to request notes field. + $updated = $this->wpdb->query(" + update ".GLM_MEMBERS_REGISTRATIONS_PLUGIN_DB_PREFIX."reg_request + set notes = concat(COALESCE(notes,''), '$failNotes') + where id = $requestId + "); + $view = 'checkout'; $templateData = array( diff --git a/views/admin/registrations/eventEditLevels.html b/views/admin/registrations/eventEditLevels.html old mode 100644 new mode 100755 index d5b910f..8bb9699 --- a/views/admin/registrations/eventEditLevels.html +++ b/views/admin/registrations/eventEditLevels.html @@ -98,7 +98,7 @@ Start Days - Number of days before {/literal}terms.reg_term_event}{literal} that this rate starts. Must not overlap other rates. + Number of days before {/literal}{$terms.reg_term_event}{literal} that this rate starts. Must not overlap other rates. diff --git a/views/admin/registrations/requestDashboard.html b/views/admin/registrations/requestDashboard.html old mode 100644 new mode 100755 index bb5d665..69d33e3 --- a/views/admin/registrations/requestDashboard.html +++ b/views/admin/registrations/requestDashboard.html @@ -132,7 +132,7 @@
{if $cart.request.notes != ''}
- {$cart.request.notes} + {$cart.request.notes|nl2br}
{else} (no notes entered)