Just another WordPress.com weblog

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 šŸ™‚


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: