title: Validation Opencart
body: <p>i want to add php phone number validation in opencart code sample is given below</p>
  
  <pre><code>    if(!filter_var($customer_email, FILTER_VALIDATE_EMAIL)) {
              $errors[$pos++] = 'Email is not valid.';
          }
  
          if($customer_mobile=='') {
              $errors[$pos++] = 'Please enter your Mobile.';
          } /*elseif (strlen($customer_mobile) &lt; 11 || !is_numeric($this-&gt;request-&gt;post['cell_number'])){
              $errors[$pos++] = 'Mobile number should be 7 digits.';
          }*/
  </code></pre>