<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	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"
	>

<channel>
	<title>Casual Commerce</title>
	<atom:link href="http://www.casualcommerce.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.casualcommerce.com</link>
	<description>e-commerce full service provider</description>
	<pubDate>Wed, 11 Nov 2009 15:47:28 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.3</generator>
	<language>en</language>
			<item>
		<title>Magento Notes &#8212; Customizing the RSS Feed that Magento Outputs</title>
		<link>http://www.casualcommerce.com/2009/11/magento-notes-customizing-the-rss-feed-that-magento-outputs/</link>
		<comments>http://www.casualcommerce.com/2009/11/magento-notes-customizing-the-rss-feed-that-magento-outputs/#comments</comments>
		<pubDate>Wed, 11 Nov 2009 15:47:28 +0000</pubDate>
		<dc:creator>Jerry Lee</dc:creator>
		
		<category><![CDATA[blog posting]]></category>

		<category><![CDATA[e-commerce]]></category>

		<category><![CDATA[magento]]></category>

		<category><![CDATA[chosen29.com]]></category>

		<category><![CDATA[magento notes]]></category>

		<guid isPermaLink="false">http://www.casualcommerce.com/?p=350</guid>
		<description><![CDATA[One of the marketing strategy employed by many e-commerce sits is to provide product feeds (RSS) to have them be displayed in an affiliate or partner blog or content-driven web sites.  I&#8217;ve recently came across this need to do just that and what I have found is that the default Magento RSS feed is clunky [...]]]></description>
			<content:encoded><![CDATA[<p>One of the marketing strategy employed by many e-commerce sits is to provide product feeds (RSS) to have them be displayed in an affiliate or partner blog or content-driven web sites.  I&#8217;ve recently came across this need to do just that and what I have found is that the default Magento RSS feed is clunky and display the entire product description as part of the feed items.  The way to customize the output is go to into the following file (<span style="color: #ff0000;"><strong>NOTE</strong></span>: this workaround requires modify Magento core file, which may become a hassle and you update your Magento installation):</p>
<p><strong>\app\code\core\Mage\Rss\Block\Catalog\</strong></p>
<p>under the above folder, you will see different files (category.php, new.php, tag.php, etc.) each file controls the output of each type of RSS feed Magento has built in by default. So if you want to modify the RSS feed format for your products in a certain category you would modify the category.php file. For me, i was looking at syndicating my new products, so I modified new.php file.</p>
<p>When opening up the new.php file, scroll down to approximately line 99-104, under the <strong>public function addNewItemXmlCallback($args)</strong> is where the RSS feed content is formatted, so you can simply move around the html table and or select to replace the product description with the short description, etc.  For me, I simply removed the long description and kept the pricing, product image and the product title. Below is my revised output code snippet:</p>
<blockquote><p>$description = &#8216;&lt;table&gt;&lt;tr&gt;&#8217;.<br />
&#8216;&lt;td&gt;&lt;a href=&#8221;&#8216;.$product-&gt;getProductUrl().&#8217;&#8221;&gt;&lt;img src=&#8221;&#8216;. $this-&gt;helper(&#8217;catalog/image&#8217;)-&gt;init($product, &#8216;thumbnail&#8217;)-&gt;resize(75, 75) .&#8217;&#8221; border=&#8221;0&#8243; align=&#8221;left&#8221; height=&#8221;75&#8243; width=&#8221;75&#8243;&gt;&lt;/a&gt;&lt;br&gt;Price:&#8217;.Mage::helper(&#8217;core&#8217;)-&gt;currency($product-&gt;getPrice()).<br />
($product-&gt;getPrice() != $final_price  ? &#8216; Special Price:&#8217;. Mage::helper(&#8217;core&#8217;)-&gt;currency($final_price) : &#8221;).<br />
&#8216;&lt;/td&gt;&#8217;.<br />
&#8216;&lt;/tr&gt;&lt;/table&gt;&#8217;;</p></blockquote>
<p>and the output looks like the following when it gets syndicated to a content driven site, you see the RSS feed of the products at the right side of the screen:</p>
<div id="attachment_351" class="wp-caption aligncenter" style="width: 310px"><a href="http://links.chosen29.com"><img class="size-medium wp-image-351 " title="rss_feed_chosen" src="http://www.casualcommerce.com/wp-content/uploads/2009/11/rss_feed_chosen-300x202.jpg" alt="http://links.chosen29.com - this is a PLIGG-driven bookmarking web site similar to Digg.com" width="300" height="202" /></a><p class="wp-caption-text">http://links.chosen29.com - this is a PLIGG-driven bookmarking web site similar to Digg.com</p></div>
<p>The RSS feed from Magento is fed through Google&#8217;s Feedburner and then syndicated thereafter, primarily for the purpose of better exposure and trackability.</p>
<p>Lastly, here&#8217;s a shameless plug, please visit my new web site at <a href="http://www.Chosen29.com">Chosen29.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.casualcommerce.com/2009/11/magento-notes-customizing-the-rss-feed-that-magento-outputs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Magento Notes &#8212; Add Address Field to Customer Export</title>
		<link>http://www.casualcommerce.com/2009/10/magento-notes-add-address-field-to-customer-export/</link>
		<comments>http://www.casualcommerce.com/2009/10/magento-notes-add-address-field-to-customer-export/#comments</comments>
		<pubDate>Fri, 02 Oct 2009 22:46:06 +0000</pubDate>
		<dc:creator>Jerry Lee</dc:creator>
		
		<category><![CDATA[magento]]></category>

		<category><![CDATA[technical notes]]></category>

		<guid isPermaLink="false">http://www.casualcommerce.com/?p=347</guid>
		<description><![CDATA[Recently came across something weird when a client asked how come when they are in the admin interface: Customers -&#62; Manage Customers, and then they click on &#8220;Export to CSV&#8221; the Address field isn&#8217;t export.  I don&#8217;t understand the logic of why the address is omitted.
Funny thing is that the fix to include the Address [...]]]></description>
			<content:encoded><![CDATA[<p>Recently came across something weird when a client asked how come when they are in the admin interface: <strong>Customers -&gt; Manage Customers</strong>, and then they click on &#8220;<strong>Export to CSV</strong>&#8221; the Address field isn&#8217;t export.  I don&#8217;t understand the logic of why the address is omitted.</p>
<p>Funny thing is that the fix to include the Address field isn&#8217;t straightforward and NOBODY ran into this problem, as there were no postings on Magento forum nor google search&#8230;I was surprised.  Anyways, what happens when users click on &#8220;Export to CSV&#8221; is essentially what you see in the grid below it is what gets exported, so the fix is to include the Address field in grid.  The file to modify is a core file, so you would have to update this when you do a Magento upgrade. Here&#8217;s the path to the file:</p>
<p><a href="http://www.casualcommerce.com/wp-content/uploads/2009/10/magento_customer.png"><img class="aligncenter size-medium wp-image-348" title="magento_customer" src="http://www.casualcommerce.com/wp-content/uploads/2009/10/magento_customer-300x71.png" alt="" width="300" height="71" /></a></p>
<p>app/code/core/Mage/Adminhtml/Block/Customer/grid.php</p>
<p>Near line 45 you will find the below block of code, you will add the line that is in bold:</p>
<blockquote><p>protected function _prepareCollection()<br />
{<br />
$collection = Mage::getResourceModel(&#8217;customer/customer_collection&#8217;)<br />
-&gt;addNameToSelect()<br />
-&gt;addAttributeToSelect(&#8217;email&#8217;)<br />
-&gt;addAttributeToSelect(&#8217;created_at&#8217;)<br />
-&gt;addAttributeToSelect(&#8217;group_id&#8217;)<br />
<strong>-&gt;joinAttribute(&#8217;billing_street&#8217;, &#8216;customer_address/street&#8217;, &#8216;default_billing&#8217;, null, &#8216;left&#8217;)</strong><br />
-&gt;joinAttribute(&#8217;billing_postcode&#8217;, &#8216;customer_address/postcode&#8217;, &#8216;default_billing&#8217;, null, &#8216;left&#8217;)<br />
-&gt;joinAttribute(&#8217;billing_city&#8217;, &#8216;customer_address/city&#8217;, &#8216;default_billing&#8217;, null, &#8216;left&#8217;)<br />
-&gt;joinAttribute(&#8217;billing_telephone&#8217;, &#8216;customer_address/telephone&#8217;, &#8216;default_billing&#8217;, null, &#8216;left&#8217;)<br />
-&gt;joinAttribute(&#8217;billing_region&#8217;, &#8216;customer_address/region&#8217;, &#8216;default_billing&#8217;, null, &#8216;left&#8217;)<br />
-&gt;joinAttribute(&#8217;billing_country_id&#8217;, &#8216;customer_address/country_id&#8217;, &#8216;default_billing&#8217;, null, &#8216;left&#8217;);</p>
<p>$this-&gt;setCollection($collection);</p>
<p>return parent::_prepareCollection();<br />
}</p></blockquote>
<p>Then near line 103 add a the code below in bold:</p>
<blockquote><p>$this-&gt;addColumn(&#8217;Telephone&#8217;, array(<br />
&#8216;header&#8217;    =&gt; Mage::helper(&#8217;customer&#8217;)-&gt;__(&#8217;Telephone&#8217;),<br />
&#8216;width&#8217;     =&gt; &#8216;100&#8242;,<br />
&#8216;index&#8217;     =&gt; &#8216;billing_telephone&#8217;<br />
));<br />
<strong> $this-&gt;addColumn(&#8217;billing_address&#8217;, array(<br />
&#8216;header&#8217;    =&gt; Mage::helper(&#8217;customer&#8217;)-&gt;__(&#8217;Address&#8217;),<br />
&#8216;width&#8217;     =&gt; &#8216;150&#8242;,<br />
&#8216;index&#8217;     =&gt; &#8216;billing_street&#8217;<br />
));</strong></p></blockquote>
<p>Now you should see Address field displayed in the grid and when export is clicked it would export the field accordingly.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.casualcommerce.com/2009/10/magento-notes-add-address-field-to-customer-export/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Magento Notes &#8212; Adding Company Name, Address, Phone in Registration Form</title>
		<link>http://www.casualcommerce.com/2009/08/magento-notes-adding-company-name-address-phone-in-registration-form/</link>
		<comments>http://www.casualcommerce.com/2009/08/magento-notes-adding-company-name-address-phone-in-registration-form/#comments</comments>
		<pubDate>Wed, 26 Aug 2009 16:41:08 +0000</pubDate>
		<dc:creator>Jerry Lee</dc:creator>
		
		<category><![CDATA[blog posting]]></category>

		<category><![CDATA[magento]]></category>

		<category><![CDATA[technical notes]]></category>

		<category><![CDATA[address]]></category>

		<category><![CDATA[company name]]></category>

		<category><![CDATA[fields]]></category>

		<category><![CDATA[registration form]]></category>

		<guid isPermaLink="false">http://www.casualcommerce.com/?p=344</guid>
		<description><![CDATA[This is a simple yet practical fix that, for some reason, Magento never got around to enabling upto Magento Version 1.3.2.3.
Basically by default the Magento registration form only requires you to enter First Name, Last Name, Email and VAT/Tax Number, but that in a real world scenario is not practical and not enough for business [...]]]></description>
			<content:encoded><![CDATA[<p>This is a simple yet practical fix that, for some reason, Magento never got around to enabling upto Magento Version 1.3.2.3.</p>
<p>Basically by default the Magento registration form only requires you to enter First Name, Last Name, Email and VAT/Tax Number, but that in a real world scenario is not practical and not enough for business owners to follow up on.  Base on looking into the code here: <strong>app/design/frontend/default/blue/template/customer/form/register.phtml</strong>, we know Magento has every intention of adding additional fields, just they haven&#8217;t been enabled.</p>
<p>By following the fix <a href="http://www.magentocommerce.com/boards/viewthread/11110/">here</a>, you can reveal the additional fields. Essentially you just have to comment out a IF-Then statement to reveal the proper form fields. Below is the result:</p>
<p><a href="http://www.casualcommerce.com/wp-content/uploads/2009/08/create-new-customer-account_1251304453762.png"><img class="aligncenter size-medium wp-image-345" title="create-new-customer-account_1251304453762" src="http://www.casualcommerce.com/wp-content/uploads/2009/08/create-new-customer-account_1251304453762-300x213.png" alt="" width="300" height="213" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.casualcommerce.com/2009/08/magento-notes-adding-company-name-address-phone-in-registration-form/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Tickon.com for Sale</title>
		<link>http://www.casualcommerce.com/2009/07/tickoncom-for-sale/</link>
		<comments>http://www.casualcommerce.com/2009/07/tickoncom-for-sale/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 15:50:17 +0000</pubDate>
		<dc:creator>Jerry Lee</dc:creator>
		
		<category><![CDATA[blog posting]]></category>

		<category><![CDATA[e-commerce]]></category>

		<category><![CDATA[magento]]></category>

		<category><![CDATA[for sale]]></category>

		<category><![CDATA[tickon.com]]></category>

		<guid isPermaLink="false">http://www.casualcommerce.com/?p=340</guid>
		<description><![CDATA[We are selling our e-commerce web site: www.tickon.com.
Why are we selling? Becuase we have more projects to work on, and we simply don&#8217;t have time to operate the business side of the e-commerce site, and that includes marketing the site, fulfilling orders, finding new products, and most importantly &#8212; providing excellent customer service.
How much are [...]]]></description>
			<content:encoded><![CDATA[<p>We are selling our e-commerce web site: <a href="http://www.tickon.com">www.tickon.com</a>.</p>
<p><strong>Why are we selling?</strong> Becuase we have more projects to work on, and we simply don&#8217;t have time to operate the business side of the e-commerce site, and that includes marketing the site, fulfilling orders, finding new products, and most importantly &#8212; providing excellent customer service.</p>
<p><strong>How much are you selling for? </strong>Make your best offer and we will consider every bid.  We just want the site to be in good hands; someone willing to put in the effort to market the site.</p>
<p><strong>What&#8217;s included? </strong>We will include the domain name, help you move to your desired web hosting company? or we will host it for you for a small monthly fee. You will also have the code (the site runs on Magento 1.2.1), and the existing database, and you will be hooked up with the product supplier for future order fulfilment (they are a great supplier to work with!!).</p>
<p>For more information email me at jerry at casualcommerce dot com<a href="http://www.tickon.com"><img class="aligncenter size-medium wp-image-341" title="home-page_1248796098212" src="http://www.casualcommerce.com/wp-content/uploads/2009/07/home-page_1248796098212-300x240.png" alt="" width="300" height="240" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.casualcommerce.com/2009/07/tickoncom-for-sale/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Digg Clone &#8212; PLIGG &#8212; Showcasing News.52my.Info</title>
		<link>http://www.casualcommerce.com/2009/07/digg-clone-pligg-showcasing-news52myinfo/</link>
		<comments>http://www.casualcommerce.com/2009/07/digg-clone-pligg-showcasing-news52myinfo/#comments</comments>
		<pubDate>Sat, 18 Jul 2009 14:23:28 +0000</pubDate>
		<dc:creator>Jerry Lee</dc:creator>
		
		<category><![CDATA[blog posting]]></category>

		<category><![CDATA[evaluation]]></category>

		<category><![CDATA[recommendations]]></category>

		<category><![CDATA[clone]]></category>

		<category><![CDATA[digg]]></category>

		<category><![CDATA[news.52my.info]]></category>

		<category><![CDATA[pligg]]></category>

		<guid isPermaLink="false">http://www.casualcommerce.com/?p=337</guid>
		<description><![CDATA[Look around on the net and search for a digg-like software to create a social voting news platform, you will most likely find Pligg as the popular choice of open source software that does pretty much what Digg.com does.
After evaluting the platform, I find the platform easy to implement, with one catch being that at [...]]]></description>
			<content:encoded><![CDATA[<p>Look around on the net and search for a digg-like software to create a social voting news platform, you will most likely find Pligg as the popular choice of open source software that does pretty much what <strong>Digg.com</strong> does.</p>
<p>After evaluting the platform, I find the platform easy to implement, with one catch being that at its current state, you can&#8217;t install it locally or even on a production server under a virtual directory.  For example you will not be able to install it under http://www.52my.info/digg, instead you will need to install it at the root of its own domain, so here&#8217;s my site: <a href="http://news.52my.info">http://news.52my.info</a></p>
<p><a href="http://news.52my.info"><img class="aligncenter size-medium wp-image-338" title="news52myinfo2" src="http://www.casualcommerce.com/wp-content/uploads/2009/07/news52myinfo2-300x237.jpg" alt="" width="300" height="237" /></a></p>
<p>Obviously, I have localised it for Chinese audience..and the back-end admin have made in-line translation easy and the use of smarty template made customizing easy (I stuck with the wistie default template, as I found it to be good enough).</p>
<p>Enjoy.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.casualcommerce.com/2009/07/digg-clone-pligg-showcasing-news52myinfo/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Performance tuning for Magento</title>
		<link>http://www.casualcommerce.com/2009/06/performance-tuning-for-magento/</link>
		<comments>http://www.casualcommerce.com/2009/06/performance-tuning-for-magento/#comments</comments>
		<pubDate>Sat, 27 Jun 2009 05:53:13 +0000</pubDate>
		<dc:creator>Jerry Lee</dc:creator>
		
		<category><![CDATA[blog posting]]></category>

		<category><![CDATA[magento]]></category>

		<category><![CDATA[performance tuning]]></category>

		<guid isPermaLink="false">http://www.casualcommerce.com/?p=331</guid>
		<description><![CDATA[For the most part, I have used WAMP on Windows XP for development and used Simple Helix for magento hosting; they really do make Magento run fast on their server.
Recently working on a project in which the client wants to host the web site themselves, but by default, the LAMP implementation is totally not optimized [...]]]></description>
			<content:encoded><![CDATA[<p>For the most part, I have used WAMP on Windows XP for development and used Simple Helix for magento hosting; they really do make Magento run fast on their server.</p>
<p>Recently working on a project in which the client wants to host the web site themselves, but by default, the LAMP implementation is totally not optimized for Magento.</p>
<p>Did some research and came across this post filled with performance tuning tips..althought i haven&#8217;t tried them, but I believe the tips are worth a try if you are hosting your own magento installation.</p>
<p><a href="http://www.magentocommerce.com/boards/viewthread/36225/">http://www.magentocommerce.com/boards/viewthread/36225/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.casualcommerce.com/2009/06/performance-tuning-for-magento/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Problem with Magento not able to download/install extensions</title>
		<link>http://www.casualcommerce.com/2009/06/problem-with-magento-not-able-to-downloadinstall-extensions/</link>
		<comments>http://www.casualcommerce.com/2009/06/problem-with-magento-not-able-to-downloadinstall-extensions/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 16:59:05 +0000</pubDate>
		<dc:creator>Jerry Lee</dc:creator>
		
		<category><![CDATA[blog posting]]></category>

		<category><![CDATA[777]]></category>

		<category><![CDATA[magento]]></category>

		<category><![CDATA[Magento Connect]]></category>

		<category><![CDATA[permission]]></category>

		<guid isPermaLink="false">http://www.casualcommerce.com/?p=327</guid>
		<description><![CDATA[Not sure if it&#8217;s just me.  But for every Magento development done, whenever I upload my code to the production server, the code would run fine, but when it comes to installing extensions using Magento Connect, it would never properly install the extensions (even though it claims that it has successfully installed the ext.).
The problem [...]]]></description>
			<content:encoded><![CDATA[<p>Not sure if it&#8217;s just me.  But for every Magento development done, whenever I upload my code to the production server, the code would run fine, but when it comes to installing extensions using Magento Connect, it would never properly install the extensions (even though it claims that it has successfully installed the ext.).</p>
<p>The problem appears to be an issue with the &#8220;Downloader&#8221; folder not being writeable in the production environment; this makes perfect sense from security perspective, but there just needs to be better documentation on how to best setup the site so that Magento Connect works as advertised.</p>
<p>I googled and came across the following post: <a href="https://www.gigapros.com/support/index.php?_m=knowledgebase&amp;_a=viewarticle&amp;kbarticleid=164">https://www.gigapros.com/support/index.php?_m=knowledgebase&amp;_a=viewarticle&amp;kbarticleid=164</a>, the long and short of is is simply to make Magento fully writeable (777) when you run the Magento Connect, and then reset the permissions after the extension has been installed&#8230;.it&#8217;s a somewhat satisfactory workaround i guess.</p>
<p>Here&#8217;s how to do this thru your SSH client. Log in to your SSH account and then execute the following commands:</p>
<p>1. cd &lt;your_magento_folder_path&gt;<br />
2. find . -type d -exec chmod 777 {} \;<br />
3. chmod 666 downloader/config.ini</p>
<p>You should now be able to access the Magento Connect Manager. When you have finished the installation/upgrade, you should reset the permissions by executing the following SSH commands:</p>
<p>1. find . -type d -exec chmod 755 {} \;<br />
2. find . -type f -exec chmod 644 {} \;<br />
3. chmod o+w var media app/etc/use_cache.ser</p>
]]></content:encoded>
			<wfw:commentRss>http://www.casualcommerce.com/2009/06/problem-with-magento-not-able-to-downloadinstall-extensions/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Strategically inserting Google ads into Wordpress blog</title>
		<link>http://www.casualcommerce.com/2009/05/strategically-inserting-google-ads-into-wordpress-blog/</link>
		<comments>http://www.casualcommerce.com/2009/05/strategically-inserting-google-ads-into-wordpress-blog/#comments</comments>
		<pubDate>Thu, 21 May 2009 15:48:24 +0000</pubDate>
		<dc:creator>Jerry Lee</dc:creator>
		
		<category><![CDATA[blog posting]]></category>

		<category><![CDATA[technical notes]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[adsense]]></category>

		<category><![CDATA[google ads]]></category>

		<guid isPermaLink="false">http://www.casualcommerce.com/?p=325</guid>
		<description><![CDATA[Have been working hard to promote blog.52my.info, but have realized that there isn&#8217;t an easy way to add google ads more naturally in between posts.  Some research landed me on Problogger.net (an excellent blog that teaches/motivates people how to make money blogging &#8212; I am a believer in Darren).
To more naturally add google ads, what [...]]]></description>
			<content:encoded><![CDATA[<p>Have been working hard to promote <a href="http://blog.52my.info">blog.52my.info</a>, but have realized that there isn&#8217;t an easy way to add google ads more naturally in between posts.  Some research landed me on <a href="http://www.problogger.net/archives/2006/03/09/how-to-placing-adsense-strategically-between-posts/">Problogger.net</a> (an excellent blog that teaches/motivates people how to make money blogging &#8212; I am a believer in Darren).</p>
<p>To more naturally add google ads, what you simply need to do is modify your &#8220;<strong>Main Index Template&#8221; usually the index.php file</strong>.  In there you should find a while loop that looks something like:</p>
<blockquote><p>if (have_posts()) :<br />
while (have_posts()) :<br />
the_post();<br />
the_content();<br />
endwhile;<br />
endif;</p></blockquote>
<p>just change it to something like this:</p>
<blockquote>
<pre><code>// Set Counter to 1, First Post
$counter = 1;
if (have_posts()) :
   while (have_posts()) :
      $counter = $counter + 1;
      the_post();
      the_content();
      <strong>if(2 == $counter)
      {
         echo 'Adsense code';
      }</strong>
   endwhile;
endif;

</code></pre>
</blockquote>
<p>the things to look for and add are in bold.  The &#8220;2&#8243; indicates that google ads will be inserted in every 2 posts. This information was obtained <a href="http://www.problogger.net/archives/2006/03/09/how-to-placing-adsense-strategically-between-posts/">here</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.casualcommerce.com/2009/05/strategically-inserting-google-ads-into-wordpress-blog/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Magento Notes &#8212; Default sorting is not logical</title>
		<link>http://www.casualcommerce.com/2009/05/magento-notes-default-sorting-is-not-logical/</link>
		<comments>http://www.casualcommerce.com/2009/05/magento-notes-default-sorting-is-not-logical/#comments</comments>
		<pubDate>Tue, 19 May 2009 15:47:50 +0000</pubDate>
		<dc:creator>Jerry Lee</dc:creator>
		
		<category><![CDATA[blog posting]]></category>

		<category><![CDATA[e-commerce]]></category>

		<category><![CDATA[magento]]></category>

		<category><![CDATA[technical notes]]></category>

		<category><![CDATA[entity_id]]></category>

		<category><![CDATA[sort order]]></category>

		<guid isPermaLink="false">http://www.casualcommerce.com/?p=320</guid>
		<description><![CDATA[Now that I have my e-commerce site, tickon.com, running for a while (3-months), I am back at it adding more products to link to my affiliate partners (this is a new experiment on this web site).
As I started to add new products, I noticed that newest items are added to the last page of the [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.casualcommerce.com/wp-content/uploads/2009/05/new-items-tickoncom-online-store_1242747999735.jpg"><img class="alignright size-medium wp-image-321" title="new-items-tickoncom-online-store_1242747999735" src="http://www.casualcommerce.com/wp-content/uploads/2009/05/new-items-tickoncom-online-store_1242747999735-300x198.jpg" alt="" width="300" height="198" /></a>Now that I have my e-commerce site, <a href="http://www.tickon.com">tickon.com</a>, running for a while (3-months), I am back at it adding more products to link to my affiliate partners (this is a new experiment on this web site).</p>
<p>As I started to add new products, I noticed that newest items are added to the last page of the category that it was assigned to&#8230;not a very smart implementatio in my opinon. Did some googling and found a fix here:</p>
<p><a href="http://www.magentocommerce.com/boards/viewthread/1176/">http://www.magentocommerce.com/boards/viewthread/1176/</a></p>
<p>Essentially what needs to be done is to fix the file: <strong>app/code/core/Mage/Catalog/Block/Product/List/toolbar.php</strong></p>
<p>near line 47, I changed the original code to the following:</p>
<blockquote><p>$this-&gt;_availableOrder = array(<br />
&#8216;entity_id&#8217; =&gt; $this-&gt;__(&#8217;Newest&#8217;),<br />
&#8216;name&#8217;      =&gt; $this-&gt;__(&#8217;Name&#8217;),<br />
&#8216;price&#8217;     =&gt; $this-&gt;__(&#8217;Price&#8217;)<br />
);</p></blockquote>
<p>The first item listed will be the default sort filter, the default was &#8220;best value&#8221;&#8230;which didn&#8217;t make a lot of sense to me.</p>
<p>Second item to fix up is in the same file, but you go to line 108 (approx.) and modify the highlighted part as below:</p>
<blockquote><p>public function getCurrentDirection()<br />
{<br />
if ($dir = (string) $this-&gt;getRequest()-&gt;getParam($this-&gt;getDirectionVarName())) {<br />
$dir = strtolower($dir);<br />
if (in_array($dir, array(&#8217;asc&#8217;, &#8216;desc&#8217;))) {<br />
return $dir;<br />
}<br />
}<br />
return &#8216;<strong>desc</strong>&#8216;;</p></blockquote>
<p>default is asc, but you need to change it to descending so that it sorts from newest id first.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.casualcommerce.com/2009/05/magento-notes-default-sorting-is-not-logical/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Relaunch of OCCACC.ORG</title>
		<link>http://www.casualcommerce.com/2009/05/relaunch-of-occaccorg/</link>
		<comments>http://www.casualcommerce.com/2009/05/relaunch-of-occaccorg/#comments</comments>
		<pubDate>Tue, 05 May 2009 15:36:34 +0000</pubDate>
		<dc:creator>Jerry Lee</dc:creator>
		
		<category><![CDATA[blog posting]]></category>

		<category><![CDATA[news]]></category>

		<category><![CDATA[wordpress]]></category>

		<category><![CDATA[non-profit]]></category>

		<category><![CDATA[occacc.org]]></category>

		<guid isPermaLink="false">http://www.casualcommerce.com/?p=317</guid>
		<description><![CDATA[I would also like to take this time to announce the relaunch of Orange County Chinese-American Chamber of Commerce (OCCACC.ORG) web site.  It is a web site dedicated to  developing Chinese-American commerce by providing assistance in business management business operation, trade materials, and business experience.

Please send any questions and feedback related to the web site [...]]]></description>
			<content:encoded><![CDATA[<p>I would also like to take this time to announce the relaunch of <a href="http://www.occacc.org">Orange County Chinese-American Chamber of Commerce (OCCACC.ORG) </a>web site.  It is a web site dedicated to  developing Chinese-American commerce by providing assistance in business management business operation, trade materials, and business experience.</p>
<p style="text-align: center;"><a href="http://www.occacc.org"><img class="aligncenter size-medium wp-image-318" title="occaccorg_1241537113793" src="http://www.casualcommerce.com/wp-content/uploads/2009/05/occaccorg_1241537113793-300x187.jpg" alt="" width="300" height="187" /></a></p>
<p>Please <a href="http://www.casualcommerce.com/contact-us/">send any questions and feedback</a> related to the web site to me. Thanks.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.casualcommerce.com/2009/05/relaunch-of-occaccorg/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
