outlet.ee Posted October 22, 2012 Share Posted October 22, 2012 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 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