sipdorus Posted January 18, 2019 Share Posted January 18, 2019 hello, I created cath1name field on ps_category_lang table and copied data from name field to this field. I want to show long version of category name on category page. On category.tpl file I changed {$category->name|escape:'htmlall':'UTF-8'} code to {$category->cath1name|escape:'htmlall':'UTF-8'}. but its not working. any idea? Link to comment Share on other sites More sharing options...
tdsoft Posted January 21, 2019 Share Posted January 21, 2019 You must open file: classes\Category.php Add your NEW field to public static $definition after /* Lang fields */ Example 'name' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isCatalogName', 'required' => true, 'size' => 128), Change it to 'name' => array('type' => self::TYPE_STRING, 'lang' => true, 'validate' => 'isCatalogName', 'required' => true, 'size' => 128), 'cath1name' => array('type' => self::TYPE_STRING, 'lang' => true, 'required' => true, 'size' => 128), Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now