Post by mayee » Sun Aug 28, 2011 6:46 pm

請問,
分類名稱限制最少 3 字元,最多 32 字元的限制可以改成最少 0 字元,最多 32 字元嗎 ?

系統提示:
分類名稱必須在3到32個字符之間!

謝謝,煩請各位網友幫忙囉 ^_^

Newbie

Posts

Joined
Sun Aug 28, 2011 6:44 pm

Post by dingsword » Wed Aug 31, 2011 4:34 pm

到admin/controller/catalog/category.php,找到以下内容


foreach ($this->request->post['category_description'] as $language_id => $value) {
if ((strlen(utf8_decode($value['name'])) < 2) || (strlen(utf8_decode($value['name'])) > 32)) {
$this->error['name'][$language_id] = $this->language->get('error_name');
}
}

看到这个
if ((strlen(utf8_decode($value['name'])) < 2) || (strlen(utf8_decode($value['name'])) > 32)) {

修改成

if (strlen(utf8_decode($value['name'])) > 32) {

Welcome to osCommerce Asia! Our professional development team provides a complete solution of excellent and first-class osCommerce-based web site for your e-commerce business.We offer a variety of services including the Template Customization, customized module development, search engine optimization, eCommerce site data maintenance and technical support, and eCommerce solutions and consulting.


New member

Posts

Joined
Sat Dec 05, 2009 10:25 pm
Who is online

Users browsing this forum: No registered users and 6 guests