Jump to content

[v1.6.1.17] Add courier column to back office product list


Nando@100ASA

Recommended Posts

Like the title, is there a way to add the name of the courier into the list of product shown in the back office? Long time ago I added the last update column this way, into the adminproductcontroller.php file, #231:

	$this->fields_list['LastUpdate'] = array(
            'title' => $this->l('Aggiornato il'),
            'align' => 'text-left',
            'filter_key' => 'a!date_upd'
        );

The main problem is that the courier associated with the product comes from the advanced stock management settings (not always tho), that is the one associated to the warehouse of the product.

So, basically my setup is this: Product => ASM ON on it => associated warehouse => associated courier = product courier. I'd have to get the warhouse associated to the products, than get its associated courier and then show it as product's courier in the new column. Also, I want to show it for products with no ASM as well, so i guess i'd need a sort of if statement somewhere... Any help?

Link to comment
Share on other sites

  • 2 weeks 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...