martin_88 Posted October 2, 2019 Share Posted October 2, 2019 Got this peace of code but I can't display the Category Name ... 1.7.6 parent::__construct(); $this->bootstrap = true; // use Bootstrap CSS $this->table = 'referencegenerator'; // SQL table name, will be prefixed with _DB_PREFIX_ $this->identifier = 'id'; // SQL column to be used as primary key $this->className = 'Shortcode'; // PHP class name $this->allow_export = true; // allow export in CSV, XLS.. $this->_join .= ' LEFT JOIN `'._DB_PREFIX_.'category_lang` cl ON (cl.`id_category` = `id_cat` AND cl.`id_lang` = '.(int)$this->context->language->id.')'; $this->_defaultOrderBy = 'id'; // the table alias is always `a` $this->_defaultOrderWay = 'DESC'; $this->fields_list = [ 'id' => ['title' => 'ID','class' => 'fixed-width-xs'], 'id_cat' => ['title' => 'Id Cat'], 'name'=> ['title' => 'Cat Name'], 'shortcode' => ['title' => 'Shortcode'], ]; 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