<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Magento Sidebar Featured Products</title>
	<atom:link href="http://www.bwigg.com/2010/01/magento-featured-products-in-sidebar/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.bwigg.com/2010/01/magento-featured-products-in-sidebar/</link>
	<description>Lab and Nerdery</description>
	<lastBuildDate>Thu, 06 Oct 2011 15:24:10 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: zhuang</title>
		<link>http://www.bwigg.com/2010/01/magento-featured-products-in-sidebar/comment-page-1/#comment-7499</link>
		<dc:creator>zhuang</dc:creator>
		<pubDate>Thu, 06 Oct 2011 15:24:10 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwigg.com/?p=195#comment-7499</guid>
		<description>This artical is very useful,I have test the module,it is good.But I have an issue,I find there is only one product that display in the frontend,and in the code I can&#039;t set the number of products that I want to display.I am a new magenter,how should I do?Thank you!</description>
		<content:encoded><![CDATA[<p>This artical is very useful,I have test the module,it is good.But I have an issue,I find there is only one product that display in the frontend,and in the code I can&#8217;t set the number of products that I want to display.I am a new magenter,how should I do?Thank you!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.bwigg.com/2010/01/magento-featured-products-in-sidebar/comment-page-1/#comment-7496</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 11 Aug 2011 14:29:02 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwigg.com/?p=195#comment-7496</guid>
		<description>I need help :) How to display 3 products, no only one?</description>
		<content:encoded><![CDATA[<p>I need help <img src='http://www.bwigg.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  How to display 3 products, no only one?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bawigga</title>
		<link>http://www.bwigg.com/2010/01/magento-featured-products-in-sidebar/comment-page-1/#comment-7493</link>
		<dc:creator>bawigga</dc:creator>
		<pubDate>Fri, 27 May 2011 05:01:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwigg.com/?p=195#comment-7493</guid>
		<description>Glad this worked for ya!</description>
		<content:encoded><![CDATA[<p>Glad this worked for ya!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Martijn</title>
		<link>http://www.bwigg.com/2010/01/magento-featured-products-in-sidebar/comment-page-1/#comment-7486</link>
		<dc:creator>Martijn</dc:creator>
		<pubDate>Wed, 25 May 2011 09:33:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwigg.com/?p=195#comment-7486</guid>
		<description>Thanks for the code ! I used this to create a random product display in the sidebar. Works really nice, just needed some tiny changes to make it work in a multiple language website.</description>
		<content:encoded><![CDATA[<p>Thanks for the code ! I used this to create a random product display in the sidebar. Works really nice, just needed some tiny changes to make it work in a multiple language website.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bawigga</title>
		<link>http://www.bwigg.com/2010/01/magento-featured-products-in-sidebar/comment-page-1/#comment-6957</link>
		<dc:creator>bawigga</dc:creator>
		<pubDate>Mon, 08 Nov 2010 00:27:55 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwigg.com/?p=195#comment-6957</guid>
		<description>Glad you got it figured out, thanks for posting back here with the followups!</description>
		<content:encoded><![CDATA[<p>Glad you got it figured out, thanks for posting back here with the followups!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iain</title>
		<link>http://www.bwigg.com/2010/01/magento-featured-products-in-sidebar/comment-page-1/#comment-6955</link>
		<dc:creator>iain</dc:creator>
		<pubDate>Sun, 07 Nov 2010 07:05:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwigg.com/?p=195#comment-6955</guid>
		<description>Oops - looks like I did that wrong. Sorry.</description>
		<content:encoded><![CDATA[<p>Oops &#8211; looks like I did that wrong. Sorry.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iain</title>
		<link>http://www.bwigg.com/2010/01/magento-featured-products-in-sidebar/comment-page-1/#comment-6954</link>
		<dc:creator>iain</dc:creator>
		<pubDate>Sun, 07 Nov 2010 07:04:28 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwigg.com/?p=195#comment-6954</guid>
		<description>Worked it out. It&#039;s basically a tweak of the above code.

Inserted a &#039;foreach&#039; call after the beginning of the unordered list and ended it directly after the end.

I now have all items in a &#039;featured&#039; category listed in the sidebar (currently 5 items but can be more or less). 

&lt;code&gt;
 
addAttributeToSelect(array(&#039;name&#039;, &#039;price&#039;, &#039;small_image&#039;), &#039;inner&#039;)
  -&gt;addCategoryFilter(Mage::getModel(&#039;catalog/category&#039;)-&gt;load($category_id));
?&gt;
 
count()): ?&gt;
 
  

  
    &lt;strong&gt;Featured Products&lt;/strong&gt;
  
  
    

      
	  
          &lt;a href=&quot;getProductUrl() ?&gt;&quot; title=&quot;htmlEscape($this-&gt;getImageLabel($_product, &#039;small_image&#039;)) ?&gt;&quot;&gt;htmlEscape($_product-&gt;getName())?&gt;&lt;/a&gt;
		  &lt;span class=&quot;view-item-button&quot; href=&quot;getProductUrl() ?&gt;&quot; title=&quot;htmlEscape($_product-&gt;getName()) ?&gt;&quot;&gt;View Item
		  
          &lt;a href=&quot;getProductUrl() ?&gt;&quot; title=&quot;htmlEscape($this-&gt;getImageLabel($_product, &#039;small_image&#039;)) ?&gt;&quot;&gt;
            &lt;img class=&quot;product-image&quot; src=&quot;helper(&#039;catalog/image&#039;)-&gt;init($_product, &#039;small_image&#039;)-&gt;resize(50, 50); ?&gt;&quot; alt=&quot;htmlEscape($this-&gt;getImageLabel($_product, &#039;small_image&#039;)) ?&gt;&quot; title=&quot;htmlEscape($this-&gt;getImageLabel($_product, &#039;small_image&#039;)) ?&gt;&quot; /&gt;
          &lt;/a&gt;
	
      
	
    
  
  

&lt;/code&gt;</description>
		<content:encoded><![CDATA[<p>Worked it out. It&#8217;s basically a tweak of the above code.</p>
<p>Inserted a &#8216;foreach&#8217; call after the beginning of the unordered list and ended it directly after the end.</p>
<p>I now have all items in a &#8216;featured&#8217; category listed in the sidebar (currently 5 items but can be more or less). </p>
<p><code></p>
<p>addAttributeToSelect(array('name', 'price', 'small_image'), 'inner')<br />
  -&gt;addCategoryFilter(Mage::getModel('catalog/category')-&gt;load($category_id));<br />
?&gt;</p>
<p>count()): ?&gt;</p>
<p>    <strong>Featured Products</strong></p>
<p>          &lt;a href=&quot;getProductUrl() ?&gt;" title="htmlEscape($this-&gt;getImageLabel($_product, 'small_image')) ?&gt;"&gt;htmlEscape($_product-&gt;getName())?&gt;<br />
		  &lt;span class=&quot;view-item-button&quot; href=&quot;getProductUrl() ?&gt;" title="htmlEscape($_product-&gt;getName()) ?&gt;"&gt;View Item</p>
<p>          &lt;a href=&quot;getProductUrl() ?&gt;" title="htmlEscape($this-&gt;getImageLabel($_product, 'small_image')) ?&gt;"&gt;<br />
            &lt;img class=&quot;product-image&quot; src=&quot;helper('catalog/image')-&gt;init($_product, 'small_image')-&gt;resize(50, 50); ?&gt;" alt="htmlEscape($this-&gt;getImageLabel($_product, 'small_image')) ?&gt;" title="htmlEscape($this-&gt;getImageLabel($_product, 'small_image')) ?&gt;" /&gt;</p>
<p></code></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: iain</title>
		<link>http://www.bwigg.com/2010/01/magento-featured-products-in-sidebar/comment-page-1/#comment-6952</link>
		<dc:creator>iain</dc:creator>
		<pubDate>Sun, 07 Nov 2010 03:31:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwigg.com/?p=195#comment-6952</guid>
		<description>This is a great bit of code - thanks for taking the time. I have a featured product promotion working for my homepage (I disabled the random aspect). However, I would like to show multiple products from the same category but can&#039;t work out how to tweak the code to make this happen. Is there an easy fix? Thanks once again for the above code.
I</description>
		<content:encoded><![CDATA[<p>This is a great bit of code &#8211; thanks for taking the time. I have a featured product promotion working for my homepage (I disabled the random aspect). However, I would like to show multiple products from the same category but can&#8217;t work out how to tweak the code to make this happen. Is there an easy fix? Thanks once again for the above code.<br />
I</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: bawigga</title>
		<link>http://www.bwigg.com/2010/01/magento-featured-products-in-sidebar/comment-page-1/#comment-5645</link>
		<dc:creator>bawigga</dc:creator>
		<pubDate>Sun, 14 Mar 2010 16:23:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwigg.com/?p=195#comment-5645</guid>
		<description>@Andy, I think what you would want to do is remove the product (something like unset($_product[YOUR_RANDOM_ARRAY_INDEX]) ) from the $_product array after you&#039;ve added it to your featured product list. That way you can prevent duplicates from being on the same page. Hope this helps, if you haven&#039;t already figured it out :)</description>
		<content:encoded><![CDATA[<p>@Andy, I think what you would want to do is remove the product (something like unset($_product[YOUR_RANDOM_ARRAY_INDEX]) ) from the $_product array after you&#8217;ve added it to your featured product list. That way you can prevent duplicates from being on the same page. Hope this helps, if you haven&#8217;t already figured it out <img src='http://www.bwigg.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Andy</title>
		<link>http://www.bwigg.com/2010/01/magento-featured-products-in-sidebar/comment-page-1/#comment-5377</link>
		<dc:creator>Andy</dc:creator>
		<pubDate>Sat, 27 Feb 2010 04:25:51 +0000</pubDate>
		<guid isPermaLink="false">http://www.bwigg.com/?p=195#comment-5377</guid>
		<description>Thanks! This is great. I would like to add several featured products on the same page. My solution has been to just copy and paste the above code in the same .phtml file. It works, but I often end up with the same featured product being displayed. Is there a better way? Or a way to ensure different featured products will appear?  If so, any advice would be appreciated.  Thanks agian.</description>
		<content:encoded><![CDATA[<p>Thanks! This is great. I would like to add several featured products on the same page. My solution has been to just copy and paste the above code in the same .phtml file. It works, but I often end up with the same featured product being displayed. Is there a better way? Or a way to ensure different featured products will appear?  If so, any advice would be appreciated.  Thanks agian.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

