Jump to content

How to add product warehouse location column to backoffice product list


Recommended Posts

Hello,
 
In the backoffice I want to add a column for product warehouse location to the products list. In  controllers/admin/AdminProductsController.php I added the line
 
$this->fields_list['location'] = array(
'title' => $this->l('Location'),
'width' => 'auto',
);

but it doesn't work

 

the collumn is empty 

 

location-prestashop.jpg

 

any help?

Link to comment
Share on other sites

  • 2 months later...
  • 3 months later...

You need to add:

            $this->fields_list['location'] = array(
            'title' => $this->l('Location'),
            'width' => 30
        );

 

before this code:

        $this->fields_list['price'] = array(
            'title' => $this->l('Base price'),
            'width' => 90,
            'type' => 'price',
            'align' => 'right',
            'filter_key' => 'a!price'
        );

 

in the file AdminProductsController.php and should work.

Link to comment
Share on other sites

  • 11 months later...
  • 1 year later...
  • 3 years later...

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...