Added custom fields UID generation to checkout.php and removed some spaceholders...
authorChuck Scott <cscott@gaslightmedia.com>
Tue, 5 Dec 2017 15:31:07 +0000 (10:31 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Tue, 5 Dec 2017 15:31:07 +0000 (10:31 -0500)
models/front/registrations/checkout.php
views/front/registrations/checkout.html

index 2effa3e..5fc0e37 100644 (file)
@@ -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 "<pre>".print_r($templateData,1)."</pre>";
index 821a3a6..25a7727 100644 (file)
                 </div>
   {/if} {* / total charges > 0 *}
             </div>
+    {if apply_filters('glm-members-customfields-active', false)}
+            <div class="glm-reg-row">
+                <div class="glm-small-12 glm-columns">
+                    <h4>Additional information we need to collect</h4>
+      {foreach $cart.events as $event}
+                    <div class="glm-reg-row">
+                        <div class="glm-large-12 glm-columns glm-reg-nowrap">
+                            <h5>{$event.event_name}:</h5>
+                             {apply_filters('glm-members-customfields-form-display', $eventCustomFieldsUid.{$event.id}, {$cart.id}, false)}
+                             
+                             GLM_MEMBERS_REGISTRATIONS_PLUGIN_SLUG.'-customfields-reg-event-edit-'.$regEventID
+                             
+                        </div>
+                    </div>
+      {/foreach}
+                </div>
+            </div>
+    {/if}
             <div class="glm-reg-row">
                 <div class="glm-small-12 glm-columns">
                     <div class="glm-reg-row">