Website design Packages.

Affordable Website Designs.

Ecommerce - Content Management.

SEO - Consultancy.

Hosting - Email.

Archive for September, 2010

Magento version 1.3

To put products on the home page of magento open up the home page in the cms.

{{block type=”catalog/product_list” name=”home.catalog.product.list” alias=”products_homepage” category_id=”4″ template=”catalog/product/list.phtml”}}

The above code calls all the product in the category id 4. You can locate the id number by editing the category. It is displayed near the top of the category screen.

To display call products in your magento catalog
{{block type=”catalog/product_list” name=”home.catalog.product.list” alias=”products_homepage” template=”catalog/product/list.phtml”}}

To display all new products in your magento catalog

{{block type=”catalog/product_new” name=”home.catalog.product.new” alias=”product_homepage” template=”catalog/product/new.phtml”}}

Please remember to set the new date within the product edit screen.

Magento Version 1.4

Layout Update XML for magento 1.4

Because in 1.4 version Layout update is different than in 1.3 version, you can use this example:

  1. <reference name=“content”>
  2. <block type=“catalog/product_list” name=“featured” template=“catalog/product/list.phtml”>
  3. <action method=“setCategoryId”><category_id>[category id here]</category_id></action>
  4. </block>
  5. </reference>
  1. <reference name=“content”>
  2. <block type=“catalog/product_new” template=“catalog/product/new.phtml”>
  3. <action method=“setProductsCount”>5</action>
  4. <action method=addColumnCountLayoutDepend”><layout>empty</layout><count>6</count></action>
  5. <action method=addColumnCountLayoutDepend”><layout>one_column</layout><count>5</count></action>
  6. <action method=addColumnCountLayoutDepend”><layout>two_columns_left</layout><count>4</count></action>
  7. <action method=addColumnCountLayoutDepend”><layout>two_columns_right</layout><count>4</count></action>
  8. <action method=addColumnCountLayoutDepend”><layout>three_columns</layout><count>3</count></action>
  9. </block>
  10. </reference>