Featured products Magento extension by Inchoo

Featured Image

One of the most requested feature in Magento is the ability to have a featured products. Those of you who used osCommerce, ZenCart or some other shopping cart solution are already familiar with the way it works. You can choose the products that are featured and those will be displayed on some home page box and in separate interface. Some of you might know that we already have a post on the site that speaks about adding featured products to the homepage, but we prepared something better. A free extension: Featured Products by Inchoo.

This extension gives your Magento ability for easy management of featured products. Frontend features include separate interface for listing of all featured products and a block usage for easy placement to the interfaces of your choice.

Frontend features include:

  • Featured Products Interface where you can see the list of all featured products and use the options like Sort by, Show X number of products and View type choice.
  • You can view featured products page on url: www.yourstore.com/featured-products/
  • Featured Products Block gives you the ability to place the block to the interface or page of your choice. It is mostly used to display featured products o the home page.
    Example: put it in Home page content {{block type=”featuredproducts/listing” template=”inchoo/block_featured_products.phtml”}}

Backend features include:

  • Easy Management of Featured products via separate interface. You do not have to edit every single product and set it to be featured. You will get the special interface where you will be able to choose the products you want to feature from the list.
  • Go to admin menu and click on: Catalog > Featured Products
  • Configuration Options You will be able to choose layout for Featured product lising interface, use SEO features, Choose the number of products in the block and choose default sort order.

I really hope you will like it. Send us the feedback after you install it. Also let us know on what stores are you using it. :)

UPDATE: Version 1.1.3 (now available at the Magento Connect)

  • Added multi store functionality
  • Improved templates

Although Magento Connect listing says that extension is compatible with 1.3.2.4, it is tested and works with 1.4.

The extension is available via Magento Connect: Click here to see it on Magento Connect.

339
Top

Enjoyed this post?

Subscribe to our RSS Feed, Follow us on Twitter and spread it to your friends!

Author

Tomislav is an owner and CEO of Inchoo. Enjoys traveling, traditional cuisine (from most cultures), good wine and strong rakija.

Other posts from this author

Discussion 339 Comments

