<?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>Miles Sebesta - Animator and Web Designer</title>
	<atom:link href="http://www.milessebesta.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.milessebesta.com</link>
	<description>Miles Sebesta Animator</description>
	<lastBuildDate>Mon, 14 May 2012 18:46:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>magneto cache_dir is not writable</title>
		<link>http://www.milessebesta.com/2012/05/14/web-design/magneto-cache_dir-is-not-writable/</link>
		<comments>http://www.milessebesta.com/2012/05/14/web-design/magneto-cache_dir-is-not-writable/#comments</comments>
		<pubDate>Mon, 14 May 2012 18:43:19 +0000</pubDate>
		<dc:creator>Miles</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[magento shopping cart]]></category>
		<category><![CDATA[web site]]></category>
		<category><![CDATA[web site design]]></category>
		<category><![CDATA[website design]]></category>

		<guid isPermaLink="false">http://www.milessebesta.com/?p=416</guid>
		<description><![CDATA[Here is what to do if you get the following error in your magento backend: magneto cache_dir is not writable Please note that this is a last resort fix, you should probably find out why your server is giving an &#8230;<p class="read-more"><a href="http://www.milessebesta.com/2012/05/14/web-design/magneto-cache_dir-is-not-writable/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Here is what to do if you get the following error in your magento backend:</p>
<p>magneto cache_dir is not writable</p>
<p>Please note that this is a last resort fix, you should probably find out why your server is giving an error. Because when you get this error it means that something at root level is not writable, which can mean a bigger issues. For example, in my case our antivirus failed to load properly and made the tmp file un-writable.</p>
<p>First create a directory called tmp.</p>
<p>Navigate to <em>app/code/core/Zend/Cache/Backend/</em></p>
<p>Edit <span style="text-decoration: underline;">File.php</span></p>
<p>Change:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000088;">$_options</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'cache_dir'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'null'</span><span style="color: #339933;">,</span></div></td></tr></tbody></table></div>
<p>to</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000088;">$_options</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'cache_dir'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tmp/'</span><span style="color: #339933;">,</span></div></td></tr></tbody></table></div>
<p><strong>For Magento Version 1.4.1.0</strong></p>
<p>Navigate to <em>lib/Zend/Cache/Backend/</em></p>
<p>Edit <span style="text-decoration: underline;">File.php</span></p>
<p>Change:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000088;">$_options</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'cache_dir'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">null</span><span style="color: #339933;">,</span></div></td></tr></tbody></table></div>
<p>to</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp;<span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000088;">$_options</span> <span style="color: #339933;">=</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">'cache_dir'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'tmp/'</span><span style="color: #339933;">,</span></div></td></tr></tbody></table></div>
<p>&nbsp;</p>
<p>Fix provided from this post:</p>
<p><a href="http://www.magentocommerce.com/boards/viewthread/57578/" target="_blank">http://www.magentocommerce.com/boards/viewthread/57578/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.milessebesta.com/2012/05/14/web-design/magneto-cache_dir-is-not-writable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; FIX: Coupon Code Submit Button Not Working</title>
		<link>http://www.milessebesta.com/2012/05/04/web-design/magento-fix-coupon-code-submit-button-bot-working/</link>
		<comments>http://www.milessebesta.com/2012/05/04/web-design/magento-fix-coupon-code-submit-button-bot-working/#comments</comments>
		<pubDate>Fri, 04 May 2012 17:02:00 +0000</pubDate>
		<dc:creator>Miles</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[magento shopping cart]]></category>
		<category><![CDATA[web site]]></category>
		<category><![CDATA[web site design]]></category>
		<category><![CDATA[website design]]></category>

		<guid isPermaLink="false">http://www.milessebesta.com/?p=405</guid>
		<description><![CDATA[I had a client come up to me which a strange magento situation.  The template or extensions they installed seamed to have broken the coupon code submit button on their cart page.  People could not submit a coupon code by clicking the &#8230;<p class="read-more"><a href="http://www.milessebesta.com/2012/05/04/web-design/magento-fix-coupon-code-submit-button-bot-working/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>I had a client come up to me which a strange magento situation.  The template or extensions they installed seamed to have broken the coupon code submit button on their cart page.  People could not submit a coupon code by clicking the &#8220;Apply Coupon&#8221; button.  They had to hit enter.  The clients could not find the javascript that was producing the error.  So, I was contacted to provide them with a magneto workaround.  The solution is quite simple.</p>
<p><span id="more-405"></span></p>
<p>Find the pesky code:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>button type<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;button&quot;</span> title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Apply Coupon&quot;</span> onclick<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;discountForm.submit(false)&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Apply Coupon&quot;</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;</span>span<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;</span>span<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>Apply Coupon<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span>span<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;/</span>span<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;/</span>button<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>and change it to:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;</span>button title<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Apply Coupon&quot;</span> onclick<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;discountForm.submit(false)&quot;</span> value<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;Apply Coupon&quot;</span><span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;</span>span<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;</span>span<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span>Apply Coupon<span style="color: #339933;">&amp;</span>lt<span style="color: #339933;">;/</span>span<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;/</span>span<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;&amp;</span>lt<span style="color: #339933;">;/</span>button<span style="color: #339933;">&amp;</span>gt<span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>By removing type=&#8221;button&#8221; the error seems to correct itself.  After removing the type, the button magically started working again!  I know this treating the symptom not the problem, but hey it works.</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.milessebesta.com/2012/05/04/web-design/magento-fix-coupon-code-submit-button-bot-working/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Customize Backend Order Grid to have SKU, E-mail Address, and Phone Number</title>
		<link>http://www.milessebesta.com/2012/04/25/web-design/magento-customize-backend-order-grid-to-have-sku-e-mail-address-and-phone-number/</link>
		<comments>http://www.milessebesta.com/2012/04/25/web-design/magento-customize-backend-order-grid-to-have-sku-e-mail-address-and-phone-number/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 06:52:04 +0000</pubDate>
		<dc:creator>Miles</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[magento shopping cart]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[web site]]></category>
		<category><![CDATA[web site design]]></category>
		<category><![CDATA[website design]]></category>

		<guid isPermaLink="false">http://www.milessebesta.com/?p=340</guid>
		<description><![CDATA[Sometimes magento&#8217;s default back-end order grid doesn&#8217;t cut it.  I recently had a customer that wanted to be able to sort orders by sku, shipping address, shipping state, and customer e-mail address on their magento site.  Why did they want &#8230;<p class="read-more"><a href="http://www.milessebesta.com/2012/04/25/web-design/magento-customize-backend-order-grid-to-have-sku-e-mail-address-and-phone-number/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Sometimes magento&#8217;s default back-end order grid doesn&#8217;t cut it.  I recently had a customer that wanted to be able to sort orders by sku, shipping address, shipping state, and customer e-mail address on their magento site.  Why did they want to do this?  To quickly generate reports I guess, who knows? By default you can&#8217;t sort by these items.  You have to add the fields to magento which can be some what tricky.</p>
<p>Anyway if you want to change the order grid from this:</p>
<p style="text-align: center;"><a href="http://www.milessebesta.com/wp-content/uploads/2012/04/order-grid-old.jpg" rel="lightbox[340]"><img class="aligncenter  wp-image-345" title="Magento Order Grid on a Magento Web site with SKUs" src="http://www.milessebesta.com/wp-content/uploads/2012/04/order-grid-old-1024x80.jpg" alt="Magento Order Grid on a Magento Web site with SKUs" width="620" height="48" /></a></p>
<p>To this on your magento web site:</p>
<p style="text-align: center;"><a href="http://www.milessebesta.com/wp-content/uploads/2012/04/order-grid-new.jpg" rel="lightbox[340]"><img class=" wp-image-344 aligncenter" title="New Magneto Order Grid" src="http://www.milessebesta.com/wp-content/uploads/2012/04/order-grid-new-1024x82.jpg" alt="Magento Order Grid with SKU" width="620" height="49" /></a></p>
<p>Just follow these few easy steps.</p>
<p>Step one create a new directory on your server at app/code/local/Mage/Adminhtml/Block/Sales/Order</p>
<p>Here we will be creating a file called Grid.php.</p>
<p>First navigate to app/code/core/Mage/Adminhtml/Block/Sales/Order and copy\paste Grid.php into the directory you just created.</p>
<p>Now open up app/code/local/Mage/Adminhtml/Block/Sales/Order/Grid.php</p>
<p><span id="more-340"></span>Look for the following:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000000; font-weight: bold;">function</span> _getCollectionClass<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'sales/order_grid_collection'</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>Now change it to :</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000000; font-weight: bold;">function</span> _getCollectionClass<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
<span style="color: #b1b100;">return</span> <span style="color: #0000ff;">'sales/order_grid_collection'</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>Next find:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000000; font-weight: bold;">function</span> _prepareCollection<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
<span style="color: #000088;">$collection</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getResourceModel</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_getCollectionClass<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setCollection</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$collection</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #b1b100;">return</span> parent<span style="color: #339933;">::</span>_prepareCollection<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>and make it:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000000; font-weight: bold;">function</span> _prepareCollection<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
<span style="color: #000088;">$collection</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getResourceModel</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span>_getCollectionClass<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #339933;">-&gt;</span><a href="http://www.php.net/join"><span style="color: #990000;">join</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'sales/order_item'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'`sales/order_item`.order_id=`main_table`.entity_id'</span><span style="color: #339933;">,</span><br />
<a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'skus'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000000; font-weight: bold;">new</span> Zend_Db_Expr<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'group_concat(`sales/order_item`.sku SEPARATOR &quot;,&quot;)'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getSelect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">group</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'main_table.entity_id'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getSelect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">joinLeft</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sfog'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sales_flat_order_grid'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'main_table.entity_id = sfog.entity_id'</span><span style="color: #339933;">,</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sfog.shipping_name'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sfog.billing_name'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getSelect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">joinLeft</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sfo'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'sales_flat_order'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'sfo.entity_id=main_table.entity_id'</span><span style="color: #339933;">,</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sfo.customer_email'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sfo.weight'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'sfo.discount_description'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sfo.increment_id'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sfo.store_id'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sfo.created_at'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sfo.status'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'sfo.base_grand_total'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sfo.grand_total'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$collection</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getSelect</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">joinLeft</span><span style="color: #009900;">&#40;</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sfoa'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'sales_flat_order_address'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'main_table.entity_id = sfoa.parent_id AND sfoa.address_type=&quot;shipping&quot;'</span><span style="color: #339933;">,</span><a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sfoa.street'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'sfoa.city'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sfoa.region'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sfoa.postcode'</span><span style="color: #339933;">,</span><span style="color: #0000ff;">'sfoa.telephone'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setCollection</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$collection</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #b1b100;">return</span> parent<span style="color: #339933;">::</span>_prepareCollection<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span></div></td></tr></tbody></table></div>
<p>Finally find:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000000; font-weight: bold;">function</span> _prepareColumns<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
<br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'real_order_id'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span><span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Order #'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'width'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'80px'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'text'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'increment_id'</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>Mage<span style="color: #339933;">::</span><span style="color: #004000;">app</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isSingleStoreMode</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'store_id'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Purchased From (Store)'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'store_id'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'store'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'store_view'</span><span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'display_deleted'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'created_at'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Purchased On'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'created_at'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'datetime'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'width'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'100px'</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'billing_name'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Bill to Name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'billing_name'</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'shipping_name'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Ship to Name'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'shipping_name'</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'base_grand_total'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'G.T. (Base)'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'base_grand_total'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'currency'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'currency'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'base_currency_code'</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'grand_total'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'G.T. (Purchased)'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'grand_total'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'currency'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'currency'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'order_currency_code'</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'status'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Status'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'status'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'options'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'width'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'70px'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'options'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales/order_config'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getStatuses</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Change it to:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br />7<br />8<br />9<br />10<br />11<br />12<br />13<br />14<br />15<br />16<br />17<br />18<br />19<br />20<br />21<br />22<br />23<br />24<br />25<br />26<br />27<br />28<br />29<br />30<br />31<br />32<br />33<br />34<br />35<br />36<br />37<br />38<br />39<br />40<br />41<br />42<br />43<br />44<br />45<br />46<br />47<br />48<br />49<br />50<br />51<br />52<br />53<br />54<br />55<br />56<br />57<br />58<br />59<br />60<br />61<br />62<br />63<br />64<br />65<br />66<br />67<br />68<br />69<br />70<br />71<br />72<br />73<br />74<br />75<br />76<br />77<br />78<br />79<br />80<br />81<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000000; font-weight: bold;">protected</span> <span style="color: #000000; font-weight: bold;">function</span> _prepareColumns<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><br />
<span style="color: #009900;">&#123;</span><br />
<br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'real_order_id'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span><span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Order #'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'width'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'80px'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'text'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'increment_id'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'filter_index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sfo.increment_id'</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #b1b100;">if</span> <span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>Mage<span style="color: #339933;">::</span><span style="color: #004000;">app</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">isSingleStoreMode</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'store_id'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Purchased From (Store)'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'store_id'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'store'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'store_view'</span><span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'display_deleted'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #009900; font-weight: bold;">true</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><br />
<br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'created_at'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Purchased On'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'created_at'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'filter_index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sfo.created_at'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'datetime'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'width'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'50px'</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'skus'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Skus'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'width'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'350px'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'skus'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'filter_index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sku'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'text'</span><span style="color: #339933;">,</span><br />
<br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'shipping_street'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Shipping Street'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'street'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'text'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'filter_index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sfoa.street'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'width'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'100px'</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'shipping_city'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Shipping City'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'city'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'text'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'filter_index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sfoa.city'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'width'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'50px'</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'shipping_region'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Shipping Region'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'region'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'text'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'filter_index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sfoa.region'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'width'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'50px'</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'customer_email'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Customer Email'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'customer_email'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'text'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'filter_index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sfo.customer_email'</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'grand_total'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Total'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'grand_total'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'filter_index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sfo.grand_total'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'currency'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'currency'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'order_currency_code'</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<br />
<span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'status'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Status'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'status'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'filter_index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sfo.status'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'options'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'width'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'70px'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'options'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales/order_config'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getStatuses</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>That is it, if you wanted to add lets say product weight you would use the following:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br />2<br />3<br />4<br />5<br />6<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addColumn</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'order_weight'</span><span style="color: #339933;">,</span> <a href="http://www.php.net/array"><span style="color: #990000;">array</span></a><span style="color: #009900;">&#40;</span><br />
<span style="color: #0000ff;">'header'</span> <span style="color: #339933;">=&gt;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">helper</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sales'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span>__<span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Weight'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'order_weight'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'type'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'text'</span><span style="color: #339933;">,</span><br />
<span style="color: #0000ff;">'filter_index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sfo.weight'</span><span style="color: #339933;">,</span><br />
<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></td></tr></tbody></table></div>
<p>Let&#8217;s say for some reason when you are doing searches in your brand new boxes and you get an error like</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">SQLSTATE<span style="color: #009900;">&#91;</span><span style="color: #cc66cc;">23000</span><span style="color: #009900;">&#93;</span><span style="color: #339933;">:</span> Integrity constraint violation<span style="color: #339933;">:</span> <span style="color: #cc66cc;">1052</span> Column <span style="color: #0000ff;">'status'</span> in where clause is ambiguous</div></td></tr></tbody></table></div>
<p>This means you did not add a filter type properly go back a line like this:</p>
<div class="codecolorer-container php dawn" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><table cellspacing="0" cellpadding="0"><tbody><tr><td style="padding:5px;text-align:center;color:#888888;background-color:#EEEEEE;border-right: 1px solid #9F9F9F;font: normal 12px/1.4em Monaco, Lucida Console, monospace;"><div>1<br /></div></td><td><div class="php codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #0000ff;">'filter_index'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'sfo.itemname'</span><span style="color: #339933;">,</span></div></td></tr></tbody></table></div>
<p>This should fix the error and fix your magento web site&#8217;s order grid!  Now you should be able to sort by sku, address, name, e-mail address. Shoot you can easily add the telephone number to this order grid if you want!</p>
<p>In case you are wondering I referenced these posted.  It took me a while to get the SKU&#8217;s to play nicely with all of the other information.</p>
<p><a href="http://stackoverflow.com/questions/9027741/magento-sqlstate42s22-column-not-found-1054-unknown-column-billing-name">http://stackoverflow.com/questions/9027741/magento-sqlstate42s22-column-not-found-1054-unknown-column-billing-name</a></p>
<p><a href="http://stackoverflow.com/questions/8764543/magento-sales-order-grid-shows-incorrect-number-of-records-when-added-names-and">http://stackoverflow.com/questions/8764543/magento-sales-order-grid-shows-incorrect-number-of-records-when-added-names-and</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.milessebesta.com/2012/04/25/web-design/magento-customize-backend-order-grid-to-have-sku-e-mail-address-and-phone-number/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Protected: Demo Progress</title>
		<link>http://www.milessebesta.com/2012/03/18/animation/demo-progress/</link>
		<comments>http://www.milessebesta.com/2012/03/18/animation/demo-progress/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 17:59:38 +0000</pubDate>
		<dc:creator>Miles</dc:creator>
				<category><![CDATA[Animation]]></category>

		<guid isPermaLink="false">http://www.milessebesta.com/?p=329</guid>
		<description><![CDATA[There is no excerpt because this is a protected post.]]></description>
			<content:encoded><![CDATA[<div class="entry">
<form class="protected-post-form" action="http://www.milessebesta.com/wp-pass.php" method="post">
<p><strong><br />
	This post is password protected. <br/>To view it please enter your password below:<br />
	</strong></p>
<p><label for="pwbox-329">Password: </label><br/><br />
<input name="post_password" id="pwbox-329" type="password" size="20" /><br/><br />
<input type="submit" name="Submit" class="submit" value="" />
	</form>
</div>
<p><br/><br/></p>
]]></content:encoded>
			<wfw:commentRss>http://www.milessebesta.com/2012/03/18/animation/demo-progress/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Demo Reel Cover Art and Label.</title>
		<link>http://www.milessebesta.com/2012/03/15/animation/demo-reel-cover-art-and-label/</link>
		<comments>http://www.milessebesta.com/2012/03/15/animation/demo-reel-cover-art-and-label/#comments</comments>
		<pubDate>Thu, 15 Mar 2012 22:15:21 +0000</pubDate>
		<dc:creator>Miles</dc:creator>
				<category><![CDATA[Animation]]></category>
		<category><![CDATA[animation]]></category>

		<guid isPermaLink="false">http://www.milessebesta.com/?p=319</guid>
		<description><![CDATA[]]></description>
			<content:encoded><![CDATA[<p style="text-align: center;"><a href="http://www.milessebesta.com/wp-content/uploads/2012/03/demo-cover.jpg" rel="lightbox"><img class="aligncenter  wp-image-320" title="new_resume" src="http://www.milessebesta.com/wp-content/uploads/2012/03/demo-cover.jpg" alt="" width="579" height="793" /></a><a href="http://www.milessebesta.com/wp-content/uploads/2012/03/disc-template.jpg" rel="lightbox"><img class="aligncenter  wp-image-321" title="Disc_Templates" src="http://www.milessebesta.com/wp-content/uploads/2012/03/disc-template.jpg" alt="" width="579" height="700" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.milessebesta.com/2012/03/15/animation/demo-reel-cover-art-and-label/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Website &#8211; Restricting Admin Access to Specific System Configuration Fields.</title>
		<link>http://www.milessebesta.com/2012/03/09/web-design/magento-ecommerce-websites-restricting-admin-configuration-fields/</link>
		<comments>http://www.milessebesta.com/2012/03/09/web-design/magento-ecommerce-websites-restricting-admin-configuration-fields/#comments</comments>
		<pubDate>Fri, 09 Mar 2012 23:48:10 +0000</pubDate>
		<dc:creator>Miles</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[magento shopping cart]]></category>
		<category><![CDATA[web site]]></category>
		<category><![CDATA[web site design]]></category>
		<category><![CDATA[website design]]></category>

		<guid isPermaLink="false">http://www.milessebesta.com/?p=303</guid>
		<description><![CDATA[Magento enterprise has some amazing features out of the box that allow you to restrict roles to specific web sites and sections. Unfortinately the system out of the box doesn&#8217;t let you micro manage the configuration fields. Imagine that you &#8230;<p class="read-more"><a href="http://www.milessebesta.com/2012/03/09/web-design/magento-ecommerce-websites-restricting-admin-configuration-fields/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Magento enterprise has some amazing features out of the box that allow you to restrict roles to specific web sites and sections. Unfortinately the system out of the box doesn&#8217;t let you micro manage the configuration fields. Imagine that you have a senario where you want an admin user to be able to edit certain configuration fields, but not all of them. Out of the box magento lets you limit the roles to certain sections like &#8220;Store Email Addresses&#8221; or &#8220;Contacts&#8221; but it doesn&#8217;t let you limit each individual item.</p>
<p>For example, I want an admin group to be able to go into the backend and edit the &#8220;Store E-mail Addresses&#8221; but I don&#8217;t want them to be able to edit anything but the fields &#8220;Custom E-mail 1&#8243; and &#8220;Custom Email 2&#8243;. Well I have down and dirty way to limit fields from your admin users. Follow my steps and you will be able to limit the system configuration on your admin web site past the out of the box norm.  This tutorial requires you to know a bit about css and php.</p>
<p>Step one, create the user that you want to limit. To do this login as your super-admin, that admin that has permissions to every section of the magento backend. Navigate to System &gt; Permissions&gt; Roles. Next Click on &#8220;Add New Role&#8221;. Name the role to anything you want like &#8220;limitedadmin&#8221;. Then click on the &#8220;Role Resources&#8221; tab and select the resources you want the admin to have access too. For me in this example I want to limit my admin to only the &#8220;Store Email Addresses&#8221; located in the &#8220;System &gt; Admin&#8221; section. To this I uncheck all of the resources except &#8220;Configuration&#8221; and &#8220;Store Email Address Section&#8221;. Next hit Save. You are done with step one&#8230; Yay!</p>
<p>Step two, give a user the new admin role. To do this go to &#8220;System &gt; Permissions &gt; Users&#8221;. Click on &#8220;Add New User&#8221;. Enter in the require information and then select &#8220;User Roles&#8221; .  On the next page you might see a few user roles make sure you select the one you just created. So for me I selected &#8220;limitedadmin&#8221;.  Then hit &#8220;Save User&#8221;. You are done with step 2!!<span id="more-303"></span></p>
<p>Step three, find out what your default admin user role. To do this go to &#8220;System &gt; Permissions &gt; Roles&#8221;. Next where you see the list of roles, on the left hand side you should see a section that says &#8220;ID&#8221;. Write down the role name that has an id of &#8220;1&#8243;. Now you are done with step three and we can start coding!</p>
<p>Login to your ftp and navigate to the following directory:<br />
/httpdocs/app/design/adminhtml/default/default/template/page</p>
<p>You are going to be editing the file head.phtml. Make sure you back this file up before you edit it.<br />
Open the file and paste in the following code at the very very bottom of the file:</p>
<blockquote><p>&lt;?<br />
$roleId = implode(&#8221;, Mage::getSingleton(&#8216;admin/session&#8217;)&#8212;&#8211;&gt;getUser()-&gt;getRoles());<br />
$roleName = Mage::getModel(&#8216;admin/roles&#8217;)-&gt;load($roleId)-&gt;getRoleName();<br />
if ($roleName != &#8220;your-super-admin-role-name-here&#8221;) {echo &#8221;;}<br />
?&gt;</p></blockquote>
<p>Where you see your-super-admin-role-name-here change that code with the role name you wrote down before. This should be your master admin role and make sure you keep the quotations around the name. Basically we are telling the system that when you login if you NOT the super admin role then post a css file called css_not_super_admin.css in the page&#8217;s head. The css file will be located in the base skin url of your admin site and is where we will be editing the display of the fields. Now save the file and upload it to the server.</p>
<p>Next navigate to the following in your ftp client /app/code/core/Mage/Adminhtml/Block/System/Config/Form find the file Fieldset.phtml and copy it to your local machine. We will be editing this file but placing it in the app/code/local directory of the site. Why? Because you don&#8217;t want to mess with the core files. If anything happens to them you are screwed. So next navigate to app/code/local.</p>
<p>Now if you see the this directory then navigate to it: /app/code/local/Mage/Adminhtml/Block/System/Config/Form</p>
<p>If the follow directory doesn&#8217;t exist on your server then make it!  Go to your ftp client and navigate to app/code/local.  Then add the folder Mage, then go into Mage and add the folder Adminhtml&#8230; Continue this until you make the directory Form. Copy the Filedset.phtml into the Form directory.</p>
<p>Now open up the Fieldset.phtml file you just copied.  and look for the following line:</p>
<blockquote><p>$html = &#8216;&lt;div  class=&#8221;entry-edit-head collapseable&#8221; &gt;&lt;a id=&#8221;&#8216;.$element-&gt;getHtmlId().&#8217;-head&#8221; href=&#8221;#&#8221; onclick=&#8221;Fieldset.toggleCollapse(\&#8221;.$element-&gt;getHtmlId().&#8217;\', \&#8221;.$this-&gt;getUrl(&#8216;*/*/state&#8217;).&#8217;\'); return false;&#8221;&gt;&#8217;.$element-&gt;getLegend().&#8217;&lt;/a&gt;&lt;/div&gt;&#8217;;</p></blockquote>
<p>Replace it with the following:</p>
<blockquote><p>$html = &#8216;&lt;div  class=&#8221;entry-edit-head collapseable &#8216;.$element-&gt;getHtmlId().&#8217;-adminroll&#8221; &gt;&lt;a id=&#8221;&#8216;.$element-&gt;getHtmlId().&#8217;-head&#8221; href=&#8221;#&#8221; onclick=&#8221;Fieldset.toggleCollapse(\&#8221;.$element-&gt;getHtmlId().&#8217;\', \&#8221;.$this-&gt;getUrl(&#8216;*/*/state&#8217;).&#8217;\'); return false;&#8221;&gt;&#8217;.$element-&gt;getLegend().&#8217;&lt;/a&gt;&lt;/div&gt;&#8217;;</p></blockquote>
<p>You will notice that we changed the div&#8217;s class code to read class=&#8221;entry-edit-head collapseable &#8216;.$element-&gt;getHtmlId().&#8217;-adminroll&#8221;.  Basically we are adding a class that is the elements-id hyphen adminroll. This arbitrary class will let us add css code to control elements we want to hide.  I made the system produce something arbitrary like element-id-adminroll so that it would not conflict with any other css we might already have.  Save the file and upload it to the server!</p>
<p>Now login to the backend of your magneto web site using the roll that you want to limit!  When you login, right click on your browser and go to view source code.  Scroll down the just above the &lt;/head&gt; and confirm that the css code you added appears.  If it doesn&#8217;t you did something wrong.</p>
<p>It should look something like:</p>
<p>&lt;link rel=&#8221;stylesheet&#8221; type=&#8221;text/css&#8221; href=&#8221;http://www.domainname.com/skin/adminhtml/default/enterprise/css_non_admin.css&#8221;/&gt;</p>
<p>This will give you a hint on where to add your css file.  So in this case, since I am using magento enterprise addition, it is located in the enterprise directory.  For your web site it might be default/base or default/default.  Once you find out what directory you need to place your css navigate to it using your ftp client.</p>
<p>Once the directory create a new .css file named css_non_admin.css.  Now you can use basic css to limit what fields you the admin to see.  So for me I used the following&#8230;</p>
<blockquote><p>/* Store E-mail Addresses */<br />
#config_edit_form .trans_email_ident_general-adminroll, #config_edit_form .trans_email_ident_sales-adminroll, #config_edit_form .trans_email_ident_support-adminroll {display:none !important}</p></blockquote>
<p>Now when I navigate to the score e-mail addresses when using my non-super admin on my Magento web site I only see the fields custom e-mail 1 and custom e-mail 2.</p>
<p>I hope this helps your magento experience!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.milessebesta.com/2012/03/09/web-design/magento-ecommerce-websites-restricting-admin-configuration-fields/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Make Multiple Contact Us Forms and redirect them to seperate thank you pages.</title>
		<link>http://www.milessebesta.com/2012/02/23/web-design/magento-make-multiple-contact-us-forms-and-redirect-them-to-a-seperate-thank-you-pages/</link>
		<comments>http://www.milessebesta.com/2012/02/23/web-design/magento-make-multiple-contact-us-forms-and-redirect-them-to-a-seperate-thank-you-pages/#comments</comments>
		<pubDate>Fri, 24 Feb 2012 05:22:40 +0000</pubDate>
		<dc:creator>Miles</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[web site]]></category>
		<category><![CDATA[web site design]]></category>
		<category><![CDATA[website design]]></category>

		<guid isPermaLink="false">http://www.milessebesta.com/?p=291</guid>
		<description><![CDATA[I currently have a customer that needs multiple contact us forms that redirect to different thank you pages. After a long time I finally figured out how to make separate contact us pages and redirect the submission to a specific &#8230;<p class="read-more"><a href="http://www.milessebesta.com/2012/02/23/web-design/magento-make-multiple-contact-us-forms-and-redirect-them-to-a-seperate-thank-you-pages/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>I currently have a customer that needs multiple contact us forms that redirect to different thank you pages. After a long time I finally figured out how to make separate contact us pages and redirect the submission to a specific thank you page. Let&#8217;s say you want to make a form for your wholesalers that will be on wholesales.html and redirect them to a very special thankyou.html page.</p>
<p>First navigate to your skin template&#8217;s contact form files for me it is app/design/frontend/base/default/template/contacts</p>
<p>Once in that directory copy forms.phtml and name it something like form-wholesalers.phtml</p>
<p>Next open up this new .phtml file and scroll down to the bottom till you see:</p>
<blockquote><p>&lt;input id=&#8221;hideit&#8221; style=&#8221;display: none !important;&#8221; &nbsp;type=&#8221;text&#8221; name=&#8221;hideit&#8221; value=&#8221;" /&gt;</p></blockquote>
<p>Next ABOVE that line of code add the following:</p>
<blockquote><p><span id="more-291"></span>&lt;label class=&#8221;required&#8221; style=&#8221;display: none !important;&#8221; for=&#8221;custom_redirect&#8221;&gt;&lt;?php echo Mage::helper(&#8216;custom_redirect&#8217;)-&gt;__(&#8216;redirect&#8217;) ?&gt;&lt;/label&gt;</p>
<p>&lt;input id=&#8221;custom_redirect&#8221; class=&#8221;required-entry input-text field&#8221; title=&#8221;&lt;?php echo Mage::helper(&#8216;contacts&#8217;)-&gt;__(&#8216;custom_redirect&#8217;) ?&gt;&#8221; type=&#8221;hidden&#8221; name=&#8221;custom_redirect&#8221; value=&#8221;&lt;?php echo Mage::getBaseUrl(); ?&gt;your/redirect/url.html&#8221; /&gt;</p></blockquote>
<p>Basically we are simply creating a input called custom_redirect. We are hiding it from the public so that on one can see it. You will see in the code a part that says your/redirect/url.html. Here you can add the url you want the form to redirect to once it is posted. For example if I wanted the site to redirect to milessebesta.com/thank/you.html it would be:</p>
<blockquote><p>
value=&#8221;&lt;?php echo Mage::getBaseUrl(); ?&gt;your/redirect/url.html&#8221; /&gt;</p></blockquote>
<p>Next save the file and go to app/code/core/Mage/Contacts/controllers and open the IndexController.php file.<br />
IndexController.php controls the actions of your contact us form. So in it we are going to make some changes. Make sure you copy this file incase anything strange happens. Always make back-ups.</p>
<p>Scroll down and find the following code:</p>
<blockquote><p>if (!$mailTemplate-&gt;getSentSuccess()) {<br />
throw new Exception();<br />
}</p>
<p>$translate-&gt;setTranslateInline(true);</p>
<p>Mage::getSingleton(&#8216;customer/session&#8217;)-&gt;addSuccess(Mage::helper(&#8216;contacts&#8217;)-&gt;__(&#8216;Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us.&#8217;));<br />
$this-&gt;_redirect(&#8216;*/*/&#8217;);</p>
<p>return;</p></blockquote>
<p>This section controls what your system does once a contact us form is successfully ran. Now if you wanted to redirect all of your contact us forms to let&#8217;s say thankyou.hmtl you could just change<br />
$this-&gt;_redirect(&#8216;*/*/&#8217;); to $this-&gt;_redirect(&#8216;thankyou.html&#8217;); but that is too limited for us. We want to be able to make 100&#8242;s of forms and send them to all different thank you pages. To do this we need to change this section.</p>
<p>Here is the code we want:</p>
<blockquote><p>if (!$mailTemplate-&gt;getSentSuccess()) {<br />
throw new Exception();<br />
}</p>
<p>$translate-&gt;setTranslateInline(true);</p>
<p>if (isset($post['custom_redirect'])) { // If custom_redirect is set<br />
$redirect_url = $post['custom_redirect<span style="color: rgb(65, 56, 48); font-size: 16px; line-height: 20px; ">'</span>]; // Get the URL you want to redirect to<br />
$redirect_too = (explode(&#8220;.com/&#8221;, $redirect_url)); // Explode the Url<br />
Mage::getSingleton(&#8216;customer/session&#8217;)-&gt;addSuccess(Mage::helper(&#8216;contacts&#8217;)-&gt;__(&#8216;Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us.&#8217;));<br />
$this-&gt;_redirect($redirect_too[1]); // Redirect to everything everything after .com<br />
return;</p>
<p>} else {</p>
<p>Mage::getSingleton(&#8216;customer/session&#8217;)-&gt;addSuccess(Mage::helper(&#8216;contacts&#8217;)-&gt;__(&#8216;Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us.&#8217;));<br />
$this-&gt;_redirect(&#8216;*/*/&#8217;);</p>
<p>return;<br />
}</p></blockquote>
<p>First we see if we have set a custom_redirect form, it it exists then it moves on, if not it takes us to the default contact us page. We do this through this line of code:</p>
<blockquote><p>if (isset($post['custom_redirect'])) { // If custom_redirect is set</p></blockquote>
<p>Next we get the custom redirect url and set it to $redirect_url through the following:</p>
<blockquote><p>$redirect_url = $post['custom_redirect]; // Get the URL you want to redirect to</p></blockquote>
<p>Next we break the domain apart by finding the .com/. We have to do this because our $this-&gt;redirect needs to be to a directory not the full url. If we add the full url we will get an error.<br />
So we explode the string $redirect_url by searching for .com/. So for milessebesta.com/thankyou.html we only want thankyou.html. That is why we must explode the the domain string. We do this by using this:</p>
<blockquote><p>$redirect_too = (explode(&#8220;.com/&#8221;, $redirect_url)); // Explode the Url</p></blockquote>
<p>Next we add back in the default session information in case you want to use that silly green box on your thank you page for some reason. That section is this code, most of us won&#8217;t need it:</p>
<blockquote><p>Mage::getSingleton(&#8216;customer/session&#8217;)-&gt;addSuccess(Mage::helper(&#8216;contacts&#8217;)-&gt;__(&#8216;Your inquiry was submitted and will be responded to as soon as possible. Thank you for contacting us.&#8217;));</p></blockquote>
<p>Next we enter our redirect. We tell the system to use everything after &#8220;.com/&#8221; in a domain name through the use of $redirect_too[1] we place this within $this-&gt;_redirect(); because that is the code magento requires. Here is the complete line:</p>
<blockquote><p>$this-&gt;_redirect($redirect_too[1]); // Redirect to everything everything after .com</p></blockquote>
<p>Finally we execute the return; and close the if statement through }.</p>
<p>Now we are basically done with the coding. But, we need to add the form to a page to test it! So login to your magento backend and go to the cms section. Add a new page and name it whatever you want so for me it would be wholesalers.html</p>
<p>In the body of the page enter the following:</p>
<p>{{block type=&#8221;core/template&#8221; name=&#8221;contactForm&#8221; form_action=&#8221;/contacts/index/post&#8221; template=&#8221;contacts/your_form_here.phtml&#8221;}}</p>
<p>Replace the your_form_here.phtml to whatever custom form you created so for me it would be form-wholesalers.phtml.</p>
<p>Save the page. Next create the thank you page you wanted to the direct to, like thankyou.html, if it doesn&#8217;t exist already, and put the information you want on it. Next navigate to your custom form page and test it! If done correctly it should take you to your custom thankyou page.</p>
<p>If you have any questions please ask! If you would like to know how to make custom fields for your custom form check out this link <a href="http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/contacts/add_fields_to_contact_form" target="_blank">http://www.magentocommerce.com/wiki/4_-_themes_and_template_customization/contacts/add_fields_to_contact_form</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.milessebesta.com/2012/02/23/web-design/magento-make-multiple-contact-us-forms-and-redirect-them-to-a-seperate-thank-you-pages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Auto restoring all mysql databases within a directory</title>
		<link>http://www.milessebesta.com/2012/02/17/web-design/auto-restoring-all-mysql-databases-within-a-directory/</link>
		<comments>http://www.milessebesta.com/2012/02/17/web-design/auto-restoring-all-mysql-databases-within-a-directory/#comments</comments>
		<pubDate>Sat, 18 Feb 2012 04:16:32 +0000</pubDate>
		<dc:creator>Miles</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[web site]]></category>
		<category><![CDATA[websites]]></category>

		<guid isPermaLink="false">http://www.milessebesta.com/?p=281</guid>
		<description><![CDATA[Here is a simple ssh code to restore all databases within a directory.  This is an automated batch restore.  Meaning you don&#8217;t have to sit there entering commands all night long.  This is great if you are migrating databases to &#8230;<p class="read-more"><a href="http://www.milessebesta.com/2012/02/17/web-design/auto-restoring-all-mysql-databases-within-a-directory/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>Here is a simple ssh code to restore all databases within a directory.  This is an automated batch restore.  Meaning you don&#8217;t have to sit there entering commands all night long.  This is great if you are migrating databases to a new server.  Or, if God forbids you have to store all mysql databses on your server for whatever reason.</p>
<p><span id="more-281"></span></p>
<p>First dump all of your mysql databases into a temporary directory as sql.gz archived files. Make sure the sql.gz file is the same name as your database name.   Meaning if the database name is milesanimates then make sure the archived file is titled milesanimates.sql.gz.  This command only works if the  mysql database archived as a .sql.gz file.  It takes the name of the file and stores it into a database named the same.  CD into the directory and run the following command.</p>
<blockquote><p>ls *.gz | awk -F. &#8216;{print $1}&#8217; | while read A; do zcat $A.sql.gz | mysql $A; done
</p></blockquote>
<p>If it doesn&#8217;t run correctly it means that the database doesn&#8217;t exist on the server.  If that is the case then run this command first to create all of the databases.</p>
<blockquote><p>ls *.gz | awk -F. &#8216;{print $1}&#8217; | while read A; do echo &#8220;mysqladmin create $A&#8221;; done</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.milessebesta.com/2012/02/17/web-design/auto-restoring-all-mysql-databases-within-a-directory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Animation Clean Up &#8211; Tracking Arcs With Sketch it!</title>
		<link>http://www.milessebesta.com/2012/01/19/animation/animation-clean-up-tracking-arcs-with-sketch-it/</link>
		<comments>http://www.milessebesta.com/2012/01/19/animation/animation-clean-up-tracking-arcs-with-sketch-it/#comments</comments>
		<pubDate>Thu, 19 Jan 2012 16:54:46 +0000</pubDate>
		<dc:creator>Miles</dc:creator>
				<category><![CDATA[Animation]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[animation tips]]></category>
		<category><![CDATA[maya]]></category>
		<category><![CDATA[maya animation tips]]></category>

		<guid isPermaLink="false">http://www.milessebesta.com/?p=272</guid>
		<description><![CDATA[When doing clean-up work sometimes it is hard to track the arcs. There are a few ways that animators can track and figure out the arcs of a motion. One, use an arc tracker program and track it in Maya. &#8230;<p class="read-more"><a href="http://www.milessebesta.com/2012/01/19/animation/animation-clean-up-tracking-arcs-with-sketch-it/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>When doing clean-up work sometimes it is hard to track the arcs.  There are a few ways that animators can track and figure out the arcs of a motion.  One, use an arc tracker program and track it in Maya. Two, and easiest way, get a dry erase marker and plot points on the screen.  But using a dry erase marker on your screen might leave it dirty. Also, sometimes arc trackers are more complicated than need be.<br />
<span id="more-272"></span><br />
For those that want to take a traditional dry erase marker approach but don&#8217;t want to get their screen dirty then there is an alternative method. What is the solution? download a program like &#8220;Sketch It&#8221; for windows computers. It took me a long time to find a sketching program that worked well on windows.  For apple there are a few of them already out there just google &#8220;apple, drawing on screen&#8221;.  But, for us poor PC users I would suggest using <a href="http://wilzmodz.com/index.php?option=com_content&amp;task=view&amp;id=37&amp;Itemid=74" target="_blank">Sketch It</a>. Sketch it is free and works perfectly with Maya. It isn&#8217;t bloated, full of spyware, or have any &nbsp;viruses. You can download the program from <a href="http://download.cnet.com/Sketch-It/3000-2072_4-10907817.html?tag=mncol;6" target="_blank" class="">Download.cnet.com</a>. &nbsp;Download.cnet.com will provide you with a &#8220;secure download&#8221; if you don&#8217;t believe me.</p>
<p>I hope this makes animating arcs a bit easier for you.</p>
<p>Happy animating.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.milessebesta.com/2012/01/19/animation/animation-clean-up-tracking-arcs-with-sketch-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Color Coding your Keys in Maya</title>
		<link>http://www.milessebesta.com/2012/01/18/animation/color-coding-your-keys-in-maya/</link>
		<comments>http://www.milessebesta.com/2012/01/18/animation/color-coding-your-keys-in-maya/#comments</comments>
		<pubDate>Wed, 18 Jan 2012 23:48:36 +0000</pubDate>
		<dc:creator>Miles</dc:creator>
				<category><![CDATA[Animation]]></category>
		<category><![CDATA[animation]]></category>
		<category><![CDATA[animation tips]]></category>
		<category><![CDATA[maya]]></category>
		<category><![CDATA[maya animation tips]]></category>

		<guid isPermaLink="false">http://www.milessebesta.com/?p=263</guid>
		<description><![CDATA[I like to color code my key&#8217;s and inbetween key&#8217;s when animating in Maya. However, I do not like using Maya&#8217;s default between keys. Why? because whenever you place in a between key in maya it will move and slide &#8230;<p class="read-more"><a href="http://www.milessebesta.com/2012/01/18/animation/color-coding-your-keys-in-maya/">Read more &#187;</a></p>]]></description>
			<content:encoded><![CDATA[<p>I like to color code my key&#8217;s and inbetween key&#8217;s when animating in Maya. However, I do not like using Maya&#8217;s default between keys. Why? because whenever you place in a between key in maya it will move and slide around when adjusting keys around it. Below are two examples of the problem. The red ticks are keys and the green is an in-between.</p>
<p>Before:<br />
<a href="http://www.milessebesta.com/wp-content/uploads/2012/01/keys-on.jpg" class="" rel="lightbox[263]"><img src="http://www.milessebesta.com/wp-content/uploads/2012/01/keys-on.jpg" alt="" title="keys-on" width="751" height="151" class="aligncenter size-full wp-image-265"></a></p>
<p>Afters sliding the right key over one:<br />
<a href="http://www.milessebesta.com/wp-content/uploads/2012/01/ticks-off.jpg" class="" rel="lightbox[263]"><img src="http://www.milessebesta.com/wp-content/uploads/2012/01/ticks-off.jpg" alt="" title="ticks-off" width="845" height="158" class="aligncenter size-full wp-image-264"></a><br />
As you can see the green tick slides into an gross position. It isn&#8217;t on an actual frame.  To prevent this from happening you have to do a little mel scripting magic.</p>
<p>Here is how you can fix the problem if you like colored in-betweens like I do.<br />
<span id="more-263"></span><br />
First open maya and go to Window &gt; Settings &gt; Hotkey Editor. Under Categories find &#8220;Animate&#8221;, highlight it.</p>
<p>Next on the bottom right hand side of the &#8220;Hotkey Editor&#8221; window click &#8220;New&#8221;.</p>
<p>Name the new hotkey something like &#8220;AddColoredKey&#8221;. Under description &#8220;Change key to special color&#8221;. Choose &#8220;Mel&#8221; as the language.  Then in the command box copy and paste this code:</p>
<blockquote><p>performSetKeyframeArgList 1 {&#8220;0&#8243;, &#8220;animationList&#8221;};<br />
keyframe -time `currentTime -q` -tds 1;</p></blockquote>
<p>This code first creates a key and then changes the key color using the -tds command.</p>
<p>Hit &#8220;Accept&#8221;.</p>
<p>Next assign this new hotkey to a key you want for me I picked &#8220;i&#8221; because it makes sense, i is for in-between.  To do this in the &#8220;Assign New Hotkey&#8221; box on the top right hand side enter &#8220;i&#8221; into key.  Then click &#8220;Assign&#8221;, you might get some messages saying that you will overwrite current hotkeys, if you want to overwrite them, which I do for &#8220;i&#8221; since I never use that command hit okay.</p>
<p>Finally make sure you hit &#8220;SAVE&#8221; on the bottom left hand side.</p>
<p>Now you should be able to go into the animation timeline and hit the letter &#8220;i&#8221; on your keyboard.  This should enter in a green tween key. You can now slide the other keys around without having it effect the positioning of the in-between.</p>
<p>Happy animating.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.milessebesta.com/2012/01/18/animation/color-coding-your-keys-in-maya/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Served from: milessebesta.com @ 2012-05-20 16:12:52 -->
