Jump to content

use of id_supplier and supplier_reference variables in BO > Products


Recommended Posts

Hello,

 

I created an extra column for the BO products list, supplier_reference by adding in controllers/admin/AdminProductsController.php

 

   	 $this->fields_list['supplier_reference'] = array(
		'title' => $this->l('Supplier Reference'),
		'align' => 'center',
		'width' => 80
	);	   

 

Now I need to change the link for the each row

<td onclick="document.location = 'index.php?controller=adminproducts&id_product=5&updateproduct&token=e24b98710ec64615134fc62fa597b250'" class="pointer										 center">

 

to something like (sorry for the possibly incorrect coding)

<td onclick="document.location = '{if $id_supplier == 1}'http;//www.supplier-1.com/'{$supplier_reference}'{/if}'" class="pointer center">

 

The only problem is that none of the variables for suppliers or references seems to work in admin\themes\default\template\helpers\list/list_content.tpl.

 

Does somebody know how to get the variables to work in this file (assuming it is the correct file for doing this)?

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