Fórum OpenCart Brasil

Por um e-commerce livre, confiável e profissional

Suporte geral sobre problemas técnicos para OpenCart v2.x.
#71672
Pessoal, nao consigo acessar a aba clientes no opencart 2.2.0.0

Segue o erro:

Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in /home/saldao/public_html/admin/controller/customer/customer.php on line 1105

Desde ja agradeço :)
#71676
Abra o arquivo admin/controller/customer/customer.php > procure
Código: Selecionar todos
foreach ($custom_fields as $custom_field) {
               if (($custom_field['location'] == 'address') && $custom_field['required'] && empty($value['custom_field'][$custom_field['custom_field_id']])) {
                  $this->error['address'][$key]['custom_field'][$custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field'), $custom_field['name']);
               } 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'])))) {
                        $this->error['address'][$key]['custom_field'][$custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field_validate'), $custom_field['name']);
                    }
substitua por
Código: Selecionar todos
foreach ($custom_fields as $custom_field) {
               if (($custom_field['location'] == 'address') && $custom_field['required'] && empty($value['custom_field'][$custom_field['custom_field_id']])) {
                  $this->error['address'][$key]['custom_field'][$custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field'), $custom_field['name']);
               } 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'])))) {
                        $this->error['address'][$key]['custom_field'][$custom_field['custom_field_id']] = sprintf($this->language->get('error_custom_field_validate'), $custom_field['name']);
                    }
#74908
Bom... aqui não resolveu..

Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in /home/****/www/****/system/storage/modification/admin/controller/customer/customer.php on line 1199

Já fui atrás das correções e nada de funcionar.
#74909
LuisMarcelo escreveu: 23 Ago 2017, 20:37 Bom... aqui não resolveu..

Parse error: syntax error, unexpected '&&' (T_BOOLEAN_AND), expecting ')' in /home/****/www/****/system/storage/modification/admin/controller/customer/customer.php on line 1199

Já fui atrás das correções e nada de funcionar.

Acesse o painel de admin > Extensions > Modification > Refresh.

Caso não funcione substitua pelo arquivo https://github.com/opencart/opencart/bl ... stomer.php e refaça o processo anterior.