iluvolu Posted June 20 Share Posted June 20 Hi How is possible to add additional column (EAN13) in Catalog > Product in Back Office on Prestashop 8? Thank you any help Link to comment Share on other sites More sharing options...
endriu107 Posted June 20 Share Posted June 20 Yes it is but you must extend controllers or better use module like that https://web4ever.pl/moduly/23-manager-kolumn-w-panelu.html Link to comment Share on other sites More sharing options...
Knowband Plugins Posted June 25 Share Posted June 25 Hi, 1. In the src/Core/Grid/Definition/Factory/ProductGridDefinitionFactory.php, add below code in the function getColumns() before the return statement- $columns->addAfter( 'reference', (new DataColumn('ean13')) ->setName($this->trans('EAN13', [], 'Admin.Global')) ->setOptions([ 'field' => 'ean13', ]) ); 2. In the file src\Core\Grid\Query\ProductQueryBuilder.php, in the function getSearchQueryBuilder() add below code at the end of the $qb variable definition. ->addSelect('p.`ean13`') Eg:- $qb ->addSelect('p.`id_tax_rules_group`') ->addSelect('p.`ean13`') ; 3. In the file src\PrestaShopBundle\Resources\views\Admin\Product\CatalogPage\Lists\products_table.html.twig, add below code in the container <tr class="column-headers"> <th scope="col" style="width: 9%"> {{ 'EAN13'|trans({}, 'Admin.Global') }} </th> After making these changes, the EAN13 column will be visible in the Product Listing. Screenshot:- https://prnt.sc/9jnZ3viqxsAq Please confirm if these changes are working fine so that we can further provide the changes to show the column values also. Regards. Link to comment Share on other sites More sharing options...
WebDesk Solution Posted June 28 Share Posted June 28 @iluvolu We have reviewed your issue and, based on your requirements, have added a new module. Please install this module, which will display a new column in the product listing in the back office. product_extra_info.zip 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