Jump to content

New category name field on ps_category_lang table is not showing up


sipdorus

Recommended Posts

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...