views:

93

answers:

1

Hi

i want to display product and its custom options like size, colour on home page. how should i do that?

i want to allow my customer to add product directly from home page by providing its custom options value.

is their any way to do this?

Thanks

Magento Developer

+1  A: 

Update your cms.xml so that a php template file is inserted into the homepage.

<reference name="content">
<block type="catalog/category" name="category.homepage" template="catalog/category/homepage.html">
<block type="catalog/product_list" name="product_list" template="catalog/product/list.phtml"/>
</block>
</reference>

Create catalog/category/homepage.html by copying catalog/category/view.phtml.

You will then have to customise list.phtml to display the custom options. Off the top of my head you will need to use the functions hasOptions() and getCustomOptions(). The code to display these can be found in catalog/product/view.phtml (or one of it's child template files, probably in catalog/product/view/options/).

fishpig