How to display Featured Product on Home Page according to Category Id in Magento?
If you want to display "Featured Products" on home page. You can use below code in product listing code.
<?php
$categoryid = 8; // Here you can replace from your category id
$category_cb = new Mage_Catalog_Model_Category(); $category_cb->load($categoryid);
$this->getProducts();
$_productCollection=$category_cb->getProductCollection()
->addAttributeToSort('entity_id', 'desc')
->addAttributeToSelect('*') ->addAttributeToFilter(array(
array('attribute' => 'featured', 'eq' => true),
));
?>
I was looking for this kind of posts and I found it very impressive post. Thanks for posting, keep updating.
ReplyDeleteGOMED stone online
This code is so good but I think I couldn't apply at the right place. Well , I am applying. Thanks for sharing, keep updating.
ReplyDeleteTacrol
Really attractive post.
ReplyDeletelycopene tablets
This post is very impressive, thanks for it.
ReplyDeleteBest Bariatric Surgeon in india
Author has done a great job, its really impressive, thanks for it.
ReplyDeleteRudraksha mala online
7 Most Funny Indian TV ads of this decade - Part 14
ReplyDeletedialysis drugs | Transplantation | alpha ketoanalogue tablet
ReplyDelete
ReplyDeleteumbilical hernia treatment in delhi
Abdominal Pain treatment in delhi
Leukemia Cancer doctor In noida
ReplyDeleteLeukemia Cancer Consultant In noida
Thanks for updating the post and keep updating.\
ReplyDeletebuy burma ruby gemstone online
buy basra pearl online