Hi guys,
I have a custom product attribute with code is_hot
.
How to filter the Product Collection with this attribute in case the Catalog Product Flat Mode is enabled (http://i.imgur.com/xm45pqi.png)?
Thanks for help.
- Enable the «Used in Product Listing» option for the attribute.
- Delete the cache.
- Rebuild the indices. The attribute will be added to the flat product table, and will be loaded to the product collections.
- Load the collection.
- Filter the collection by the standard ways.
@dmitry_fedyuk: Thanks for your reply It helps me.