Post by irimiab » Tue Oct 02, 2007 6:13 pm

I got this to work:
This is a filtering combo-box with the manufacturers for products in each category.
A combo-box with the manufacturers appears bellow the "Page" line. When selecting the manufacturer, only the corresponding products are shown. Also, only the manufacturers for the products in the current category appear.

The files attached are as follows:
- category.php - to be uploaded in "catalog/controller/"
- category.tpl - to be uploaded in "content/" folder of your template's folder

Also, in the language file, the following entries should be defined:
- 'filter_manufacturers' - defines the string that appears before the combo-box
- 'all' - defines the string for the option "--- no filter ---" (that's all manufacturers)

This update also eliminates a bug by resetting the page setting to the first page when changing the category.
Example: http://www.pda-shop.ro - only in romanian, but click on the first category to see the filtering option.

I am now working at extending the filtering option by adding different categories for each product and using these categories as filtering options (just like the manufacturer).

Hope you like this update. Good luck!

Newbie

Posts

Joined
Tue Oct 02, 2007 5:56 pm

Post by tchemis » Tue Oct 02, 2007 10:02 pm

Very nice, I will give this a try today, thank you for the contribution. You might want to consider publishing this on the main website, in the contributions section if You havent done so already.

http://www.opencart.com/index.php?contr ... ntribution

Active Member

Posts

Joined
Tue Aug 21, 2007 9:23 am

Post by irimiab » Tue Oct 02, 2007 10:37 pm

Did that, thank you!

Newbie

Posts

Joined
Tue Oct 02, 2007 5:56 pm

Post by Gavin Hall » Sun Dec 02, 2007 11:58 pm

Thanks for the contribution - im now trying to modify it slightly so that the filtering can be made via a text link (querystring value) rather than the combo box. Is this possible? One look at controllers/category.php and im lost.

Thanks in advance for any advice
GH

Gavin Hall
Web Consultant


Newbie

Posts

Joined
Sun Dec 02, 2007 11:52 pm

Post by hm2k » Thu Mar 13, 2008 12:48 am

Has this been since replaced by the "Filtering module with product details" module?

http://forum.opencart.com/index.php/topic,500.0.html

UK Web Hosting


User avatar
Global Moderator

Posts

Joined
Tue Mar 11, 2008 9:06 am
Location - UK

Post by Alexx » Thu Apr 03, 2008 11:45 pm

i've got some problems with the filter ... after i install it it moves all the data in the left, background is missing, etc.

how can i make it work?

le: problem partialy resolved by replacing default.css & layout.tpl with the defaults one's. But, i have no products show in category and no filter ???

Attachments

???
untitled.JPG
Last edited by Alexx on Fri Apr 04, 2008 3:01 am, edited 1 time in total.

sorry for my english :D


Newbie

Posts

Joined
Thu Jan 17, 2008 8:16 am

Post by bruce » Fri Apr 04, 2008 8:54 am

Have a look at the html of the page and you will see that the link to the stylesheet is invalid. Fix that problem at the source and you are done.

Active Member

Posts

Joined
Wed Dec 12, 2007 2:26 pm
Who is online

Users browsing this forum: No registered users and 3 guests