Removed test code from regCartSupport.php
authorChuck Scott <cscott@gaslightmedia.com>
Thu, 11 Jan 2018 22:09:26 +0000 (17:09 -0500)
committerChuck Scott <cscott@gaslightmedia.com>
Thu, 11 Jan 2018 22:09:26 +0000 (17:09 -0500)
classes/regCartSupport.php

index 4a48686..5a6a44c 100644 (file)
@@ -667,13 +667,10 @@ class GlmRegCartSupport
                         // Check for event payment code
                         $this->cart['events'][$eventKey]['payCodes'] = array();
                         if ($this->cart['payCodes']) {
-echo "1";
                             foreach ($this->cart['payCodes'] as $code) {
-echo "2";
                                 $thisDiscount = 0;
                                 if ($code['ref_type'] == $this->config['pay_code_ref_type_numb']['Event'] &&
                                     $code['ref_dest'] == $event['reg_event']) {
-echo "3";
                                     switch ($code['code_type']) {
                                         case 'Free':
                                             $thisDiscount = $eventCharges;
@@ -697,7 +694,7 @@ echo "3";
 
                             }
                         }
-echo "<pre>".print_r($this->cart['events'][$eventKey]['payCodes'],1)."</pre>";
+
                         // Save totals for this event
                         $this->cart['events'][$eventKey]['eventRegistrants']    = $eventRegistrants;
                         $this->cart['events'][$eventKey]['eventCharges']        = $eventCharges;