Zen Cart Logo
Forums / Setting Up Categories, Products, Attributes / Filter by attributes -- exactly like the manufacturer filter

Filter by attributes -- exactly like the manufacturer filter

Views: 4,800

Results 1 to 7 of 7
25 Aug 2009, 10:13 AM
#1
goldlion avatar

goldlion

New Zenner

Join Date:
Dec 2008
Posts:
23
Plugin Contributions:
0

Filter by attributes -- exactly like the manufacturer filter

Good day to you all,

I (and may others) am looking for a way to duplicate the manufacturer filter and adapt the code to make it possible to filter the product listing results by atttributes. In other words I want dropdowns above the product listings based on my attributes.

I anybody has a (partial) answer you can help many shop owners. Let's make this the last thread on this topic!

Greetings,
Paul
https://www.goldlion.eu

======================
Searching the forum/web I found this so far:

26 Aug 2009, 7:44 PM
#2
minitabguy avatar

minitabguy

New Zenner

Join Date:
Aug 2009
Posts:
2
Plugin Contributions:
0

Re: Filter by attributes -- exactly like the manufacturer filter

Hi, I'm looking to do exactly the same, will monitor the thread and hope it gets answered

27 Aug 2009, 8:39 PM
#3
drrogera avatar

drrogera

New Zenner

Join Date:
Aug 2009
Posts:
38
Plugin Contributions:
0

Re: Filter by attributes -- exactly like the manufacturer filter

For our product type (antibodies for research and diagnostics) we absolutely needed to have an attribute search that was able to "filter" on more than one attribute at the same time. I reviewed all of the threads and found the four mentioned by Goldlion as well as the nearly complete offering from Yellow1912 (he showed me a demo which is nice but not what I wanted) which lets you check off attributes that you want. This was too limiting since we may have 10 attribute options with up to 25 values possible for each!

We ended up paying the $50 for xAttribSearch because it looked like the one I could modify the best. I did not like that the "product Filter Plugin" because you could not limit which attributes to show. (Now that I have worked with xAttrib I know how I could fix that.) I also did not like that you could search but not "buy" or add items listed directly to the cart from the returned list.

Due to the fact that I had never used PhP before, I thought the modification might be out of my reach but I am a gambler when it comes to this stuff. Since I was one of those who actually rode the very front of the ecommerce wave (we made a system from the ground up using Cold Fusion in 1996) I decided I could give this a try.

One defect I found with xAttrib, which I hope they fix, is that you see the ability to add multiple items to the cart but it does not work. I have given them the fix but if they don't implement it let me just give a hint: uncomment a <!--</form> --> and things start to work much better.

You can see my modification on my test site http://aqsp.iqualex.com

Please note that the products are limited 106 out of out 5000 or so, and many of the properties are incorrect and were just tacked on random items so that I could test the site.

Since the mod is not free I do not believe I can just give away my implementation nor the changes to it as that would include giving away their product.

One note about filtering - the first version I made was an AND screening. That is everything the person selected had to be in the attributes of the product or it was excluded. This tended to give a VERY short list and hid many products that might have also been useful or would be appropriate alternatives to the user. So I changed it to a series of OR screens with the results listed in descending order of "best match" first. That is, # of attributes matching out of # of attributes specified. This gives us a better "cross-sell" and ability to demonstrate what we have to offer. I did manage to carry the attributes forward so the selects are retained for refinement. I was not able to use category as that convoluted query morass is more than I wanted to tackle.

Improvements I am working on:

  1. Headers to separate the 100% matches from the rest
  • Limit the list so only the 100% matches and the next 50 show up
  • Ability to pass the search parameters to the "next page" which I currently cannot do - so that is off
  • Tying the attribute search to the text search so that the user can narrow the search after either starting method
  • Ajax so that I can tell the user how result set size will be

I realize that if this was an Open Source project it would get done faster but, alas, it is not my product to give away. Still, $50 was not much to get the headstart that xAttribSearch gave me.

Ok, balls in our court Gold.

Roger

Goldlion:

Good day to you all,

I (and may others) am looking for a way to duplicate the manufacturer filter and adapt the code to make it possible to filter the product listing results by attributes. In other words I want dropdowns above the product listings based on my attributes.

I anybody has a (partial) answer you can help many shop owners. Let's make this the last thread on this topic!

Greetings,
Paul
https://www.goldlion.eu

======================
Searching the forum/web I found this so far:

15 Sep 2009, 11:41 PM
#4
avielf avatar

avielf

Zen Follower

Join Date:
Aug 2006
Posts:
109
Plugin Contributions:
0

Re: Filter by attributes -- exactly like the manufacturer filter

How do i get it to show up i bought the mod but it wont show up and takes all my cats away etc...

you can see here http://wholesaleautopartswarehouses.ca/

what am i supposed to change?

16 Sep 2009, 5:29 AM
#5
drrogera avatar

drrogera

New Zenner

Join Date:
Aug 2009
Posts:
38
Plugin Contributions:
0

Re: Filter by attributes -- exactly like the manufacturer filter

I am by no means a Zen Cart expert but I learned a lot while working with this mod to make it work the way I wanted to.

My first observation upon visiting your site is that it looks like you are trying to run the mod in the center column and not on the right or left. This may cause some trouble.

Before I go any further - I don't know if this was fixed in the version you downloaded but I found that there was a closing form tag that had been inadvertently commented out during the development. When I fixed that, it started working much better. Do a search using the Developer tool and look for <!-- </FORM> -->

With the above fix, it should work just fine for all categories that you have enabled in the Catalog/Options Name Manager. All categories disabled there do not show up. As I recall, I had a little trouble getting that to respond initially. I think I had to go into MySQL and manually add a value to all of the existing Options. If you do not know how to run an UPDATE query I believe there is a way to manually put a 1 or 0 in the field.

My next comments would involve making sure you installed the ALL of the appropriate changes in your override or your template directories. But I am assuming for now, you know how to do that stuff.

Let me know if you still have trouble. I'll help if I can.

AvieLF:

How do i get it to show up i bought the mod but it wont show up and takes all my cats away etc...

you can see here http://wholesaleautopartswarehouses.ca/

what am i supposed to change?

13 Jan 2010, 11:19 PM
#6
runik avatar

runik

New Zenner

Join Date:
Jan 2010
Posts:
1
Plugin Contributions:
0

Re: Filter by attributes -- exactly like the manufacturer filter

Dear all

Sharing the same problem I'm trying to modify the manufacturer filter as I need just one drop down filter. Here is my question: Can I turn the manufacturer filter into a two-language one (by default there is only one entry for all languages)...

many thanks & best,

RUNIK

16 Jan 2010, 2:59 PM
#7
juneloweelyn avatar

juneloweelyn

New Zenner

Join Date:
Jan 2009
Posts:
70
Plugin Contributions:
0

Re: Filter by attributes -- exactly like the manufacturer filter

Hello All

I wanna have an additional filter for my website in which i can filter the items based on quantity.

Zen cart 1.3.8a only has
"from old to new"
"new to old"
"price high to low"
etc..

But i wish to add an additional filter that sort the products based on quantity. (product with highest quantity would appear first in the catalog, followed by sold out items) do u have any idea i can do it?

I will open a new thread for this once i have gotten the solution.

I have been asking for help for few times, it seems that noone could help.

Hope u can help me :)

Thank you SO SO MUCH!!!! i really glad that u replied :)