From: Chuck Scott Date: Tue, 5 Dec 2017 15:31:07 +0000 (-0500) Subject: Added custom fields UID generation to checkout.php and removed some spaceholders... X-Git-Tag: v1.0.0^2~232 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=9866d3bdc70ead83e4f0ea39e41cd4c1aa76f277;p=WP-Plugins%2Fglm-member-db-registrations.git Added custom fields UID generation to checkout.php and removed some spaceholders for custom fields in checkout. --- diff --git a/models/front/registrations/checkout.php b/models/front/registrations/checkout.php index 2effa3e..5fc0e37 100644 --- a/models/front/registrations/checkout.php +++ b/models/front/registrations/checkout.php @@ -291,7 +291,8 @@ class GlmMembersFront_registrations_checkout extends GlmRegCartSupport 'payMethodsNumb' => $this->config['payment_method_numb'], 'misc' => $misc, 'checkoutPageText' => $misc['checkout_page_text'], - 'globalTerms' => $misc['reg_terms'] + 'globalTerms' => $misc['reg_terms'], + 'eventCustomFieldsUid' => GLM_MEMBERS_REGISTRATIONS_PLUGIN_SLUG.'-customfields-reg-event-edit-' ); // echo "
".print_r($templateData,1)."
"; diff --git a/views/front/registrations/checkout.html b/views/front/registrations/checkout.html index 821a3a6..25a7727 100644 --- a/views/front/registrations/checkout.html +++ b/views/front/registrations/checkout.html @@ -279,6 +279,24 @@ {/if} {* / total charges > 0 *} + {if apply_filters('glm-members-customfields-active', false)} +
+
+

Additional information we need to collect

+ {foreach $cart.events as $event} +
+
+
{$event.event_name}:
+ {apply_filters('glm-members-customfields-form-display', $eventCustomFieldsUid.{$event.id}, {$cart.id}, false)} + + GLM_MEMBERS_REGISTRATIONS_PLUGIN_SLUG.'-customfields-reg-event-edit-'.$regEventID + +
+
+ {/foreach} +
+
+ {/if}