Skip to main content

how to use bestseller extension on home page..


1 comment

  • jim smiths


    1. Create a new file for Block:


    You can download the file for free at the end of the article. The file contains the algorithm of returning the necessary products collection, Bestsellers in our case.

    2. Create a template file for the new block:


    You can download the file for free at the end of the article. This file works with visualization of our bestsellers collection on a given page. It is just an example; you are welcome to use the list.phtml template from your theme. Please do not forget to do that so the look of the collection is adjusted to your website’s design.

    3. Now you need to call the created block, to do that go to Backend > CMS > Pages > Edit Page ‘Home page’ and add the following lines of code:

    {{block type="catalog/product_bestseller" template="catalog/product/bestseller.phtml" header="Bestsellers" limit=4}}

    Also you can add a new block via layout update:

    <reference name="content">
            <block type="catalog/product_bestseller" name="bestseller" template="catalog/product/bestseller.phtml" before="-">
                <action method="setLimit"><limit>3</limit></action>
                <action method="setHeader"><header>Best Sellers</header></action>

    For instance, try to add this block to the Category View page here:

    Backend > Catalog > Manage Categories > Click needed category in the category tree > `Custom Design` horizontal tab > ` Custom Layout Update` field

    Feel free to manipulate the result using the header and the limit variables.

    If just adding a list of bestsellers is not enough, consider checking the Improved Sorting extension, which is also compatible with layered navigation. It lets your customers sort the products by Best Selling, Most Viewed, Top Rated, Reviews Count, wood splitter maul and other parameters.
    Please note that this solution doesn’t work with Flat Catalog. To make this work, please disable this option in your store settings.


Please sign in to leave a comment.

Powered by Zendesk