CMS平台 opencart

Opencart2.2.0.0前端客户地址错误修复

情景:客户登陆之后,在账户右侧选择Address book链接,发现啥都干不了,网页一片空白,没有报错(至少我这里状况是这样)。如果你也有这样的情况,请修改catalog/controller/account/address.php第522行为如下:

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