Hi,
I have a question again :) Product, Option, Tag if I put a longer tag, after saving it truncates it, do you have any idea where I can lengthen the number of characters?
Hello,
Firstly it is necessary to change databse settings.
log in to your phpmyadmin, go to table ps_tag
it has 3 fields
We are interested in the last one "name" field. By default this field definition is
Second thing is a modification of prestashop core.
open file: /classes/Tag.php
change line:
to:
Done!
from now your shop should not "cut" the tag with more than 32 characters. It will accept up to 250 characters :)
Firstly it is necessary to change databse settings.
log in to your phpmyadmin, go to table ps_tag
it has 3 fields
- id_tag
- id_lang
- name
We are interested in the last one "name" field. By default this field definition is
VARCHAR 32
, change it to VARCHAR 250
Second thing is a modification of prestashop core.
open file: /classes/Tag.php
change line:
'name' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 32),
to:
'name' => array('type' => self::TYPE_STRING, 'validate' => 'isGenericName', 'required' => true, 'size' => 250),
Done!
from now your shop should not "cut" the tag with more than 32 characters. It will accept up to 250 characters :)
will it work for 1.6?
ReplyDelete