Skip to content

Instantly share code, notes, and snippets.

@jonathonbyrdziak
Created August 1, 2011 18:13
Show Gist options
  • Save jonathonbyrdziak/1118673 to your computer and use it in GitHub Desktop.
Save jonathonbyrdziak/1118673 to your computer and use it in GitHub Desktop.
Magento Homepage -> BestSellers Module for featured products
<reference name="content">
<block type="bestsellers/list" name="home.bestsellers.list" alias="product_homepage" template="catalog/product/list.phtml"/>
<!--
<block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml" after="cms_page">
<action method="addPriceBlockType">
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
-->
<block type="reports/product_viewed" name="home.reports.product.viewed" alias="product_viewed" template="reports/home_product_viewed.phtml" after="product_new">
<action method="addPriceBlockType">
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
<block type="reports/product_compared" name="home.reports.product.compared" template="reports/home_product_compared.phtml" after="product_viewed">
<action method="addPriceBlockType">
<type>bundle</type>
<block>bundle/catalog_product_price</block>
<template>bundle/catalog/product/price.phtml</template>
</action>
</block>
</reference>
<reference name="right">
<action method="unsetChild">
<alias>right.reports.product.viewed</alias>
</action>
<action method="unsetChild">
<alias>right.reports.product.compared</alias>
</action>
</reference>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment