update emails
authorSteve Sutton <steve@gaslightmedia.com>
Thu, 5 Mar 2015 18:21:15 +0000 (13:21 -0500)
committerSteve Sutton <steve@gaslightmedia.com>
Thu, 5 Mar 2015 18:21:15 +0000 (13:21 -0500)
remove credit card info

Toolkit/Contacts/ContactUs.php

index caf773b..60a4033 100755 (executable)
@@ -803,6 +803,30 @@ class Toolkit_Contacts_ContactUs
                 unset($interest);
             }
         }
+        unset(
+            $page->formData['cc_num'],
+            $page->formData['cc_type'],
+            $page->formData['cc_exp'],
+            $page->formData['cc_cvv'],
+            $page->formData['captcha_rmv']
+        );
+
+        if ($this->elementExists('pass_type')) {
+            $passType = filter_var($_POST['pass_type'], FILTER_VALIDATE_INT);
+            switch ($passType) {
+            case "89":
+                $page->formData['pass_type']['element'] = '$89.00 Internet Special';
+                break;
+            case "75":
+                $page->formData['pass_type']['element'] = '$75.00 AAA Member Special';
+                break;
+            default:
+                $page->formData['pass_type']['element'] = $passType;
+                break;
+            }
+            var_dump($page->formData['pass_type']);
+            exit;
+        }
 
         /* Boolean types */
         if ($this->elementExists('mail_ok')) {
@@ -1181,7 +1205,7 @@ class Toolkit_Contacts_ContactUs
         }
         return $output;
     }
-   
+
     /**
      * Return the existing contact/customer contact_type
      *