Page 1 of 1

Solved: Opencart version 2200 have Parse syntax error

Posted: Tue Apr 19, 2016 2:10 pm
by dswtpl
Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in D:\wamp\www\vipul\oc2200\admin\controller\customer\customer.php on line 1105

Using following code to replace else if part - line:1105

Code: Select all

elseif (($custom_field['type'] == 'text' && !empty($custom_field['validation']) && $custom_field['location'] == 'address') && !filter_var($value['custom_field'][$custom_field['custom_field_id']], FILTER_VALIDATE_REGEXP, array('options' => array('regexp' => $custom_field['validation'])))) {

Re: Solved: Opencart version 2200 have Parse syntax error

Posted: Tue Apr 19, 2016 3:30 pm
by Randem
Yes, the all knowing google has the solution many times - https://www.google.com/search?q=custome ... encart.com