/var/www/opencart/admin/controller/catalog
category.php 商品目錄
attribute.php 商品屬性
attribute_group.php 屬性分類
將下列3~64字元限制改成
foreach ($this->request->post['attribute_description'] as $language_id => $value) {
if ((utf8_strlen($value['name']) < 3) || (utf8_strlen($value['name']) > 64)) {
$this->error['name'][$language_id] = $this->language->get('error_name');
}
50字元以下
foreach ($this->request->post['category_description'] as $language_id => $value) {
if (utf8_strlen($value['name']) > 50) {
$this->error['name'][$language_id] = $this->language->get('error_name');
}
沒有留言:
張貼留言