Just another WordPress.com weblog

Archive for February, 2010

Product listing Filter by Attribute in CMS page

How can I set up pages that display [ all products with a certain attribute value ]? I’m guessing it would be a CMS page with something like:

{{block type=”catalog/product_list” category_id=”6″ template=”catalog/product/list.phtml”}}

but instead something like this perhaps?

{{block type=”catalog/product_list” attribute_code=”myAttribute” attribute_value=”myValue” template=”catalog/product/list.phtml”}}

For example if we want to display feature product listing than we can use this it makes our work very easy.Instead of creating featured.php we just need to create one attribute for featured product i.e “featured” and one CMS page and add below block in it

{{block type=”catalog/product_list” attribute_code=”featured” attribute_value=”1″ template=”catalog/product/list.phtml”}}

If this post is useful to you than please give feedback.

-Bijal Bhavsar 🙂