<?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"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Allan Brown &#187; Magento</title>
	<atom:link href="http://allanbrown.me/category/magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://allanbrown.me</link>
	<description>Proramming, Magento and me</description>
	<lastBuildDate>Tue, 19 Jan 2010 21:29:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Define or pre-select products or items in a massaction Magento grid</title>
		<link>http://allanbrown.me/magento/define-or-pre-select-products-or-items-in-a-massaction-magento-grid/</link>
		<comments>http://allanbrown.me/magento/define-or-pre-select-products-or-items-in-a-massaction-magento-grid/#comments</comments>
		<pubDate>Tue, 19 Jan 2010 21:27:46 +0000</pubDate>
		<dc:creator>Allan Brown</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[grid]]></category>
		<category><![CDATA[grids]]></category>
		<category><![CDATA[internal_products]]></category>
		<category><![CDATA[Mage_Adminhtml_Block_Widget_Grid]]></category>
		<category><![CDATA[Massaction]]></category>
		<category><![CDATA[massaction grid]]></category>
		<category><![CDATA[prepopulate]]></category>
		<category><![CDATA[products]]></category>
		<category><![CDATA[setParam]]></category>

		<guid isPermaLink="false">http://allanbrown.me/?p=42</guid>
		<description><![CDATA[Recently while building an administration interface for Magento (in adminhtml) I was needing to select products which should be added to a newsletter template (custom module).  The problem is that there is no obvious way to pre-select items or products when using a massaction grid in Magento.  The logic im trying to manipulate is contained in Mage_Adminhtml_Block_Widget_Grid.]]></description>
			<content:encoded><![CDATA[<p>Recently while building an administration interface for Magento (in adminhtml) I was needing to select products which should be added to a newsletter template (custom module).  The problem is that there is no obvious way to pre-select items or products when using a massaction grid in Magento.  The logic im trying to manipulate is contained in Mage_Adminhtml_Block_Widget_Grid.</p>
<p>The solution is to change (or pre-populate) the getRequest parameters (_POST values) so that the grid thinks that products have been selected on a previous page.  This can be done using the example code below, which should work for Magento massaction grids for products.</p>
<p><code>$this-&gt;getRequest()-&gt;setParam('internal_products',implode(',',$productIdArray));</code></p>
<p>$productIdArray contains a simple array of ids matching products.  Such as array(12,13,14,15)</p>
<div class="shr-publisher-42"></div>]]></content:encoded>
			<wfw:commentRss>http://allanbrown.me/magento/define-or-pre-select-products-or-items-in-a-massaction-magento-grid/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Sort by price not working in Magento</title>
		<link>http://allanbrown.me/magento/sort-by-price-not-working-in-magento/</link>
		<comments>http://allanbrown.me/magento/sort-by-price-not-working-in-magento/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 21:12:45 +0000</pubDate>
		<dc:creator>Allan Brown</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[bugs]]></category>
		<category><![CDATA[Cache]]></category>
		<category><![CDATA[cache refresh]]></category>
		<category><![CDATA[caching]]></category>
		<category><![CDATA[Layered Navigation Indices]]></category>
		<category><![CDATA[product sorting]]></category>

		<guid isPermaLink="false">http://allanbrown.me/?p=38</guid>
		<description><![CDATA[I recently added a large volume of products to Magento, however when I then began looking through the product listing, it was acting in a really strange way.  ]]></description>
			<content:encoded><![CDATA[<p>I recently added a large volume of products to Magento, however when I then began looking through the product listing, it was acting in a really strange way.</p>
<p>All products were displaying correctly however the order was all wrong.  Instead of being ordered or sorted by price by default as they should of been, the order was all over the place.</p>
<p>After a bit of searching I eventually found the problem is in the Magento cache system and specifically in the Layered Navigation indexes.</p>
<p>Logging in as admin and using the &#8220;System-&gt;Cache Management-&gt;Layered Navigation Indices-&gt;Refresh now&#8221; option resolved the issue.  However this process took a long time to complete on my server, so some patience may be required.</p>
<div class="shr-publisher-38"></div>]]></content:encoded>
			<wfw:commentRss>http://allanbrown.me/magento/sort-by-price-not-working-in-magento/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Magento connect pear upgraded wrong Magento site!</title>
		<link>http://allanbrown.me/magento/magento-connect-pear-upgraded-wrong-magento-site/</link>
		<comments>http://allanbrown.me/magento/magento-connect-pear-upgraded-wrong-magento-site/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 15:14:01 +0000</pubDate>
		<dc:creator>Allan Brown</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Magento connect]]></category>
		<category><![CDATA[pear]]></category>
		<category><![CDATA[pear.ini]]></category>
		<category><![CDATA[staging site]]></category>

		<guid isPermaLink="false">http://allanbrown.me/?p=33</guid>
		<description><![CDATA[I upgraded Magento through Connect, and nothing happened!]]></description>
			<content:encoded><![CDATA[<p>When we started working with Magento, we started with a single site which we could being learning from.  Once we were happy that we would continue on this platform and decided we needed a 2nd development environment to work on we created a copy of our current Magento install, changed the DB connection config, and thought that was that.</p>
<p>Last week when I went to upgrade Magento to the latest version, a strange thing happened.  The upgrade through Magento connect (<a href="http://magento-devel.2fluid.co.uk/downloader/index.php?A=pearPackages" target="_blank">downloader/index.php?A=pearPackages</a>) worked perfectly, it said all was upgraded, but the files that were changed were changed on the wrong site.  I eventually tracked this down to the Magento Connect, and the fact that it has its own static config files (pear.ini) which saves the local Magento path.  This obviously did not change when the 2nd copy of the site was created, so when we then performed the upgrade on the staging version of the site, the live site was upgraded instead.</p>
<p>To fix this, simply delete pear.ini, and it will be recreated with the correct settings automatically.</p>
<p>Threads which reference this issue are:</p>
<p><a href="http://www.magentocommerce.com/boards/viewthread/17165/">http://www.magentocommerce.com/boards/viewthread/17165/</a><br />
<a href="http://www.magentocommerce.com/boards/viewthread/56226/">http://www.magentocommerce.com/boards/viewthread/56226/</a></p>
<p>Bit of an odd one!</p>
<div class="shr-publisher-33"></div>]]></content:encoded>
			<wfw:commentRss>http://allanbrown.me/magento/magento-connect-pear-upgraded-wrong-magento-site/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Adding images to magento using code (Programmaticaly)</title>
		<link>http://allanbrown.me/magento/adding-images-to-magento-code-programmaticaly/</link>
		<comments>http://allanbrown.me/magento/adding-images-to-magento-code-programmaticaly/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 15:00:51 +0000</pubDate>
		<dc:creator>Allan Brown</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[products]]></category>

		<guid isPermaLink="false">http://allanbrown.me/?p=29</guid>
		<description><![CDATA[How to attach images to a product in Magento, when using code.]]></description>
			<content:encoded><![CDATA[<p>Ive been working on automatically adding products to Magento from a 3rd party XML feed.  Its fairly easy to do, however I couldint find much information on how to attach images to a product, and then how to set a product image as thumbnail, small image and base image.</p>
<p>The code to add an image to a product in Magento is:</p>
<p><code>$product-&gt;addImageToMediaGallery($imagePath, array('image','small_image','thumbnail'),				false,			true,			$productData['data_display_name'] . " " . $productData['data_artist_display_name'] . " " . $productData['data_catalog_number']);</code></p>
<p>It is the <em>array(&#8216;image&#8217;,'small_image&#8217;,'thumbnail&#8217;)</em> which tells Magento that you are wanting to use this image as the small image, thumbnail and base image.</p>
<div class="shr-publisher-29"></div>]]></content:encoded>
			<wfw:commentRss>http://allanbrown.me/magento/adding-images-to-magento-code-programmaticaly/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>include_path setting can cause problems in Magento</title>
		<link>http://allanbrown.me/magento/include_path-setting-can-cause-problems-in-magento/</link>
		<comments>http://allanbrown.me/magento/include_path-setting-can-cause-problems-in-magento/#comments</comments>
		<pubDate>Thu, 15 Oct 2009 00:24:13 +0000</pubDate>
		<dc:creator>Allan Brown</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[coolstack]]></category>
		<category><![CDATA[errors]]></category>
		<category><![CDATA[include_path]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://allanbrown.me/?p=21</guid>
		<description><![CDATA[A small problem with the Magento connect application. All other Magento functions were working, but when I tried to access Connect, a load of errors were being displayed!]]></description>
			<content:encoded><![CDATA[<p>I had a small problem today with the Magento connect application.  All other Magento functions were working, but when I tried to access Connect (http://sitedomain.com/index.php/admin/extensions_local/), a load of errors were being displayed saying:</p>
<p><code>Warning: include_once(Maged/Model.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/web1/html/downloader/Maged/Controller.php on line 21</code></p>
<p><code>Warning: include_once() [function.include]: Failed opening ‘Maged/Model.php’ for inclusion (include_path=’/usr/share/pear:/usr/share/php’) in /var/www/web1/html/downloader/Maged/Controller.php on line 21</code></p>
<p><code>Warning: include_once(Maged/View.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/web1/html/downloader/Maged/Controller.php on line 22</code></p>
<p><code>Warning: include_once() [function.include]: Failed opening ‘Maged/View.php’ for inclusion (include_path=’/usr/share/pear:/usr/share/php’) in /var/www/web1/html/downloader/Maged/Controller.php on line 22</code></p>
<p><code>Warning: include_once(Maged/Exception.php) [function.include-once]: failed to open stream: No such file or directory in /var/www/web1/html/downloader/Maged/Controller.php on line 23</code></p>
<p><code>Warning: Cannot modify header information - headers already sent by (output started at /var/www/web1/html/downloader/Maged/Controller.php:21) in /var/www/web1/html/downloader/Maged/Controller.php on line 311</code></p>
<p>After much searching, I discovered that it was due to an incorrectly set &#8216;include_path&#8217; in the apache php.ini file.  We are using some advanced caching on the server to speed things up, and the setting it was changed to was slightly out.</p>
<p>So, we changed it from</p>
<p><code>/opt/coolstack/php5/lib/php/</code></p>
<p>to</p>
<p><code>.:/opt/coolstack/php5/lib/php/</code></p>
<p>However in most cases, it would be:</p>
<p>on Linux: include_path = “.:/php/includes”<br />
on Windows: include_path = “.;c:\php\includes”</p>
<p>A quick Apache restart and all is well again.  Easy fix!</p>
<div class="shr-publisher-21"></div>]]></content:encoded>
			<wfw:commentRss>http://allanbrown.me/magento/include_path-setting-can-cause-problems-in-magento/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento and me</title>
		<link>http://allanbrown.me/magento/magento-and-me/</link>
		<comments>http://allanbrown.me/magento/magento-and-me/#comments</comments>
		<pubDate>Tue, 13 Oct 2009 21:55:19 +0000</pubDate>
		<dc:creator>Allan Brown</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[e-commerce]]></category>

		<guid isPermaLink="false">http://www.allanbrown.org/?p=3</guid>
		<description><![CDATA[Topics covered will include development advice, strange bugs and hopefully some invaluble hints for those using Magento as a base for their website.]]></description>
			<content:encoded><![CDATA[<p>In Summer 2009 I started on a large project at work which was to be a music download site based on an existing e-commerce system.  After much deliberation it was decided that we would use <a href="http://www.magentocommerce.com/" target="_blank">Magento</a>.</p>
<p>For the past 2 months now I have been trawling through the innerworkings of this e-commerce platform learning it as I go and this blog will cover the experiences I am having.  Topics covered will include development advice, strange bugs and hopefully some invaluble hints for those using Magento as a base for their website.</p>
<p>The project I am undertaking will cover core Magento code changes, custom module development, 3rd party API integration, multiple payment-gateway integration, development of custom themes and templates, integrating to Amazon S3 and EC2 and any other areas as small as adding a youtube video to as large as creating a whole new product type.</p>
<p>If I am able and if there is demand, the work I am doing will be provided as public (or possibly commercial) addons.  If not however, hopefully I will be able to save some of you some time in your own projects.</p>
<div class="shr-publisher-3"></div>]]></content:encoded>
			<wfw:commentRss>http://allanbrown.me/magento/magento-and-me/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
