<?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>Mon, 30 Jan 2012 09:57:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</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>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>0</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>11</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>Magento Export products in custom XML [script]</title>
		<link>http://feedproxy.google.com/~r/michelem/~3/mdzVmjyQ_mg/</link>
		<comments>http://www.michelem.org/2010/12/20/magento-export-products-in-custom-xml-script/#comments</comments>
		<pubDate>Mon, 20 Dec 2010 18:24:49 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[downloadable]]></category>
		<category><![CDATA[export]]></category>
		<category><![CDATA[links]]></category>
		<category><![CDATA[products]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=995</guid>
		<description><![CDATA[If you have to export all or a part of your Magento products you can try this simple script which creates a products collection and writes a simple and custom XML file per product (but you can simply change it to write a single long XML file). Hope you enjoy it! &#60;?php // Magento XML [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>If you have to export all or a part of your Magento products you can try this simple script which creates a products collection and writes a simple and custom XML file per product (but you can simply change it to write a single long XML file).</p>
<p>Hope you enjoy it!</p>
<pre class="brush: php">
&lt;?php
// Magento XML products exporter
// Version 0.1
// by Michele Marcucci
// http://www.michelem.org

require_once &#039;app/Mage.php&#039;;
umask( 0 );
Mage::app( &quot;default&quot; );
Mage::app()-&gt;setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);

$_magentoPath = &quot;CHANGETHISTOYOURMAGENTOPATH ex: /var/virtual/magento&quot;
$_urlPath = &quot;&quot;;
$_imagePath = $_urlPath . &quot;media&quot;;
$_logFileName = &quot;export_products.log&quot;;
$_xmlPath = $_magentoPath . &quot;/var/export&quot;;

Mage::log( &quot;Export start&quot;, null, $_logFileName );

// Prepare collection
$_productCollection = Mage::getModel(&#039;catalog/product&#039;)-&gt;getCollection();
$_productCollection-&gt;addAttributeToSelect(&#039;*&#039;);

/* You can change and uncomment these lines below to filter your products collection */

// Filter by updated_at date, get only daily changes
//$_productCollection-&gt;addFieldToFilter(&#039;updated_at&#039;, array(&#039;from&#039;=&gt;date(&quot;Y-m-d&quot;, time()-86400)));

// Filter by product type, get only downloadables
//$_productCollection-&gt;addFieldToFilter(&#039;type_id&#039;,  array(&#039;like&#039;=&gt;&#039;downloadable&#039;));

// Filter by sku get only products with sku like &quot;EBOOK-%&quot;
//$_productCollection-&gt;addFieldToFilter(&#039;sku&#039;,  array(&#039;like&#039;=&gt;&#039;EBOOK-%&#039;));

// Limit output to 15 records
//$_productCollection-&gt;getSelect()-&gt;limit(15);

Mage::log( &quot;Products to be exported: &quot; . $_productCollection-&gt;count(), null, $_logFileName );

$i = 1;
foreach ( $_productCollection as $_product ) {

	// Prepare array of variables to grow XML file
    $v[&#039;sku&#039;] = $_product-&gt;getSku();
    $v[&#039;product_name&#039;] = $_product-&gt;getName();
	$v[&#039;type&#039;] = $_product-&gt;getTypeId();
    $v[&#039;description&#039;] = $_product-&gt;getDescription();
    $v[&#039;short_description&#039;] = $_product-&gt;getShortDescription();
    $v[&#039;meta_title&#039;] = $_product-&gt;getMetaTitle();
    $v[&#039;meta_description&#039;] = $_product-&gt;getMetaDescription();
    $v[&#039;meta_keyword&#039;] = $_product-&gt;getMetaKeyword();
    $v[&#039;created_at&#039;] = $_product-&gt;getCreatedAt();
    $v[&#039;updated_at&#039;] = $_product-&gt;getUpdatedAt();
    $v[&#039;url_path&#039;] = $_urlPath . $_product-&gt;geturlpath();
    $v[&#039;image&#039;] = $_imagePath . $_product-&gt;getImage();
    $v[&#039;image_label&#039;] = $_product-&gt;getImageLabel();
  	$v[&#039;price&#039;] = $_product-&gt;getPrice();
   	$v[&#039;special_price&#039;] = $_product-&gt;getSpecialPrice();
    $v[&#039;weight&#039;] = $_product-&gt;getWeight();

	// Get the Magento categories for the product
    $categoryIds = $_product-&gt;getCategoryIds();

	foreach($categoryIds as $categoryId) {
    	$category = Mage::getModel(&#039;catalog/category&#039;)-&gt;load($categoryId);
    	$v[&#039;categories&#039;][$_product-&gt;getSku()][] = $category-&gt;getName();
	}

    // If product is downloadable get some informations about links added
    if ( $_product-&gt;getTypeId() == &quot;downloadable&quot; ) {
    	$_links = Mage::getModel(&#039;downloadable/product_type&#039;)-&gt;getLinks( $_product );
    	foreach ( $_links as $_link )
    		$v[&#039;available_formats&#039;][$_product-&gt;getSku()][] = $_link-&gt;getTitle();
    }

	// Prepare XML file to save
	$xmlFile = $_xmlPath . &quot;/&quot; . $_product-&gt;getSku() . &quot;.xml&quot;;

	$doc = new DomDocument(&#039;1.0&#039;, &#039;UTF-8&#039;);
	$doc-&gt;preserveWhiteSpace = false;
	$doc-&gt;formatOutput = true;	

	$root = $doc-&gt;createElement(&#039;product&#039;);
	$root = $doc-&gt;appendChild($root);

	$occ = $doc-&gt;createElement(&#039;root&#039;);
	$occ = $root-&gt;appendChild($occ);

	foreach ( $v as $fieldName =&gt; $fieldValue ) {
		$child = $doc-&gt;createElement($fieldName);
    	$child = $occ-&gt;appendChild($child);

		if ( is_array($fieldValue) ) {
			$value = $doc-&gt;createTextNode(implode( &quot;|&quot;, $fieldValue[$_product-&gt;getSku()] ));
			$value = $child-&gt;appendChild($value);
		} else {
			$value = $doc-&gt;createTextNode($fieldValue);
			$value = $child-&gt;appendChild($value);
		}

	}

	// Save each product as XML file
	$doc-&gt;save( $xmlFile );

	Mage::log( &quot;File &quot; . $i . &quot;: &quot; . $_product-&gt;getSku(), null, $_logFileName );

	$i++;
}

Mage::log( &quot;Export done&quot;, null, $_logFileName );
</pre>

<p><a href="http://feedads.g.doubleclick.net/~a/zFs2P79RTfOi_4Zi5_pW8laRuGo/0/da"><img src="http://feedads.g.doubleclick.net/~a/zFs2P79RTfOi_4Zi5_pW8laRuGo/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/zFs2P79RTfOi_4Zi5_pW8laRuGo/1/da"><img src="http://feedads.g.doubleclick.net/~a/zFs2P79RTfOi_4Zi5_pW8laRuGo/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/michelem/~4/mdzVmjyQ_mg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2010/12/20/magento-export-products-in-custom-xml-script/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		<feedburner:origLink>http://www.michelem.org/2010/12/20/magento-export-products-in-custom-xml-script/</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><item>
		<title>Integrate WordPress functions on Magento</title>
		<link>http://feedproxy.google.com/~r/michelem/~3/eLAMHAK0lIs/</link>
		<comments>http://www.michelem.org/2010/03/17/integrate-wordpress-functions-on-magento/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 16:13:54 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[hacks]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[wordpress]]></category>
		<category><![CDATA[coding]]></category>
		<category><![CDATA[integration]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=988</guid>
		<description><![CDATA[Per integrare tutte le funzioni di WordPress su Magento in modo da poter fare chiamate come wp_list_pages(), wp_list_categories() o la famosa WP_Query, basta far caricare WordPress da Magento prima che si carichi lui stesso (per evitare il sovrapporsi di header e funzioni varie). Aprite il file index.php di Magento, all&#8217;inzio inserite le due righe: define(&#039;WP_USE_THEMES&#039;, false); require(&#039;/&#60;you absolute path to wordpress root&#62;/wp-load.php&#039;); [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<div>
<p>Per integrare tutte le funzioni di <a href="/tag/wordpress">WordPress</a> su <a href="/tag/magento">Magento</a> in modo da poter fare chiamate come wp_list_pages(), wp_list_categories() o la famosa WP_Query, basta far caricare WordPress da Magento prima che si carichi lui stesso (per evitare il sovrapporsi di header e funzioni varie).</p>
<p>Aprite il file index.php di Magento, all&#8217;inzio inserite le due righe:</p>
<pre class="brush: php">
define(&#039;WP_USE_THEMES&#039;, false);
require(&#039;/&lt;you absolute path to wordpress root&gt;/wp-load.php&#039;);
</pre>
<div>Ora rimane solo un piccolo problema, sia WordPress che Magento usano una funzione per fare la traduzione delle frasi, questa funzione purtroppo si chiama allo stesso moto &#8220;__&#8221; (2 underscore attaccati), per questo Magento andra&#8217; in crisi (error redeclared function).</div>
<div>Per risolvere il problema basta andare ad aggiungere una condizione alla funzione di magento, nel file &#8220;app/code/core/Mage/Core/functions.php&#8221; fate diventare la funzione &#8220;__()&#8221; cosi&#8217;:</div>
<pre class="brush: php">
if (!function_exists(&#039;__&#039;)) {
function __() {
return Mage::app()-&gt;getTranslator()-&gt;translate(func_get_args();
}
}</pre>
<p>Ora siete in grado di usare tutte le funzioni WordPress all&#8217;interno dei template Magento senza dover fare nulla di piu&#8217;.</p>
</div>

<p><a href="http://feedads.g.doubleclick.net/~a/VFxeqUl8B5DhUaIAMSRgeFgfnfM/0/da"><img src="http://feedads.g.doubleclick.net/~a/VFxeqUl8B5DhUaIAMSRgeFgfnfM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/VFxeqUl8B5DhUaIAMSRgeFgfnfM/1/da"><img src="http://feedads.g.doubleclick.net/~a/VFxeqUl8B5DhUaIAMSRgeFgfnfM/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/michelem/~4/eLAMHAK0lIs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2010/03/17/integrate-wordpress-functions-on-magento/feed/</wfw:commentRss>
		<slash:comments>24</slash:comments>
		<feedburner:origLink>http://www.michelem.org/2010/03/17/integrate-wordpress-functions-on-magento/</feedburner:origLink></item>
		<item>
		<title>Best Google Chrome Extensions SEO, Screenshot, Delicious…</title>
		<link>http://feedproxy.google.com/~r/michelem/~3/7AnIUwCPSUg/</link>
		<comments>http://www.michelem.org/2010/03/08/best-google-chrome-extensions-seo-screenshot-delicious/#comments</comments>
		<pubDate>Mon, 08 Mar 2010 10:49:16 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[desktop]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[check]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[del.icio.us]]></category>
		<category><![CDATA[extensions]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[pagerank]]></category>
		<category><![CDATA[plugins]]></category>
		<category><![CDATA[screenshot]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=972</guid>
		<description><![CDATA[Here is my current Google Chrome extensions I use every days, hope you find something useful. You could find your best extensions in the official Google Chrome Extensions site. SEO Status Pagerank/Alexa Toolbar SEO Status is lightweight. It will check the Google Pagerank (PR) &#38; Alexa rank for every page. Using this will increase your [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Here is my current Google Chrome extensions I use every days, hope you find something useful.</p>
<p>You could find your best extensions in the official <a href="https://chrome.google.com/extensions">Google Chrome Extensions</a> site.</p>
<p><a href="http://www.michelem.org/wp-content/uploads/2010/03/seostatus.png" rel="lightbox"><img class="alignleft size-full wp-image-973" title="seostatus" src="http://www.michelem.org/wp-content/uploads/2010/03/seostatus.png" alt="" width="48" height="48" /></a></p>
<p><a href="https://chrome.google.com/extensions/detail/bjgpmafbkgcchdjehdpnfgfgbdfahapa?hl=en-us"><strong>SEO Status Pagerank/Alexa Toolbar</strong></a></p>
<p>SEO Status is lightweight. It will check the Google Pagerank (PR) &amp; Alexa rank for every page. Using this will increase your Alexa.</p>
<p><a href="http://www.michelem.org/wp-content/uploads/2010/03/chomicious.png" rel="lightbox"><img class="alignleft size-full wp-image-974" title="chomicious" src="http://www.michelem.org/wp-content/uploads/2010/03/chomicious.png" alt="" width="48" height="48" /></a></p>
<p><a href="https://chrome.google.com/extensions/detail/animchmhhndbcfahoigdpelodbhnhepg?hl=en-us"><strong>Chromicious (Delicious Bookmarks)</strong></a></p>
<p>Chromicious integrates your Delicious bookmarks with Google Chrome and keeps them in sync for easy access.</p>
<p><a href="http://www.michelem.org/wp-content/uploads/2010/03/chormeseo.png" rel="lightbox"><img class="alignleft size-full wp-image-975" title="chormeseo" src="http://www.michelem.org/wp-content/uploads/2010/03/chormeseo.png" alt="" width="48" height="48" /></a></p>
<p><a href="https://chrome.google.com/extensions/detail/oangcciaeihlfmhppegpdceadpfaoclj?hl=en-us"><strong>Chrome SEO</strong></a></p>
<p>The Google Chrome SEO Extension. Make your SEO tasks easier with Chrome SEO Tools, includes &#8216;all&#8217; the stats and data you need.</p>
<p><a href="http://www.michelem.org/wp-content/uploads/2010/03/mailcheck.png" rel="lightbox"><img class="alignleft size-full wp-image-976" title="mailcheck" src="http://www.michelem.org/wp-content/uploads/2010/03/mailcheck.png" alt="" width="48" height="48" /></a></p>
<p><a href="https://chrome.google.com/extensions/detail/gffjhibehnempbkeheiccaincokdjbfe?hl=en-us"><strong>Google Mail Checker Plus</strong></a></p>
<p>Displays the number of unread messages in your Gmail and Google Apps inbox. Preview mail, read, delete, archive and mark as spam!</p>
<p><a href="http://www.michelem.org/wp-content/uploads/2010/03/download.png" rel="lightbox"><img class="alignleft size-full wp-image-978" title="download" src="http://www.michelem.org/wp-content/uploads/2010/03/download.png" alt="" width="48" height="48" /></a></p>
<p><a href="https://chrome.google.com/extensions/detail/ckibcdccnfeookdmbahgiakhnjcddpki?hl=en-us"><strong>Webpage Screenshot</strong></a></p>
<p>Fast&amp;Simple solution to save JPG screenshots of any webpage. The first extension that captures the whole page.</p>

<p><a href="http://feedads.g.doubleclick.net/~a/avonn_7JU_z_n8PLqgFQQrrpLd0/0/da"><img src="http://feedads.g.doubleclick.net/~a/avonn_7JU_z_n8PLqgFQQrrpLd0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/avonn_7JU_z_n8PLqgFQQrrpLd0/1/da"><img src="http://feedads.g.doubleclick.net/~a/avonn_7JU_z_n8PLqgFQQrrpLd0/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/michelem/~4/7AnIUwCPSUg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2010/03/08/best-google-chrome-extensions-seo-screenshot-delicious/feed/</wfw:commentRss>
		<slash:comments>45</slash:comments>
		<feedburner:origLink>http://www.michelem.org/2010/03/08/best-google-chrome-extensions-seo-screenshot-delicious/</feedburner:origLink></item>
		<item>
		<title>Magento ecommerce tips &amp; tricks</title>
		<link>http://feedproxy.google.com/~r/michelem/~3/pTX9SheBtqk/</link>
		<comments>http://www.michelem.org/2010/03/01/magento-ecommerce-tips-tricks/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 10:51:44 +0000</pubDate>
		<dc:creator>michele</dc:creator>
				<category><![CDATA[code]]></category>
		<category><![CDATA[open source]]></category>
		<category><![CDATA[shopping]]></category>
		<category><![CDATA[administration]]></category>
		<category><![CDATA[ecommerce]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[manage]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[pear]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[report]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.michelem.org/?p=965</guid>
		<description><![CDATA[Tanto per non scordarmeli appunto alcuni suggerimenti molto utili sulla gestione di Magento: per disabilitare la frase &#8220;Exception printing is disabled by default for security reasons&#8221; quando occorre un errore e farlo printare a schermo basta modificare il file &#8220;errors/local.xml.sample&#8221; se invece non volete abilitare il printing (che e&#8217; meglio) ma volete comunque vedere di [...]]]></description>
			<content:encoded><![CDATA[
<!-- ALL ADSENSE ADS DISABLED -->
<p>Tanto per non scordarmeli appunto alcuni suggerimenti molto utili sulla gestione di Magento:</p>
<ul>
<li>per disabilitare la frase &#8220;<em>Exception printing is disabled by default for security reasons</em>&#8221; quando occorre un errore e farlo printare a schermo basta modificare il file &#8220;errors/local.xml.sample&#8221;</li>
<li>se invece non volete abilitare il printing (che e&#8217; meglio) ma volete comunque vedere di che errore si tratta i report si trovano in &#8220;var/reports/&lt;numero_errore&gt;&#8221;</li>
<li>se usate la versione 1.4.0.1 ho notato un bug che non vi permette di usare Magento Connect, per risolverlo leggete il thread che ho scritto qui: <a href="http://www.magentocommerce.com/boards/viewthread/79051/">include_path problem with Magento Connect and 1.4.0.1</a></li>
<li>per installare la lingua italiana (locale) da shell basta fare: <code>cd root/path/to/magento &amp;&amp; ./pear install magento-community/Locale_Mage_community_it_IT</code></li>
<li>per cancellare completamente degli ordini installate l&#8217;estensione &#8220;<a href="http://www.magentocommerce.com/extension/873/delete-orders/">Delete Orders</a>&#8220;: <code>cd root/path/to/magento &amp;&amp; ./pear install magento-community/BoutikCircus_DeleteOrders</code></li>
</ul>

<p><a href="http://feedads.g.doubleclick.net/~a/_kR9-gvrnPETquM4HVjf9hlUhqQ/0/da"><img src="http://feedads.g.doubleclick.net/~a/_kR9-gvrnPETquM4HVjf9hlUhqQ/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/_kR9-gvrnPETquM4HVjf9hlUhqQ/1/da"><img src="http://feedads.g.doubleclick.net/~a/_kR9-gvrnPETquM4HVjf9hlUhqQ/1/di" border="0" ismap="true"></img></a></p><img src="http://feeds.feedburner.com/~r/michelem/~4/pTX9SheBtqk" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://www.michelem.org/2010/03/01/magento-ecommerce-tips-tricks/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		<feedburner:origLink>http://www.michelem.org/2010/03/01/magento-ecommerce-tips-tricks/</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 1427/1672 objects using disk: basic

Served from: www.michelem.org @ 2012-02-08 03:29:24 -->

