Try the Demo

Magento Forum

   
Can’t filter by configurable product’s attributes
 
danieln
Sr. Member
 
Avatar
Total Posts:  131
Joined:  2007-11-08
Mainz, Germany
 

Hello,

I’m having a issue here with configurable products and flitered / layered navigation.

I have a t-shirt as a configurable product with a custom attribute ‘color’. Now I have different sizes. Because custom options don’t work because of their lack of inventory count, I add a couple associated products. those ones have different ‘size’ attributes. Now, both color and size are visible to the frontend and filterable. Only color shows up. If I make each associated product showing up in the frontend, I can also filter by size. but this totally misses the point of having a configurable product.

Is there a known way (except for writing my own block) to make this work? If not, I would like to add this as a feature request if this cannot be handled with a improved version of custom options.

Looking forward to replies!

later,
Daniel

 Signature 

netz98.de - new media gmbh.

 
Magento Community Magento Community
Magento Community
Magento Community
 
zep007
Sr. Member
 
Avatar
Total Posts:  131
Joined:  2008-05-15
Connecticut
 

You could create another attribute for the product, assign it and sort and filter by that.  I think the issue is with attributes being used to configure a product.  I have been adding a multi select in the backend then selecting the options that can be achieved with the configurable product then the filtering works fine.

Is that what you mean?

 
Magento Community Magento Community
Magento Community
Magento Community
 
danieln
Sr. Member
 
Avatar
Total Posts:  131
Joined:  2007-11-08
Mainz, Germany
 

Hey zep007,

thanks for your fast reply!

Do I create another attribute for the configurable product or for the simple product? If you add it to the conf. product, does it also allow showing the total of all products with a option of that attribute?

-daniel

 Signature 

netz98.de - new media gmbh.

 
Magento Community Magento Community
Magento Community
Magento Community
 
danieln
Sr. Member
 
Avatar
Total Posts:  131
Joined:  2007-11-08
Mainz, Germany
 

Hello again,

I’m making some progress here smile

I found the following: In Mage/Catalog/Model/Layer/Filter/Attribute.php is a constant defined which equals 1. If I change it to 0, my sizes are showing up. Problem is now how do I make it actually working. If I select a size, page loads again and tells me it could not find any products. The size attribute is searchable and filterable.

Any ideas?

-Daniel

 Signature 

netz98.de - new media gmbh.

 
Magento Community Magento Community
Magento Community
Magento Community
 
danieln
Sr. Member
 
Avatar
Total Posts:  131
Joined:  2007-11-08
Mainz, Germany
 

ok, the real problem is caused in the same file by this code:

$optionsCount Mage::getSingleton('catalogindex/attribute')->getCount($attribute$this->_getBaseCollectionSql());

It should return the count of available products related to this attribute under current category scope - but it doesn’t.

 Signature 

netz98.de - new media gmbh.

 
Magento Community Magento Community
Magento Community
Magento Community
 
danieln
Sr. Member
 
Avatar
Total Posts:  131
Joined:  2007-11-08
Mainz, Germany
 

Me again. This seems to be a bug. I’ve comitted an issue:
http://www.magentocommerce.com/bug-tracking/issue?issue=2822

 Signature 

netz98.de - new media gmbh.

 
Magento Community Magento Community
Magento Community
Magento Community
 
David Oliver
Sr. Member
 
Avatar
Total Posts:  177
Joined:  2008-04-16
Cologne, Germany
 

The simple products (which make up your size options) have to be in the same category as the configurable product to show up in layered navigation.

 Signature 

David Oliver - web and print design

 
Magento Community Magento Community
Magento Community
Magento Community
 
nathan_t
Jr. Member
 
Total Posts:  4
Joined:  2011-05-11
 

Having the same problem. Posted in the same bug ticket. Here’s what I wrote:

Hi bug team - hope you don’t mind if I post the same issue on this thread.

I’m having the same problem - I’m trying to filter my Clearance category down to sizes that are still available. For example, when I filter down to size 10.5 / 4E width (10.5 4E Clearance Shoes) , I would like it to show only configurable products that have have greater than 0 quantity.

Can you tell me how to make this work with using the Magento options? I’ve tried:

- Adding a filter tag for only products that are in stock (Clearance shoes in stock)
- Putting all 1000 or so simple products associated with these configurable products in the same category (didn’t work)

Any ideas? Any clue if this has been solved in a newer implementation?

Thanks, Nathan

 Signature 

Our Magento New Balance store

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
    Back to top