I have the need to filter items listed in each category by manufacturer. I simply need another option similar to the sort by drop down menu.
Is this possible?
Thanks,
Gary
Yes, I think you could do this in the controller/product/category.php file... add another sort to the data[sort] array.
Then in the model/catalog/product.php in the getProductbyId function you would add the manufacturer to the $sort_data = array ...
I haven't tried it, so I don't know if there are any conflicts there. They seem to be the two files in question though.
Then in the model/catalog/product.php in the getProductbyId function you would add the manufacturer to the $sort_data = array ...
I haven't tried it, so I don't know if there are any conflicts there. They seem to be the two files in question though.
http://www.alreadymade.com
Follow me on twitter.com/alreadymade
If I am reading your message right that would add the manufacturer to the existing sort by on the category webpage. If that is the case it is almost what I want, however I'd like to have another drop down menu next to sort by: that read filter by: manfacturer so the customer could click on that menu and filter based on the manufactuers matching the products listed in that category.
This is pretty above me so if anyone can do this I would gladly pay to have this modification completed.
Thanks,
Gary
This is pretty above me so if anyone can do this I would gladly pay to have this modification completed.
Thanks,
Gary
readyman wrote:Yes, I think you could do this in the controller/product/category.php file... add another sort to the data[sort] array.
Then in the model/catalog/product.php in the getProductbyId function you would add the manufacturer to the $sort_data = array ...
I haven't tried it, so I don't know if there are any conflicts there. They seem to be the two files in question though.
Dear readyman,
I'm working on this part following your suggested method.
Now the dropdown shows:
Then I tried to get the manufacturer list to the dropdown:Name A-Z
Name Z-A
Price Low > High
Price High < Low
Rating Highest
Rating Lowest
Manufacturer
Code: Select all
$manufacturers = $this->model_catalog_category->getManufacturer($category_id);
foreach ($manufacturers as $result) {
$this->data['sorts'][] = array(
//'text' => $this->language->get('text_rating_asc'),
'text' => $result['name'],
'value' => 'pd.name-DESC',
'href' => $this->model_tool_seo_url->rewrite($this->url->http('product/category&path=' . $this->request->get['path'] . '&sort=manufacturer_id&order=DESC&manufacturer_id='.$result['manufacturer_id']))
);
}
However, I wish to only display the products under eg Manufacturer Dell when The Manufacturer Option is selected. Where should I edit the code?Name A-Z
Name Z-A
Price Low > High
Price High < Low
Rating Highest
Rating Lowest
HP
Dell
Samsung
Please advice... Thank you!
how you have done that, i cant get it ?Name A-Z
Name Z-A
Price Low > High
Price High < Low
Rating Highest
Rating Lowest
HP
Dell
Samsung
Who is online
Users browsing this forum: No registered users and 25 guests