From 9866d3bdc70ead83e4f0ea39e41cd4c1aa76f277 Mon Sep 17 00:00:00 2001 From: Chuck Scott Date: Tue, 5 Dec 2017 10:31:07 -0500 Subject: [PATCH] Added custom fields UID generation to checkout.php and removed some spaceholders for custom fields in checkout. --- models/front/registrations/checkout.php | 3 ++- views/front/registrations/checkout.html | 18 ++++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) 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}
-- 2.17.1