1 5 6 7
Add Comment
  1. I am pretty sure you can set the number of products per row by altering this line of code:

    <?php $i++; if($i==$this->getItemsPerRow()): ?>
    

    You can set

    $this->getItemsPerRow()

    to whatever you want the number of items in a row to be and it should create a new row automatically after it reaches that number. I ended up using a custom solution when this one didn’t work, but that is essentially the same code that I changed to get 2 rows of 4 items each in the one that I used.

    Hope that helps!!

  2. I forgot to add that you can edit that part of the code by going to app/design/frontend/enterprise/default/template/inchoo/featuredproducts/block_featured_products.phtml

  3. Karan

    Hi Matt,

    Thanks for the response; however, what exactly should I change? I have been playing around with that portion of the code but nothing seems to be happening. If I want 5 items per row and 4 rows, what should I alter?

    Thank you,
    Karan

  4. Karan

    Hi Matt,

    I found that I can alter the number of items per row through the admin panel. It is currently set to 5 but it is not creating a new row for items more than 5.

    Thanks,
    Karan

  5. Karan

    In which portion of the code can I add a line separator between the rows?

    Thanks,
    Karan

  6. How can i implement it on another page that is not home ?

  7. torrebruno

    I know why it does not work for some people, and is a stupid thing.

    Watch out for the ” when you paste the code in the home content:

    {{block type=”featuredproducts/listing” template=”inchoo/block_featured_products.phtml”}}

    Magento transforms your commas to a diferent sign (like a italic comma o something like). You only have to retype ” manually the four commas and It works fine. ;-)

    Excuse my english

  8. meander

    Great work, Thanks a lot! Works fine in 1.5.1.0, but how can I truncate the product name in the “block_featured_products” ?
    My Names are too long, so I need to shorten it.
    Can someone please help?

  9. nicmare

    to all who want to uninstall: run extension manager and uninstall the extension here. but theres one entry left in the database. table “eav_attribute”. find “inchoo” and delete the row. you are done!

  10. I have this working just fine with 1.5.1.0 however if my partner changes the selected featured products on his computer, nothing saves. On my computer everything works fine. Please help.
    Thanks

  11. When we go to the complete listing on http://www.yoursite.com/featured-products in the toolbar the pager links are missing.

    So if you have for example 100 items and you display 10 items per page, you only see the first 10 items and you cant’t go to page 2 to 10.

    How to fix this?

  12. Alex

    Does not work out of box on 1.6.1 Dont install unless u know how to change code, etc :D

  13. is this working on 1.6.1 yet ??

  14. Kunal

    Hi,
    Just added this extension to V1.5.1 but having a few issues.
    On the front end the products do appear but the image size coming up is the full image size not the tumb nail size set as 80×80, can you help fix this issue?

    Also in the admin section once I select a product to be featured and save it, it adds it to the featured product but removes the Std VAT to No VAT, how to fix this issue?

    pls help ASAP, as this is on a live site.

  15. jb

    If you are having trouble with it showing on the home page use this, worked for me. ver 1.6.1

    {{block type=\”featuredproducts/product_list\” name=\”featured_product\” as=\”featured_product_list\” template=\”catalog/product/list.phtml\” }}

  16. Hi,

    I found your fantastic featured plugin for magento.
    There’s only one thing I can not get fixed.
    The products are not horizontal aligned in the center and the horizontal spaces between the products are not equal.
    You can check it at http://www.antroposofischepoppen.nl/

    Running on Magento 1.6.2.0
    Is this a known errror? Do you know how to fix it?

    Thanks !

  17. I have this plugin installed but somehow I don’t see the button to add a product to the card and also the price is displayed twice on the website. See http://www.zpagetti.de

    Anyone a solution for this?

  18. Jovan

    I installed on 1.6.2.0, checked featured products, but I am getting error 404 in configuration-inchoo pages. Is there anything I can do to make this work for me?

  19. Dmitriy

    I tried everything, nothing worked until I double checked the file structure on the server and found that in my case one thing was missing – the /featuredproducts/ folder.

    So I changed the original code (note the corrected quotes)

    {{block type=”featuredproducts/listing” template=”inchoo/block_featured_products.phtml”}}

    to

    {{block type=”featuredproducts/listing” template=”inchoo/featuredproducts/block_featured_products.phtml”}}

    and it did work for me.

  20. Thomas

    Is there any way I can install this extension twice and have two separate “featured products” blocks? I would like to have one block for seasonal products and one for special deals. Thanks

  21. @Dmitriy

    Thank you, man. Your Solution works for me too.

  22. Mitch

    Hello I have a strange behaviour:
    looking at code I have found that
    $_products = $this->getProductCollection()
    returns me an empty collection even if there are featured products.

    If I change this to something like
    $_products = Mage::getResourceModel(‘catalog/product_collection’)->addAttributeToSelect(array(‘name’))->addFieldToFilter(‘inchoo_featured_product’, array(‘eq’ => ’1′));
    it returns me the featured products.

    Anyone could explain me why the default plugin code $this->getProductCollection() fails?

  23. Dan

    Hi, I’ve installed your extension for featured products. It’s in my App>community folder but not showing in admin..any ideas why?

  24. May

    Hi,

    This extension work like a charm for me! thx alot, but I need to adding radio buttons on admin html, somebody know where I can place the code?

    I think I should place the code on:
    app/code/community/Inchoo/FeaturedProducts/Block/Adminhtml/Edit.php
    but I don’t know in which function I should place the radio button.

    any ideas?

  25. Esmeralda

    Hi all,

    I’ve installed this plugin into my magento 1.5.1.1 version and this really looks good. The only thing that is not shown, is the add to cart button. Does anyone has a solution for this?

    Thank you in advance!

  26. ronald

    i need to display featured product based on category …is it possible how to get the product collection based on category…please help me

  27. Hello,
    Your module rocks. but there is one problem with me.It somtimes shows the products and sometime not. What I did is to disable and enable the product to make it visible on the front-end.
    Any idea why is it so

    thanks

  28. Hi all,

    Although I really like this extension it’s not working for me. I have Magento 1.5.1.0 installed. I added block_featured_products.phtml to app/design/frontend/default/theme/inchoo. In the backend it’s working and if I go to http://aquathuis.enigma-webdesign.nl/featured-products/ I see the featured products. I added {{block type=”featuredproducts/listing” template=”inchoo/block_featured_products.phtml”}} to my homepage but still nothing… what am I doing wrong?

  29. I love the module, is it possible to add an attribute text or textarea and for it to show up on the block added to the front page. For it to be called using $_product->getAttribute();

    For example a video html code attribute called ‘videoembedcode’. To call it using $_product->getVideoEmbedCode(); Like when you do it on the product page.

    What code do I need to add?

  30. @Sammi:
    If you look in block_featured_products.phtml, you should see this code around line 12:

    <?php $i=0;$row=0; foreach ($_products->getItems() as $_product): ?>
    

    As long as you do it between that foreach tag and it’s closing tag on line 45, you can use $_product.

    In your case, locate where you want it to be in the html and then use:

    <?php $_product->getVideoembedcode(); ?>
    

    OR (if that doesn’t work):

    <?php $_product->getData('videoembedcode'); ?>
    

    Hope this helps.

  31. Silv

    Hi

    Is there a way to include the category-path in the url as well (frontpage block).

    At the moment the url looks like this:
    …/product.html

    I’d like to have it more like this:
    …/category/product.html

    I’ve been trying to change the file located in:
    /template/inchoo/featuredproducts/block_featured_products.phtml

    <a href="getProductUrl() ?>…

    does anyone know hot to optimize that?

    thank you

  32. Hi,

    Wow – Thanks for the quick response!

    I am currently getting null

    $video1 = $_product->getData(‘videoEmbedCode’);
    echo var_dump ($video1);
    $video_2 = $_product->getVideoEmbedCode();
    echo var_dump ($video2);

    I have check the attribute code, value, visible on product view page frontend
    I have also only have 1 item with videoEmbedCode which has a value of
    http://www.youtube.com/watch?v=kcOLznrTPzc

    I think its something to do with adding it to the object. I think its the code on the listing.php page where it needs to be added to the collection.

    Approx line 47

    ->addAttributeToSelect(‘video’)

    SO that it looks like

    $collection->addAttributeToSelect($attributes)
    ->addMinimalPrice()
    ->addFinalPrice()
    ->addTaxPercents()
    ->addAttributeToSelect(‘videoEmbedCode’)
    ->addAttributeToFilter(‘inchoo_featured_product’, 1, ‘left’)
    ->addStoreFilter()
    ->getSelect()->order($this->getSortBy())->limit($this->getLimit());

    But when I do that I get an error.

    Any ideas would be highly appreciated

  33. It was the either the dns playing up or the attribute was not visible on product list.

    Thanks again Silv

  34. Sorry I meant Matt W,

  35. diego

    Hi, all.

    i put this code {{block type=”featuredproducts/listing” template=”inchoo/featuredproducts/block_featured_products.phtml”}} and i cant see in the home page.

    but de page featured-produts it ok!

    what i do wrong?.

    sorry to my english….

    thanks!

  36. Yosie

    I fix problem can’t load next page or change item display per page in magento 1.6.2.

    Change function __construct file grid.php with this code

    public function __construct() {
            parent::__construct();
    
            //$this-&gt;setId('featured_products');
            $this-&gt;setId('featuredproductsGrid');
            $this-&gt;setDefaultSort('entity_id');
    		$this-&gt;setDefaultDir('DESC');
    
    		$this-&gt;setSaveParametersInSession(true);
            $this-&gt;setUseAjax(true);
    
    		$this-&gt;setRowClickCallback('FeaturedRowClick');
        }
    

    Hope this help…

  37. Hello, first of all thanks for this great extension. I have got this working. But just one thing. The special price is not being updated properly in the homepage. Upon the expiry date, the price should return to normal price. But I have to do it manually in the homepage. The price showing correctly in the product page after expiry date.

  38. Nalini

    It’s not working on Magento 1.7.0.

    404 Error, page not found

  39. inchoo,
    thank for the extension. Please, kindly, add a ‘usage section’ to the readme to save some unexperienced users some trouble (i spend some time reading all comments, troubleshooting typos an path problems regarding your posted usage of the “block display”. My suggestion is:

     USAGE
     ***********************************************
     1. Mark Articles as featured in the designated interface:
      BE: admin menu: Catalog &gt; Featured Products
     2. You can view featured products page on url: http://www.yourstore.com/featured-products/
     3. You can add a block to a CMS Page (e.g. Home Page) this way:
      {{block type=&quot;featuredproducts/listing&quot; template=&quot;inchoo/featuredproducts/block_featured_products.phtml&quot;}}
      or using your own theme-template file:
      {{block type=&quot;featuredproducts/product_list&quot; name=&quot;featured_product&quot; as=&quot;featured_product_list&quot; template=&quot;catalog/product/list.phtml&quot;}}
    

    Thank you very much for your time and effort.

1 5 6 7

Add Your Comment

Please wrap all source codes with [code][/code] tags.
Top