需要 4 位邮政编码

问题描述 投票:0回答:0

我必须使邮政编码字段接受至少 4 位数字的输入。我使用 opencart 4 和日记主题。

我尝试修改 /public_html/catalog/controller/checkout/shipping_address.php 中的以下行

if ($country_info && $country_info['postcode_required'] && (oc_strlen($this->request->post['postcode']) < 4 || oc_strlen($this->request->post['postcode']) > 10)) {
                $json['error']['postcode'] = $this->language->get('error_postcode');
            }

并在相应的目录中查看 heme\journal3 emplat

php opencart
© www.soinside.com 2019 - 2024. All rights reserved.