<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" 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/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Michele's Blog</title>
	
	<link>http://www.michelem.org</link>
	<description>io, me e michele</description>
	<lastBuildDate>Fri, 27 Apr 2012 08:38:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/michelem" /><feedburner:info uri="michelem" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><geo:lat>43.600521</geo:lat><geo:long>13.51099</geo:long><item>
		<title>Dealcollector un sito per tutte le offerte di Groupon, Groupalia e molti altri</title>
		<link>http://feedproxy.google.com/~r/michelem/~3/oe6-xN8XNa0/</link>
		<comments>http://www.michelem.org/2012/04/27/dealcollector-un-sito-per-tutte-le-offerte-di-groupon-groupalia-e-molti-altri/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 08:38:15 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[blog]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[shopping]]></category>
		<category><![CDATA[coupon]]></category>
		<category><![CDATA[deal]]></category>
		<category><![CDATA[groupon]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[offerte]]></category>
		<category><![CDATA[wellness]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=1088</guid>
		<description><![CDATA[Come molti avete forse sentito parlare del boom dei cosidetti coupon? Il grande successo di questo tipo di offerte è stato possibile con la generalizzazione dei meccanismi di gruppi d’acquisto colletivo. Con questi meccanismi puoi ottenere dei discount fino a 70% ! Se il sito americano Groupon è il più famoso, non è l’unico ed esista [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Come molti avete forse sentito parlare del boom dei cosidetti coupon? Il grande successo di questo tipo di offerte è stato possibile con la generalizzazione dei meccanismi di gruppi d’acquisto colletivo. Con questi meccanismi puoi ottenere dei discount fino a 70% ! Se il sito americano <strong><a href="http://www.dealcollector.it/groupon-citydeal.html">Groupon</a></strong> è il più famoso, non è l’unico ed esista una proliferazione di servizi simili.</p>
<p>Ma come scegliere quando l’offerta è cosi vasta? Il sito Dealcollector ragruppa tutte le offerte disponibili da Groupon, Groupalia e tanti altri. Dopo un successo in Germania e Spagna Dealcollector arriva in Italia. Infatti Dealcollector è il più grande aggregatore dei deal europei! Puoi sia trovare deal nazionali come viaggi sia dei deal locali in ben più di 70 città italiane. Il sito propone deal in vari settori come i ristoranti, i musei, gli hotel o la bellezza e il wellness.</p>
<p>In un solo click <strong><a href="http://www.dealcollector.it/">Dealcollector</a></strong> ti permette di scoprire in un’unica pagina tutte le offerte pubblicate ogni giorno su tutti portali italiani. Per restare aggiornato su tutti deals puoi collegarti attraverso twitter, il facebook account o anche la newsletter, una sola per ragruppare tutte le offerte della propria città.<br />
In modo da avere tutte le offerte a portata di mano anche quando non sei di fronte allo schermo, Dealcollector propone anche un <strong><a href="http://itunes.apple.com/it/app/dealcollector/id461432582?mt=8">iPhone App</a></strong> e tra poco anche su Android. Cosi non mancherai mai più un’offerta quando sei in città o in viaggio, in Italia &amp; in Europa.</p>
<p>Per ogni fornitore di deals esiste una sezione commenti da dove è possibile condividere le propri esperienze con chi ha già approfitato delle offerte pubblicate.</p>
<p>Per tutti gli amatori dello shopping online, Dealcollector è un sito da provare!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/r14FLzbJ9PPqxTOQf-OkwO1DZG8/0/da"><img src="http://feedads.g.doubleclick.net/~a/r14FLzbJ9PPqxTOQf-OkwO1DZG8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/r14FLzbJ9PPqxTOQf-OkwO1DZG8/1/da"><img src="http://feedads.g.doubleclick.net/~a/r14FLzbJ9PPqxTOQf-OkwO1DZG8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/michelem/~4/oe6-xN8XNa0" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2012/04/27/dealcollector-un-sito-per-tutte-le-offerte-di-groupon-groupalia-e-molti-altri/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.michelem.org/2012/04/27/dealcollector-un-sito-per-tutte-le-offerte-di-groupon-groupalia-e-molti-altri/</feedburner:origLink></item>
		<item>
		<title>Get correct Magento multi level categories page title and canonical url</title>
		<link>http://feedproxy.google.com/~r/michelem/~3/cCU5zHWSEXQ/</link>
		<comments>http://www.michelem.org/2012/04/15/get-correct-magento-multi-level-categories-page-title-and-canonical-url/#comments</comments>
		<pubDate>Sun, 15 Apr 2012 08:53:43 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[canonical]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[seo]]></category>
		<category><![CDATA[title]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=1080</guid>
		<description><![CDATA[Hello, I noticed there was a problem with the page titles and canonical urls for multi-level categories pages, for example if I have a category like this: ebook/fiction/general Magento 1.5.1.0 puts a wrong canonical url like this: http://example.com/ebook while it should be: http://example.com/ebook/fiction/general So we need a patch to fix this behavior and I will [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Hello, I noticed there was a problem with the page titles and canonical urls for multi-level categories pages, for example if I have a category like this:</p>
<blockquote><p>ebook/fiction/general</p></blockquote>
<p>Magento 1.5.1.0 puts a wrong canonical url like this:</p>
<blockquote><p>http://example.com/ebook</p></blockquote>
<p>while it should be:</p>
<blockquote><p>http://example.com/ebook/fiction/general</p></blockquote>
<p>So we need a patch to fix this behavior and I will show you below. In the same time I needed to put a page title for category which hasn&#8217;t a default one.</p>
<p>If you haven&#8217;t write a page title for every category you have, Magento simply places the default store title, but i think this is wrong, because you know SEO is important, and page title is the most important thing on a website.</p>
<p>So I add a correct page title for categories without it by patching the same file for the fix above and you will have a page title with every category level names like this:</p>
<blockquote><p><code>&lt;title&gt;Ebook - Fiction - General&lt;/title&gt;</code></p></blockquote>
<p>that&#8217;s much better then the default store title.</p>
<p>How to get all of this? Very simple, just place this code in &#8220;<strong>app/code/local/Mage/Catalog/Block/Category/View.php</strong>&#8221; so you will override the default one without touching the core file, and you are done (the function touched is only the _prepareLayout):</p>
<pre class="brush: php">

&lt;?php
/**
* Magento
*
* NOTICE OF LICENSE
*
* This source file is subject to the Open Software License (OSL 3.0)
* that is bundled with this package in the file LICENSE.txt.
* It is also available through the world-wide-web at this URL:
* http://opensource.org/licenses/osl-3.0.php
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to license@magentocommerce.com so we can send you a copy immediately.
*
* DISCLAIMER
*
* Do not edit or add to this file if you wish to upgrade Magento to newer
* versions in the future. If you wish to customize Magento for your
* needs please refer to http://www.magentocommerce.com for more information.
*
* @category Mage
* @package Mage_Catalog
* @copyright Copyright (c) 2010 Magento Inc. (http://www.magentocommerce.com)
* @license http://opensource.org/licenses/osl-3.0.php Open Software License (OSL 3.0)
*/

/**
* Category View block
*
* @category Mage
* @package Mage_Catalog
* @author Magento Core Team &lt;core@magentocommerce.com&gt;
*/
class Mage_Catalog_Block_Category_View extends Mage_Core_Block_Template
{
protected function _prepareLayout()
{
parent::_prepareLayout();

$this-&gt;getLayout()-&gt;createBlock(&#039;catalog/breadcrumbs&#039;);

if ($headBlock = $this-&gt;getLayout()-&gt;getBlock(&#039;head&#039;)) {
$category = $this-&gt;getCurrentCategory();
if ($title = $category-&gt;getMetaTitle()) {
$headBlock-&gt;setTitle($title);
}

// SBF get categories name as page title
if (!$title ) {

$title = $category-&gt;getName();

$it = 5; //Amount of iterations before script gives up

if ($category) {

while($category-&gt;getLevel() != 2 &amp;&amp; $it &gt; 0) {
$category = $category-&gt;getParentCategory();
$title = $category-&gt;getName().&#039; - &#039;.$title;

if (!($category instanceof Mage_Catalog_Model_Category)) {
break;
}
}

}
$headBlock-&gt;setTitle($title);
};

if ($description = $category-&gt;getMetaDescription()) {
$headBlock-&gt;setDescription($description);
}
if ($keywords = $category-&gt;getMetaKeywords()) {
$headBlock-&gt;setKeywords($keywords);
}
if ($this-&gt;helper(&#039;catalog/category&#039;)-&gt;canUseCanonicalTag()) {
// SBF
$headBlock-&gt;addLinkRel(&#039;canonical&#039;, $this-&gt;getCurrentCategory()-&gt;getUrl());
}
/*
want to show rss feed in the url
*/
if ($this-&gt;IsRssCatalogEnable() &amp;&amp; $this-&gt;IsTopCategory()) {
$title = $this-&gt;helper(&#039;rss&#039;)-&gt;__(&#039;%s RSS Feed&#039;,$this-&gt;getCurrentCategory()-&gt;getName());
$headBlock-&gt;addItem(&#039;rss&#039;, $this-&gt;getRssLink(), &#039;title=&quot;&#039;.$title.&#039;&quot;&#039;);
}
}

return $this;
}

public function IsRssCatalogEnable()
{
return Mage::getStoreConfig(&#039;rss/catalog/category&#039;);
}

public function IsTopCategory()
{
return $this-&gt;getCurrentCategory()-&gt;getLevel()==2;
}

public function getRssLink()
{
return Mage::getUrl(&#039;rss/catalog/category&#039;,array(&#039;cid&#039; =&gt; $this-&gt;getCurrentCategory()-&gt;getId(), &#039;store_id&#039; =&gt; Mage::app()-&gt;getStore()-&gt;getId()));
}

public function getProductListHtml()
{
return $this-&gt;getChildHtml(&#039;product_list&#039;);
}

/**
* Retrieve current category model object
*
* @return Mage_Catalog_Model_Category
*/
public function getCurrentCategory()
{
if (!$this-&gt;hasData(&#039;current_category&#039;)) {
$this-&gt;setData(&#039;current_category&#039;, Mage::registry(&#039;current_category&#039;));
}
return $this-&gt;getData(&#039;current_category&#039;);
}

public function getCmsBlockHtml()
{
if (!$this-&gt;getData(&#039;cms_block_html&#039;)) {
$html = $this-&gt;getLayout()-&gt;createBlock(&#039;cms/block&#039;)
-&gt;setBlockId($this-&gt;getCurrentCategory()-&gt;getLandingPage())
-&gt;toHtml();
$this-&gt;setData(&#039;cms_block_html&#039;, $html);
}
return $this-&gt;getData(&#039;cms_block_html&#039;);
}

/**
* Check if category display mode is &quot;Products Only&quot;
* @return bool
*/
public function isProductMode()
{
return $this-&gt;getCurrentCategory()-&gt;getDisplayMode()==Mage_Catalog_Model_Category::DM_PRODUCT;
}

/**
* Check if category display mode is &quot;Static Block and Products&quot;
* @return bool
*/
public function isMixedMode()
{
return $this-&gt;getCurrentCategory()-&gt;getDisplayMode()==Mage_Catalog_Model_Category::DM_MIXED;
}

/**
* Check if category display mode is &quot;Static Block Only&quot;
* For anchor category with applied filter Static Block Only mode not allowed
*
* @return bool
*/
public function isContentMode()
{
$category = $this-&gt;getCurrentCategory();
$res = false;
if ($category-&gt;getDisplayMode()==Mage_Catalog_Model_Category::DM_PAGE) {
$res = true;
if ($category-&gt;getIsAnchor()) {
$state = Mage::getSingleton(&#039;catalog/layer&#039;)-&gt;getState();
if ($state &amp;&amp; $state-&gt;getFilters()) {
$res = false;
}
}
}
return $res;
}
}
</pre>
<p>&nbsp;</p>

<p><a href="http://feedads.g.doubleclick.net/~a/9EzEnbbzWHKKd1tQjMPJV63F4DI/0/da"><img src="http://feedads.g.doubleclick.net/~a/9EzEnbbzWHKKd1tQjMPJV63F4DI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/9EzEnbbzWHKKd1tQjMPJV63F4DI/1/da"><img src="http://feedads.g.doubleclick.net/~a/9EzEnbbzWHKKd1tQjMPJV63F4DI/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/michelem/~4/cCU5zHWSEXQ" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2012/04/15/get-correct-magento-multi-level-categories-page-title-and-canonical-url/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.michelem.org/2012/04/15/get-correct-magento-multi-level-categories-page-title-and-canonical-url/</feedburner:origLink></item>
		<item>
		<title>Il caricabatterie universale PowerBrick di Feligan</title>
		<link>http://feedproxy.google.com/~r/michelem/~3/60qToFv3Gik/</link>
		<comments>http://www.michelem.org/2012/04/11/il-caricabatterie-universale-powerbrick-di-feligan/#comments</comments>
		<pubDate>Wed, 11 Apr 2012 10:16:27 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[shopping]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[apple]]></category>
		<category><![CDATA[caricabatterie]]></category>
		<category><![CDATA[caricatore]]></category>
		<category><![CDATA[dispositivi]]></category>
		<category><![CDATA[ios]]></category>
		<category><![CDATA[nokia]]></category>
		<category><![CDATA[powerbrick]]></category>
		<category><![CDATA[samsung]]></category>
		<category><![CDATA[universale]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=1068</guid>
		<description><![CDATA[Oggi recensisco questo magnifico prodotto della società Feligan (azienda di Reggio Emilia), il Powerbrick è il caricabatterie che vi lascerà a bocca aperta grazie alla sua flessibilità è in grado infatti di caricare tutti i device che avete con un unico apparecchio, discreto e molto funzionale. Ma andiamo al dettaglio, Powerbrick è una scatoletta dalle [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p><a href="http://www.michelem.org/wp-content/uploads/2012/04/IMG_1220.jpg" rel="lightbox"><img class="alignleft size-medium wp-image-1069" title="IMG_1220" src="http://www.michelem.org/wp-content/uploads/2012/04/IMG_1220-300x224.jpg" alt="" width="300" height="224" /></a></p>
<p>Oggi recensisco questo magnifico prodotto della società <a href="http://www.feligan.com/">Feligan</a> (azienda di Reggio Emilia), il <strong><a href="http://www.caricabatterie-powerbrick.it/">Powerbrick</a></strong> è il <strong>caricabatterie</strong> che vi lascerà a bocca aperta grazie alla sua flessibilità è in grado infatti di caricare tutti i device che avete con un unico apparecchio, discreto e molto <strong>funzionale</strong>.</p>
<p>Ma andiamo al dettaglio, Powerbrick è una scatoletta dalle <strong>dimensioni ridotte</strong> adatto a stare ovunque sia a casa che in ufficio, grazie anche al suo design, piccolo e facilmente posizionabile, è largo 24cm, profondo 12cm e alto circa 7cm, pesa poco più di mezzo chilo e può essere richiesto in due colorazioni, bianco o nero.</p>
<p>L&#8217;azienda mi ha gentilmente fornito di un Powerbrick nero da provare con mano e sono rimasto molto colpito dalla sua praticità, all&#8217;atto dell&#8217;acquisto è infatti possibile decidere in autonomia quali tipo di connettori vogliamo installare. Si esatto, sarai proprio tu a decidere cosa mettere nel tuo Powerbrick che è composto da:</p>
<ul>
<li>6 connettori selezionabili</li>
<li>2 porte USB frontali</li>
<li>2 prese elettriche universali frontali (vanno bene per prese italiane, tedesche, americane, ecc&#8230;)</li>
<li>1 presa tripolare posteriore</li>
</ul>
<p>Ma parliamo innanzitutto dei 6 alloggiamenti personalizzabili che sono sicuramente il fiore all&#8217;occhiello di questo prodotto, aprendo il coperchio (apertura e chiusura a scatto senza bisogno di alcun utensile), possiamo scegliere quali <strong>caricabatterie</strong> utilizzare tra una gamma vastissima dai comuni cellulari di prima generazione a tutti i dispositivi <strong>Apple iOS</strong>, ma anche <strong>Android</strong>, prese <strong>mini e micro USB</strong>, ecc&#8230; per un totale di circa <strong>10.000 dispositivi</strong> da poter ricaricare (<a href="http://www.feligan.com/dispositivi_elettronici_accessori_cellulari.php?cat=96&amp;id=1332">la lista dei connettori possibili è qui</a>).</p>
<p>Tutti questi connettori, chiamati <strong>Powerbox</strong>, hanno un <strong>cavo retrattile</strong> a molla, perfetto per posizionare i dispositivi da ricaricare accanto al Powerbrick senza doverli accatastare uno sopra l&#8217;altro.</p>
<p><a href="http://www.michelem.org/wp-content/uploads/2012/04/IMG_1221.jpg" rel="lightbox"><img class="size-medium wp-image-1070 aligncenter" title="IMG_1221" src="http://www.michelem.org/wp-content/uploads/2012/04/IMG_1221-300x224.jpg" alt="" width="300" height="224" /></a></p>
<p>I Powerbox, come detto prima, sono di tantissimi differenti tipi e sono completamente <strong>intercambiabili</strong>, quindi se ai 6 che scegliamo all&#8217;acquisto ne volessimo aggiungere altri da tenere di &#8220;riserva&#8221;, non ci sarebbe alcun problema, basterebbe aprire il coperchio cambiare il Powerbox e caricare il dispositivo, ma fidatevi con tutte le porte e prese disponibili i Powerbox vi basteranno per praticamente ogni dispositivo che avete.</p>
<p><a href="http://www.michelem.org/wp-content/uploads/2012/04/IMG_1222.jpg" rel="lightbox"><img class="size-medium wp-image-1071 alignleft" title="IMG_1222" src="http://www.michelem.org/wp-content/uploads/2012/04/IMG_1222-300x224.jpg" alt="" width="300" height="224" /></a>La <strong>qualità</strong> di ogni componente è ottima, le molle dei Powerbox ritornano sempre in posizione senza problemi, basta un piccolo strattone e la molla riavvolge il filo da sola, mentre le prese frontali sono utilissime per collegarci anche altre tipologie di apparecchi elettronici come computer portatili ma volendo anche frullatori e tostapane, non ci sono limiti anche perchè le 2 prese elettriche frontali sono posizionate molto bene e permettono di collegarci qualsiasi trasformatore o spina senza il rischio di bloccare l&#8217;accesso a una o all&#8217;altra presa.</p>
<p>Naturalmente è possibile collegarci anche una &#8220;ciabatta&#8221; in modo da poter allargare il numero di dispositivi da poterci collegare.</p>
<p>Insomma, <strong><a href="http://www.caricabatterie-powerbrick.it/">Powerbrick</a></strong> è l&#8217;accessorio &#8220;<strong>mai-più-senza</strong>&#8221; per tutti, dalla casa all&#8217;<strong>ufficio</strong>, vedrete che sarà uno strumento indispensabile, basta cavi e cavetti in giro ovunque, un&#8217;unica soluzione per caricare ogni dispositivo, e i cavetti li scorderete nella borsa, utili solo per quando arriverete nel luogo dove il Powerbrick non c&#8217;è (ancora) ;)</p>
<p style="text-align: center;"><a href="http://www.feligan.com/dispositivi_elettronici_accessori_cellulari.php?cat=96&amp;id=1332"><strong>Acquista ora Powerbrick con i 6 Powerbox!</strong></a></p>
<p><object width="580" height="350" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube.com/v/XmUGx23FPfo?version=3&amp;hl=en_US&amp;rel=0" /><param name="allowfullscreen" value="true" /><embed width="580" height="350" type="application/x-shockwave-flash" src="http://www.youtube.com/v/XmUGx23FPfo?version=3&amp;hl=en_US&amp;rel=0" allowFullScreen="true" allowscriptaccess="always" allowfullscreen="true" /></object></p>

<p><a href="http://feedads.g.doubleclick.net/~a/Ixpce_ugfui8n_hmXNqXu2nRRcA/0/da"><img src="http://feedads.g.doubleclick.net/~a/Ixpce_ugfui8n_hmXNqXu2nRRcA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/Ixpce_ugfui8n_hmXNqXu2nRRcA/1/da"><img src="http://feedads.g.doubleclick.net/~a/Ixpce_ugfui8n_hmXNqXu2nRRcA/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/michelem/~4/60qToFv3Gik" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2012/04/11/il-caricabatterie-universale-powerbrick-di-feligan/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://www.michelem.org/2012/04/11/il-caricabatterie-universale-powerbrick-di-feligan/</feedburner:origLink></item>
		<item>
		<title>Magento and Uservoice Single Sign-On Autenthication (Free extension)</title>
		<link>http://feedproxy.google.com/~r/michelem/~3/a04YgllwXfc/</link>
		<comments>http://www.michelem.org/2012/02/29/magento-and-uservoice-single-sign-on-autenthication-free-extension/#comments</comments>
		<pubDate>Wed, 29 Feb 2012 11:07:16 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[helpdesk]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[support]]></category>
		<category><![CDATA[uservoice]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=1065</guid>
		<description><![CDATA[Hello, I just wrote a small Magento extension to allow you the single sign-on between you Magento ecommerce site and your Uservoice support site. Based upon the original Uservoice documentation, you can install it (just copy the files into your Magento folder), you will find a new configuration settings under the left sidebar &#8220;USERVOICE SINGLE [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Hello, I just wrote a small Magento extension to allow you the single sign-on between you Magento ecommerce site and your Uservoice support site.</p>
<p>Based upon the original <a href="http://developer.uservoice.com/docs/single-sign-on-how-to/">Uservoice documentation</a>, you can install it (just copy the files into your Magento folder), you will find a new configuration settings under the left sidebar &#8220;<strong>USERVOICE SINGLE SIGN-ON</strong>&#8220;.</p>
<p>You can find your &#8220;Feedback Tab Javascript ID&#8221; under Admin-&gt;Settings-&gt;Channels, here is the ID: &#8220;<code>uv.src = ('https:' == document.location.protocol ? 'https://' : 'http://') + 'widget.uservoice.com/<strong>EyMQSdgfLyXVzREO2N55P7A</strong>.js</code>&#8216;;&#8221;</p>
<p>You can find the <a href="https://github.com/michelem09/Magento-Uservoice-Single-Sign-On">Magento extension for Uservoice</a> on my GitHub repository.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/tpOulOnNF7GXZ8-CdPgvsJUrlvU/0/da"><img src="http://feedads.g.doubleclick.net/~a/tpOulOnNF7GXZ8-CdPgvsJUrlvU/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/tpOulOnNF7GXZ8-CdPgvsJUrlvU/1/da"><img src="http://feedads.g.doubleclick.net/~a/tpOulOnNF7GXZ8-CdPgvsJUrlvU/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/michelem/~4/a04YgllwXfc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2012/02/29/magento-and-uservoice-single-sign-on-autenthication-free-extension/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://www.michelem.org/2012/02/29/magento-and-uservoice-single-sign-on-autenthication-free-extension/</feedburner:origLink></item>
		<item>
		<title>Chrome and Android – A Potent Combination</title>
		<link>http://feedproxy.google.com/~r/michelem/~3/dH5JR3oHNwc/</link>
		<comments>http://www.michelem.org/2012/01/26/chrome-and-android-a-potent-combination/#comments</comments>
		<pubDate>Thu, 26 Jan 2012 14:02:43 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[google]]></category>
		<category><![CDATA[technology]]></category>
		<category><![CDATA[android]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[smartphone]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=1060</guid>
		<description><![CDATA[If you&#8217;re a Google user when it comes to email, browsing the web, or using your phone, you&#8217;ll know that if there&#8217;s one thing the search-engine giant is good at, it&#8217;s integrating one Google idea into another seamlessly. Chrome and Android and two great examples, and there are a fair few examples of why you&#8217;ll [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>If you&#8217;re a Google user when it comes to email, browsing the web, or using your phone, you&#8217;ll know that if there&#8217;s one thing the search-engine giant is good at, it&#8217;s integrating one Google idea into another seamlessly. Chrome and Android and two great examples, and there are a fair few examples of why you&#8217;ll find the two Google products easy to use in sync with one another.</p>
<p>1) Google everyday apps.</p>
<p>Gmail, Google Calendar, Google Reader &#8211; all integrated and easy to sync between your two devices using Chrome and Android, whether you&#8217;re setting reminders for a <a href="http://www.partycasino.it/">party casino</a> tournament, or you&#8217;re aiming to finish off an email draft on your phone moments after the draft saves on your computer. It syncs extremely well, and you&#8217;ll never feel as though your choice of phone and browser are clashing.</p>
<p>2) Chrome to Phone.</p>
<p>This one feature/extension justifies using Chrome and Android together more than anything else. One click, and the web-page is waiting for you on an archive-enabled app on your Android device. Brilliant for those on the go, or for people who often find themselves having to switch between phone and computer.</p>
<p>3) Chrome on Android.</p>
<p>It&#8217;s on its way, and when it arrives you&#8217;ll finally realise just how great Chrome can be once it goes portable. Chrome is a powerful, customisable, reliable browser, fun to use and with extensions (and some impressive apps and games &#8211; Bastion is one great example), it becomes a necessity for anyone who&#8217;s tired of Firefox and duly averse to so much as opening Internet Explorer if there&#8217;s an alternative.</p>
<p>These are just a few reasons, but there are many more &#8211; the best way to find your own is to test out the Chrome-Android combo yourself. We&#8217;re fairly confident you might enjoy them both, even if they&#8217;re not linked through email or extensions. Have fun!</p>

<p><a href="http://feedads.g.doubleclick.net/~a/SAA9hCqES18CDRFXUIKFPcR-pQ0/0/da"><img src="http://feedads.g.doubleclick.net/~a/SAA9hCqES18CDRFXUIKFPcR-pQ0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/SAA9hCqES18CDRFXUIKFPcR-pQ0/1/da"><img src="http://feedads.g.doubleclick.net/~a/SAA9hCqES18CDRFXUIKFPcR-pQ0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/michelem/~4/dH5JR3oHNwc" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2012/01/26/chrome-and-android-a-potent-combination/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://www.michelem.org/2012/01/26/chrome-and-android-a-potent-combination/</feedburner:origLink></item>
		<item>
		<title>Magento problem with Paypal Express and new customer registration [Solved]</title>
		<link>http://feedproxy.google.com/~r/michelem/~3/bqWqoTdJsXk/</link>
		<comments>http://www.michelem.org/2011/09/14/magento-problem-with-paypal-express-and-new-customer-registration-solved/#comments</comments>
		<pubDate>Wed, 14 Sep 2011 10:44:45 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[checkout]]></category>
		<category><![CDATA[customer]]></category>
		<category><![CDATA[express]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[paypal]]></category>
		<category><![CDATA[registration]]></category>
		<category><![CDATA[solution]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=1056</guid>
		<description><![CDATA[You know there is this problem with Magento 1.4.* and 1.5.*, if you are using Paypal Express as payment method and your customer is a new one, when she/he complete the order this is without account association (Customer Group 0 USER NOT LOGGED IN) and the new customer is not created. To solve this problem [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>You know there is this problem with <strong>Magento</strong> 1.4.* and 1.5.*, if you are using <strong>Paypal Express</strong> as payment method and your customer is a new one, when she/he complete the order this is without account association (Customer Group 0 <strong>USER NOT LOGGED IN</strong>) and the new customer is not created.</p>
<p>To solve this problem you have to install this useful extension: <a href="https://github.com/onestepcheckout/PaypalRegister">https://github.com/onestepcheckout/PaypalRegister</a></p>
<p>Follow the README and finally you can get registered users with Paypal Express too.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/owYBADW3L-k1COEkMubX9jU8oWw/0/da"><img src="http://feedads.g.doubleclick.net/~a/owYBADW3L-k1COEkMubX9jU8oWw/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/owYBADW3L-k1COEkMubX9jU8oWw/1/da"><img src="http://feedads.g.doubleclick.net/~a/owYBADW3L-k1COEkMubX9jU8oWw/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/michelem/~4/bqWqoTdJsXk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2011/09/14/magento-problem-with-paypal-express-and-new-customer-registration-solved/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		<feedburner:origLink>http://www.michelem.org/2011/09/14/magento-problem-with-paypal-express-and-new-customer-registration-solved/</feedburner:origLink></item>
		<item>
		<title>AWS EC2 Manage Snapshot Backup with PHP SDK</title>
		<link>http://feedproxy.google.com/~r/michelem/~3/-fJ2KsNKBDs/</link>
		<comments>http://www.michelem.org/2011/08/11/aws-ec2-manage-snapshot-backup-with-php-sdk/#comments</comments>
		<pubDate>Thu, 11 Aug 2011 14:05:51 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[amazon]]></category>
		<category><![CDATA[aws]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[ec2]]></category>
		<category><![CDATA[snapshot]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=1053</guid>
		<description><![CDATA[This is a simple script based upon AWS SDK PHP to manage volume&#8217;s snapshots. It simply create one snapshot per volume (once you run it) and delete snapshot older then 1 month. Please provide your personal information by copying config-sample.inc.php into config.inc.php. Run the script backup-snapshots.php with your CRON. For example: # Auto AWS Snapshots [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>This is a simple script based upon <a href="http://aws.amazon.com/sdkforphp/">AWS SDK PHP</a> to manage volume&#8217;s snapshots.</p>
<p>It simply create one snapshot per volume (once you run it) and delete snapshot older then 1 month.</p>
<p>Please provide your personal information by copying config-sample.inc.php into config.inc.php.</p>
<p>Run the script backup-snapshots.php with your CRON.</p>
<p>For example:</p>
<pre># Auto AWS Snapshots
00 08   * * *   /usr/bin/php /var/virtual/aws/backup-snapshots.php
00 22   * * *   /usr/bin/php /var/virtual/aws/backup-snapshots.php
00 12   * * 7   /usr/bin/php /var/virtual/aws/backup-snapshots.php</pre>
<p>Download <a href="https://github.com/michelem09/AWS-EC2-Manage-Snapshots-Backup">AWS EC2 Manage Snapshot Backup</a></p>

<p><a href="http://feedads.g.doubleclick.net/~a/1fPqm26-3_70uMWcvj_WQvQ9Vts/0/da"><img src="http://feedads.g.doubleclick.net/~a/1fPqm26-3_70uMWcvj_WQvQ9Vts/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/1fPqm26-3_70uMWcvj_WQvQ9Vts/1/da"><img src="http://feedads.g.doubleclick.net/~a/1fPqm26-3_70uMWcvj_WQvQ9Vts/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/michelem/~4/-fJ2KsNKBDs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2011/08/11/aws-ec2-manage-snapshot-backup-with-php-sdk/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		<feedburner:origLink>http://www.michelem.org/2011/08/11/aws-ec2-manage-snapshot-backup-with-php-sdk/</feedburner:origLink></item>
		<item>
		<title>Magento add Bestseller products by date range</title>
		<link>http://feedproxy.google.com/~r/michelem/~3/Cu-RqljJ8mU/</link>
		<comments>http://www.michelem.org/2011/07/01/magento-add-bestseller-products-by-date-range/#comments</comments>
		<pubDate>Fri, 01 Jul 2011 16:32:49 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[bestseller]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[date]]></category>
		<category><![CDATA[monthly]]></category>
		<category><![CDATA[range]]></category>
		<category><![CDATA[view]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=1046</guid>
		<description><![CDATA[Here is how to get a collection of products best sold in a given date range (could be daily, monthly, weekly, etc&#8230;) &#60;ul&#62; &#60;?php $from = date(&#34;Y-m-d H:i:s&#34;, (time()-2592000)); $to = date(&#34;Y-m-d H:i:s&#34;, time()); $_productCollection = Mage::getResourceModel(&#039;reports/product_collection&#039;) -&#62;addAttributeToSelect(&#039;*&#039;) -&#62;addOrderedQty($from, $to, true) -&#62;addAttributeToFilter(&#039;status&#039;, 1) -&#62;setOrder(&#039;ordered_qty&#039;, &#039;desc&#039;) -&#62;getSelect()-&#62;limit(10)-&#62;query(); foreach ( $_productCollection as $prod ) : $_product = [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Here is how to get a collection of products best sold in a given date range (could be daily, monthly, weekly, etc&#8230;)</p>
<pre class="brush: php">&lt;ul&gt;
&lt;?php
$from = date(&quot;Y-m-d H:i:s&quot;, (time()-2592000));
$to = date(&quot;Y-m-d H:i:s&quot;, time());

$_productCollection = Mage::getResourceModel(&#039;reports/product_collection&#039;)
-&gt;addAttributeToSelect(&#039;*&#039;)
-&gt;addOrderedQty($from, $to, true)
-&gt;addAttributeToFilter(&#039;status&#039;, 1)
-&gt;setOrder(&#039;ordered_qty&#039;, &#039;desc&#039;)
-&gt;getSelect()-&gt;limit(10)-&gt;query();

foreach ( $_productCollection as $prod ) :
$_product = Mage::getModel(&#039;catalog/product&#039;);
$_product-&gt;load($prod[&#039;entity_id&#039;]);
($i%2) ? $even = &quot;class=&#039;even-li&#039;&quot; : $even = &quot;&quot;;
?&gt;
&lt;li &lt;?php echo $even ?&gt;&gt;
&lt;div&gt;&lt;a href=&quot;&lt;?php echo $this-&gt;getUrl($_product-&gt;getUrlPath()) ?&gt;&quot; title=&quot;View &lt;?php echo $_product-&gt;name ?&gt;&quot;&gt;&lt;img src=&quot;&lt;?php echo $this-&gt;helper(&#039;catalog/image&#039;)-&gt;init($_product, &#039;image&#039;)-&gt;resize(48); ?&gt;&quot; alt=&quot;&lt;?php echo $_product-&gt;name ?&gt;&quot;  /&gt;&lt;/a&gt;
&lt;a href=&quot;&lt;?php echo $this-&gt;getUrl($_product-&gt;getUrlPath()) ?&gt;&quot; title=&quot;View &lt;?php echo $_product-&gt;name ?&gt;&quot;&gt;&lt;?php echo Mage::helper(&#039;core/string&#039;)-&gt;truncate($_product-&gt;name, 50) ?&gt;&lt;/a&gt;
&lt;p&gt;&lt;?php echo Mage::helper(&#039;core/string&#039;)-&gt;truncate(strip_tags($_product-&gt;description), 130); ?&gt;&lt;/p&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;?php
endforeach;
?&gt;
&lt;/ul&gt;
</pre>

<p><a href="http://feedads.g.doubleclick.net/~a/oGaIs4nlPCMQcn5-zaj-OSJSHJg/0/da"><img src="http://feedads.g.doubleclick.net/~a/oGaIs4nlPCMQcn5-zaj-OSJSHJg/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/oGaIs4nlPCMQcn5-zaj-OSJSHJg/1/da"><img src="http://feedads.g.doubleclick.net/~a/oGaIs4nlPCMQcn5-zaj-OSJSHJg/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/michelem/~4/Cu-RqljJ8mU" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2011/07/01/magento-add-bestseller-products-by-date-range/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		<feedburner:origLink>http://www.michelem.org/2011/07/01/magento-add-bestseller-products-by-date-range/</feedburner:origLink></item>
		<item>
		<title>Magento adding you own custom RSS Feeds</title>
		<link>http://feedproxy.google.com/~r/michelem/~3/EJFSokEPT7E/</link>
		<comments>http://www.michelem.org/2011/06/08/magento-adding-you-own-custom-rss-feeds/#comments</comments>
		<pubDate>Wed, 08 Jun 2011 15:25:08 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[diy]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[block]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[custom]]></category>
		<category><![CDATA[feed]]></category>
		<category><![CDATA[rss]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=1030</guid>
		<description><![CDATA[You know you will need, before or after, to add your own custom RSS feeds to your Magento. For example, I needed to create some custom RSS Feeds to list bestseller products by date (bestseller weekly, monthly, etc&#8230;) How to do it? It&#8217;s quite complex but not so much if you follow this mini tutorial: [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>You know you will need, before or after, to add your own custom RSS feeds to your Magento.<br />
For example, I needed to create some custom RSS Feeds to list bestseller products by date (bestseller weekly, monthly, etc&#8230;)<br />
How to do it? It&#8217;s quite complex but not so much if you follow this mini tutorial:</p>
<p>First of all, you need to setup a new namespace directory under your &#8220;local&#8221; dir, this will overwrite your current RSS Mage methods but not all.</p>
<p>So, create your directory app/local/Simplicissimus/Rss. (change Simplicissimus with your own Namespace and change it everywhere)</p>
<p>Create inside it the following directories:</p>
<ul>
<li>Block</li>
<li>Block/Catalog</li>
<li>controllers</li>
<li>etc</li>
</ul>
<p>Starting with the configuration XML, you need to create a file etc/config.xml like this:</p>
<pre class="brush: xml">&lt;?xml version=&quot;1.0&quot;?&gt;
&lt;config&gt;
&lt;modules&gt;
&lt;Simplicissimus_Rss&gt;
&lt;version&gt;0.1.0&lt;/version&gt;
&lt;/Simplicissimus_Rss&gt;
&lt;/modules&gt;
&lt;global&gt;
&lt;blocks&gt;
&lt;rss&gt;
&lt;rewrite&gt;
&lt;list&gt;Simplicissimus_Rss_Block_List&lt;/list&gt;
&lt;catalog_category&gt;Simplicissimus_Rss_Block_Catalog_Category&lt;/catalog_category&gt;
&lt;catalog_bestseller&gt;Simplicissimus_Rss_Block_Catalog_Bestseller&lt;/catalog_bestseller&gt;
&lt;catalog_bestsellerweekly&gt;Simplicissimus_Rss_Block_Catalog_Bestsellerweekly&lt;/catalog_bestsellerweekly&gt;
&lt;catalog_bestsellermonthly&gt;Simplicissimus_Rss_Block_Catalog_Bestsellermonthly&lt;/catalog_bestsellermonthly&gt;
&lt;catalog_bestsellernarcissus&gt;Simplicissimus_Rss_Block_Catalog_Bestsellernarcissus&lt;/catalog_bestsellernarcissus&gt;
&lt;catalog_worstseller&gt;Simplicissimus_Rss_Block_Catalog_Worstseller&lt;/catalog_worstseller&gt;
&lt;/rewrite&gt;
&lt;/rss&gt;
&lt;/blocks&gt;
&lt;/global&gt;
&lt;frontend&gt;
&lt;routers&gt;
&lt;rss&gt;
&lt;use&gt;standard&lt;/use&gt;
&lt;args&gt;
&lt;modules&gt;
&lt;Simplicissimus_Rss before=&quot;Mage_Rss&quot;&gt;Simplicissimus_Rss&lt;/Simplicissimus_Rss&gt;
&lt;/modules&gt;
&lt;/args&gt;
&lt;/rss&gt;
&lt;/routers&gt;
&lt;/frontend&gt;
&lt;/config&gt;
</pre>
<p>Now let&#8217;s go create the controller for new RSS urls, create a file called controllers/CatalogController.php</p>
<pre class="brush: php">&lt;?php
// Controllers are not autoloaded so we will have to do it manually:
require_once &#039;Mage/Rss/controllers/CatalogController.php&#039;;
class Simplicissimus_Rss_CatalogController extends Mage_Rss_CatalogController
{
public function bestsellerAction()
{
$this-&gt;checkFeedEnable(&#039;bestseller&#039;);
$this-&gt;loadLayout(false);
$this-&gt;renderLayout();
}

public function bestsellerweeklyAction()
{
$this-&gt;checkFeedEnable(&#039;bestsellerweekly&#039;);
$this-&gt;loadLayout(false);
$this-&gt;renderLayout();
}

public function bestsellermonthlyAction()
{
$this-&gt;checkFeedEnable(&#039;bestsellermonthly&#039;);
$this-&gt;loadLayout(false);
$this-&gt;renderLayout();
}

public function bestsellernarcissusAction()
{
$this-&gt;checkFeedEnable(&#039;bestsellernarcissus&#039;);
$this-&gt;loadLayout(false);
$this-&gt;renderLayout();
}

public function worstsellerAction()
{
$this-&gt;checkFeedEnable(&#039;worstseller&#039;);
$this-&gt;loadLayout(false);
$this-&gt;renderLayout();
}
}
</pre>
<p>Now we need blocks, first of all create a file Block/List.php:</p>
<pre class="brush: php">&lt;?php
class Simplicissimus_Rss_Block_List extends Mage_Rss_Block_List
{

public function getRssMiscFeeds()
{
$this-&gt;resetRssFeed();
//$this-&gt;NewProductRssFeed();
//$this-&gt;SpecialProductRssFeed();
$this-&gt;SalesRuleProductRssFeed();

// SBF
$this-&gt;BestsellerRssFeed();
$this-&gt;BestsellerWeeklyRssFeed();
$this-&gt;BestsellerMonthlyRssFeed();
$this-&gt;BestsellerNarcissusRssFeed();
$this-&gt;WorstsellerRssFeed();

return $this-&gt;getRssFeeds();
}

public function BestsellerRssFeed()
{
$path = self::XML_PATH_RSS_METHODS.&#039;/catalog/bestseller&#039;;
if((bool)Mage::getStoreConfig($path)){
$this-&gt;addRssFeed($path, $this-&gt;__(&#039;Ebook Bestseller (All time)&#039;));
}
}

public function BestsellerWeeklyRssFeed()
{
$path = self::XML_PATH_RSS_METHODS.&#039;/catalog/bestsellerweekly&#039;;
if((bool)Mage::getStoreConfig($path)){
$this-&gt;addRssFeed($path, $this-&gt;__(&#039;Ebook Bestseller (Ultima settimana)&#039;));
}
}

public function BestsellerMonthlyRssFeed()
{
$path = self::XML_PATH_RSS_METHODS.&#039;/catalog/bestsellermonthly&#039;;
if((bool)Mage::getStoreConfig($path)){
$this-&gt;addRssFeed($path, $this-&gt;__(&#039;Ebook Bestseller (Ultimo mese)&#039;));
}
}

public function BestsellerNarcissusRssFeed()
{
$path = self::XML_PATH_RSS_METHODS.&#039;/catalog/bestsellernarcissus&#039;;
if((bool)Mage::getStoreConfig($path)){
$this-&gt;addRssFeed($path, $this-&gt;__(&#039;Ebook Bestseller (Narcissus Self Published)&#039;));
}
}

public function WorstsellerRssFeed()
{
$path = self::XML_PATH_RSS_METHODS.&#039;/catalog/worstseller&#039;;
if((bool)Mage::getStoreConfig($path)){
$this-&gt;addRssFeed($path, $this-&gt;__(&#039;Ebook meno venduti&#039;));
}
}

}
</pre>
<p>Well done, now we need to create one block file for each new RSS Feed we wanna publish, this file will be the one with the collection inside. Here I put only one of this for example you should need to complete the others or to remove from the other files:</p>
<pre class="brush: php">
&lt;?php
class Simplicissimus_Rss_Block_Catalog_Bestseller extends Mage_Rss_Block_Abstract
{

/**
* Cache tag constant for feed reviews
*
* @var string
*/
const CACHE_TAG = &#039;block_html_rss_catalog_bestseller&#039;;

protected function _construct()
{
$this-&gt;setCacheTags(array(self::CACHE_TAG));
/*
* setting cache to save the rss for 10 minutes
*/
$this-&gt;setCacheKey(&#039;rss_catalog_bestseller&#039;);
$this-&gt;setCacheLifetime(600);
}

protected function _toHtml()
{
$newurl = Mage::getUrl(&#039;rss/catalog/bestseller&#039;);
$title = Mage::helper(&#039;rss&#039;)-&gt;__(&#039;Ebook Bestseller (All time)&#039;);

$rssObj = Mage::getModel(&#039;rss/rss&#039;);
$data = array(&#039;title&#039; =&gt; $title,
&#039;description&#039; =&gt; $title,
&#039;link&#039;        =&gt; $newurl,
&#039;charset&#039;     =&gt; &#039;UTF-8&#039;,
);
$rssObj-&gt;_addHeader($data);

$_productCollection = Mage::getResourceModel(&#039;reports/product_collection&#039;)
-&gt;addAttributeToSelect(&#039;*&#039;)
-&gt;addOrderedQty()
-&gt;addFieldToFilter(&#039;type_id&#039;,  array(&#039;like&#039;=&gt;&#039;downloadable&#039;))
-&gt;addAttributeToFilter(&#039;status&#039;, 1)
-&gt;setOrder(&#039;ordered_qty&#039;, &#039;desc&#039;)
-&gt;setCurPage(1)
-&gt;setPageSize(20);

if ($_productCollection) {
$args = array(&#039;rssObj&#039; =&gt; $rssObj);
foreach ($_productCollection as $_product) {
$args[&#039;product&#039;] = $_product;
$this-&gt;addBestsellerXmlCallback($args);
}
}

return $rssObj-&gt;createRssXml();
}

public function addBestsellerXmlCallback($args)
{
$product = Mage::getModel(&#039;catalog/product&#039;)-&gt;load($args[&#039;product&#039;][&#039;entity_id&#039;]);

Mage::dispatchEvent(&#039;rss_catalog_category_xml_callback&#039;, $args);

if ( $product-&gt;getTypeId() == &quot;downloadable&quot; )
$extendedDescr = &quot;&lt;p&gt;&lt;strong&gt;Autore: &lt;/strong&gt;&quot; . $product-&gt;getStealth_authors() . &quot;&lt;br /&gt;&lt;strong&gt;Editore: &lt;/strong&gt;&quot; . $product-&gt;getStealth_publisher() . &quot;&lt;br /&gt;&lt;strong&gt;Protezione: &lt;/strong&gt;&quot; . $product-&gt;getStealth_drm();
else
$extendedDescr = &quot;&lt;p&gt;&quot; . $product-&gt;getShortDescription() . &quot;&lt;/p&gt;&quot;;

//Mage::log($product-&gt;getData());

$description = &#039;&lt;table&gt;&lt;tr&gt;&#039;
. &#039;&lt;td&gt;&lt;a href=&quot;&#039;.$product-&gt;getProductUrl().&#039;&quot;&gt;&lt;img src=&quot;&#039;
. $this-&gt;helper(&#039;catalog/image&#039;)-&gt;init($product, &#039;thumbnail&#039;)-&gt;resize(75, 75)
. &#039;&quot; border=&quot;0&quot; align=&quot;left&quot; height=&quot;75&quot; width=&quot;75&quot;&gt;&lt;/a&gt;&lt;/td&gt;&#039;
. &#039;&lt;td  style=&quot;text-decoration:none;&quot;&gt;&#039; . $extendedDescr;

$description .= &#039;&lt;p&gt;&#039; . Mage::app()-&gt;getLocale()-&gt;currency(Mage::app()-&gt;getStore()-&gt;
getCurrentCurrencyCode())-&gt;getSymbol() . &quot; &quot; . $this-&gt;helper(&#039;tax&#039;)-&gt;getPrice($product, $product-&gt;getFinalPrice(), true) . &#039;&lt;/p&gt;&#039;;

$description .= &#039;&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;&#039;;
$rssObj = $args[&#039;rssObj&#039;];
$data = array(
&#039;title&#039;         =&gt; $product-&gt;getName(),
&#039;link&#039;          =&gt; $product-&gt;getProductUrl(),
&#039;description&#039;   =&gt; $description,
);

$rssObj-&gt;_addEntry($data);
}
}
</pre>
<p>You are almost done, now to display your new RSS custom feeds on the RSS page on your Magento (http://&lt;magento_root&gt;/rss) you only need to add them to the DB, simply add them to the table &#8220;core_config_data&#8221;:</p>
<ul>
<li>Scope: default</li>
<li>Scope_id: 0</li>
<li>path: rss/catalog/bestseller</li>
<li>value: 1</li>
</ul>
<p>You are done! Hope you find this guide useful.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/KAPihjSlg9-p-Ha-nQHyeH7iYA8/0/da"><img src="http://feedads.g.doubleclick.net/~a/KAPihjSlg9-p-Ha-nQHyeH7iYA8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/KAPihjSlg9-p-Ha-nQHyeH7iYA8/1/da"><img src="http://feedads.g.doubleclick.net/~a/KAPihjSlg9-p-Ha-nQHyeH7iYA8/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/michelem/~4/EJFSokEPT7E" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2011/06/08/magento-adding-you-own-custom-rss-feeds/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		<feedburner:origLink>http://www.michelem.org/2011/06/08/magento-adding-you-own-custom-rss-feeds/</feedburner:origLink></item>
		<item>
		<title>Magento adding downloadable product to cart by coding php</title>
		<link>http://feedproxy.google.com/~r/michelem/~3/sxzwn0H_Csw/</link>
		<comments>http://www.michelem.org/2011/02/23/magento-adding-downloadable-product-to-cart-by-coding-php/#comments</comments>
		<pubDate>Wed, 23 Feb 2011 18:14:15 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[internet]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[shopping]]></category>
		<category><![CDATA[addto]]></category>
		<category><![CDATA[carrello]]></category>
		<category><![CDATA[cart]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[downloadable]]></category>
		<category><![CDATA[method]]></category>
		<category><![CDATA[product]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=1018</guid>
		<description><![CDATA[Probably you know it&#8217;s possible to add a product to the cart via querystring, but may be you prefer code a new module for your needs using Magento objects and methods. So adding a simple product is easy: ... $cart = Mage::getSingleton(&#039;checkout/cart&#039;); // start adding the product try { $cart-&#62;addProduct($product, array(&#039;qty&#039; =&#62; 1)); // save [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Probably you know it&#8217;s possible to <a href="http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/catalog/adding_a_product_to_the_cart_via_querystring">add a product to the cart via querystring</a>, but may be you prefer code a new module for your needs using Magento objects and methods.</p>
<p>So adding a simple product is easy:</p>
<pre class="brush: php">

...

$cart = Mage::getSingleton(&#039;checkout/cart&#039;);

// start adding the product

try {

$cart-&gt;addProduct($product, array(&#039;qty&#039; =&gt; 1));

// save the cart

$cart-&gt;save();

$result = null;

} catch (Mage_Core_Exception $e) {

$result = $e-&gt;getMessage();

}
</pre>
<p>But how to add a Downloadable product with its right link? Just try this, it&#8217;s a controller I used to integrate an &#8220;add to cart&#8221; API:</p>
<pre class="brush: php">

public function cartaddAction()
{
$productId  = (int) $this-&gt;getRequest()-&gt;getParam(&#039;id&#039;);
$callback  = (string) $this-&gt;getRequest()-&gt;getParam(&#039;callback&#039;);

$cart = Mage::getSingleton(&#039;checkout/cart&#039;);

// call the Magento catalog/product model
$product = Mage::getModel(&#039;catalog/product&#039;)
// set the current store ID
-&gt;setStoreId(Mage::app()-&gt;getStore()-&gt;getId())
// load the product object
-&gt;load($productId);

$links = Mage::getModel(&#039;downloadable/product_type&#039;)-&gt;getLinks( $product );

foreach ( $links as $link )
if ( preg_match(&quot;/epub/i&quot;, $link-&gt;getTitle()) )
$linkId = $link-&gt;getLinkId();

// Here is the trick to add the right link id

$input = array( &#039;qty&#039; =&gt; 1, &#039;links&#039; =&gt; array( $linkId ) );
$request = new Varien_Object();
$request-&gt;setData($input);

// start adding the product
try {
$cart-&gt;addProduct($product, $request);
// save the cart
$cart-&gt;save();

$result = null;
} catch (Mage_Core_Exception $e) {
$result = $e-&gt;getMessage();
}

// very straightforward, set the cart as updated
Mage::getSingleton(&#039;checkout/session&#039;)-&gt;setCartWasUpdated(true);
}
</pre>

<p><a href="http://feedads.g.doubleclick.net/~a/A8svQQfgETiAshap34-MYJIZ_hc/0/da"><img src="http://feedads.g.doubleclick.net/~a/A8svQQfgETiAshap34-MYJIZ_hc/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/A8svQQfgETiAshap34-MYJIZ_hc/1/da"><img src="http://feedads.g.doubleclick.net/~a/A8svQQfgETiAshap34-MYJIZ_hc/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/michelem/~4/sxzwn0H_Csw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2011/02/23/magento-adding-downloadable-product-to-cart-by-coding-php/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		<feedburner:origLink>http://www.michelem.org/2011/02/23/magento-adding-downloadable-product-to-cart-by-coding-php/</feedburner:origLink></item>
	<item><title>Links for 2011-01-07 [del.icio.us]</title><link>http://feedproxy.google.com/~r/michelem/~3/1fy6CTNRNJc/michelem</link><pubDate>Sat, 08 Jan 2011 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/michelem#2011-01-07</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.quora.com/"&gt;Quora&lt;/a&gt;&lt;br/&gt;
Quora is a continually improving collection of questions and answers created, edited, and organized by everyone who uses it&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/michelem/~4/1fy6CTNRNJc" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/michelem#2011-01-07</feedburner:origLink></item><item><title>Links for 2010-12-13 [del.icio.us]</title><link>http://feedproxy.google.com/~r/michelem/~3/Ivsue6F8uNI/michelem</link><pubDate>Tue, 14 Dec 2010 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/michelem#2010-12-13</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.mashape.com/"&gt;Mashape | API Marketplace for Cloud based Services and OSS Projects&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/michelem/~4/Ivsue6F8uNI" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/michelem#2010-12-13</feedburner:origLink></item><item><title>Links for 2010-11-24 [del.icio.us]</title><link>http://feedproxy.google.com/~r/michelem/~3/uIiw-AbM8Pc/michelem</link><pubDate>Thu, 25 Nov 2010 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/michelem#2010-11-24</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.ibisreader.com/"&gt;Welcome | Ibis Reader &amp;trade;&lt;/a&gt;&lt;br/&gt;
Ibis Reader gets out of your way with its intuitive, unobtrusive reading interface. Extensive support for ebook design helps your books look their best.&lt;/li&gt;
&lt;li&gt;&lt;a href="http://bakerframework.com/"&gt;Baker Ebook Framework&lt;/a&gt;&lt;br/&gt;
HTML5 ebook framework&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/michelem/~4/uIiw-AbM8Pc" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/michelem#2010-11-24</feedburner:origLink></item><item><title>Links for 2010-11-08 [del.icio.us]</title><link>http://feedproxy.google.com/~r/michelem/~3/TrQYR2JxX5Y/michelem</link><pubDate>Tue, 09 Nov 2010 00:00:00 PST</pubDate><guid isPermaLink="false">http://del.icio.us/michelem#2010-11-08</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.nudgemail.com/"&gt;Nudgemail | The World's First Fully Email-based Reminder System&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/michelem/~4/TrQYR2JxX5Y" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/michelem#2010-11-08</feedburner:origLink></item><item><title>Links for 2010-10-26 [del.icio.us]</title><link>http://feedproxy.google.com/~r/michelem/~3/AiNdl0RFGZo/michelem</link><pubDate>Wed, 27 Oct 2010 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/michelem#2010-10-26</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.position-absolute.com/articles/jquery-form-validator-because-form-validation-is-a-mess/"&gt;Position Absolute, web apps and front-end stuff - A jQuery inline form validation, because validation is a mess &amp;laquo;&lt;/a&gt;&lt;br/&gt;
A jQuery inline form validation, because validation is a mess&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/michelem/~4/AiNdl0RFGZo" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/michelem#2010-10-26</feedburner:origLink></item><item><title>Links for 2010-10-14 [del.icio.us]</title><link>http://feedproxy.google.com/~r/michelem/~3/xOOG8AEQM40/michelem</link><pubDate>Fri, 15 Oct 2010 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/michelem#2010-10-14</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.dfc-e.com/metiers/multimedia/opensource/jqtransform/"&gt;Opensource - AJAX - Jqtransform - jQuery form plugin&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/michelem/~4/xOOG8AEQM40" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/michelem#2010-10-14</feedburner:origLink></item><item><title>Links for 2010-09-29 [del.icio.us]</title><link>http://feedproxy.google.com/~r/michelem/~3/3VX3GzpAFzo/michelem</link><pubDate>Thu, 30 Sep 2010 00:00:00 PDT</pubDate><guid isPermaLink="false">http://del.icio.us/michelem#2010-09-29</guid><description>&lt;ul&gt;
&lt;li&gt;&lt;a href="http://www.etsy.com/"&gt;Etsy - Your place to buy and sell all things handmade, vintage, and supplies&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;img src="http://feeds.feedburner.com/~r/michelem/~4/3VX3GzpAFzo" height="1" width="1"/&gt;</description><feedburner:origLink>http://del.icio.us/michelem#2010-09-29</feedburner:origLink></item></channel>
</rss><!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk: basic
Page Caching using disk: enhanced
Object Caching 1420/1664 objects using disk: basic

Served from: www.michelem.org @ 2012-05-11 01:28:14 -->

