I am a bit of a noob at Magento, just started using it. So, what I’m trying to do is put together on a CMS page a simple list (a name – link pair) of all the products from a given category. To act as sort of an index. Inserting this block in my CMS page helped me move forward a bit.
{{block type=”catalog/product_list” name=”home.catalog.product.list”
alias=”products_homepage” category_id=”9″
template=”catalog/product/list.phtml”}}
However, this displays everything about a product (price, picture, add to cart button etc.), plus it only allows for max 30 entries per page.
I just need it to show a simple name – url pair. And if possible, without editing existing files. Any ideas or pointers would be much appreciated!
OK, got this working. The script looks kind of like this (the following only retrieves product names; obviously can be extended):
When you invoke the function you just pass to it the ID of the category who’s products you wish to view. Create a .phtml file, place it somewhere in your magento templates folder. Then you use a block statement in your CMS page where you want to insert the list:
Thanks to Lucasmus for setting me on the right track. Hope this helps someone out there. Peace!