Jump to content

Show supplier names instead id


Recommended Posts

Hi again!


In the list view, i would like show supplier names instead the id. The view is generated automatically. How can I change it?


The code i have in the renderList option is:

public function renderList()
        // Adds an Edit button for each result
        // Adds a Delete button for each result
	$this->simple_header = false;
        return parent::renderList();

and the field list is the next one:

$this->fields_list = array(
            'id_product_supplier' => array('title' => $this->l('ID Supplier'), 'align' => 'center', 'class' => 'fixed-width-xs'),

If i want show the name of the supplier instead the Id, and have the option to filter for suppliers in the list...

What can i do?



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