I am trying my hardest to add this feature to my admin. I need to have my product list sortable by manufacturer. I am hacking my way thru the code to make this happen. I am fairly new to PHP. I have been working with classic ASP for 15 years.
I am using another similar module as a guide, the mod (admin_product_filter_by_category) sorts the admin's product list by category. I need it by manufacurer (admin_product_filter_by_category http://www.opencart.com/index.php?route ... ion_id=439 )
So I have tried to make the similar changes in related files to get a combo box of the manufactures on the product list page.
I am so close to getting it to work, but my lack of knowledge and understanding of some of the code, keeps me from finishing.
Can someone assist me?
I have one major issue at the moment, if I can figure this out, I think I can finish this off.
file: admin/model/catalog/product.php , approximate line: 377
In the function getList I am trying to get the list of manufacrurers.
Here is the code where I am getting the errors:
Code: Select all
$this->load->model('catalog/manufacturer');
$this->data['manufacturer'] = this->model_catalog_manufacturer->getManufacturers();
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in D:\Inetpub\wwwroot\2010\opencart_obc\admin\controller\catalog\product.php on line 377
Line 377 is the 2nd line.
Thanks for the help.