<?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>Solution Log &#124; Antonio David - NVNCBL</title>
	<atom:link href="http://www.nvncbl.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nvncbl.com</link>
	<description>A place to log my programming solutions for future reference</description>
	<lastBuildDate>Tue, 09 Mar 2010 22:23:42 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Google Chrome &#8211; Goodbye Firefox</title>
		<link>http://www.nvncbl.com/2010/03/google-chrome-goodbye-firefox/</link>
		<comments>http://www.nvncbl.com/2010/03/google-chrome-goodbye-firefox/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 22:23:42 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[chrome]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[memory leak]]></category>
		<category><![CDATA[mozilla]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=529</guid>
		<description><![CDATA[I&#8217;ve become fed up with Firefox&#8217;s memory leak problem.  Most of us have seen the browser occupying upwards of 1GB, but even today&#8217;s offense of just 461MB (5 tabs open) was the final nail in the coffin.  Taking recommendations from co-workers and friends, I installed Google Chrome.  It&#8217;s lightning fast.  The transition process was smooth [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve become fed up with Firefox&#8217;s memory leak problem.  Most of us have seen the browser occupying upwards of 1GB, but even today&#8217;s offense of just 461MB (5 tabs open) was the final nail in the coffin.  Taking recommendations from co-workers and friends, I installed Google Chrome.  It&#8217;s lightning fast.  The transition process was smooth and painless &#8212; bookmarks, browsing history, and saved passwords were all migrated.  I&#8217;m excited to see how the browser integrates with Google&#8217;s online services (e.g. bookmark sync)</p>

<a href="http://www.nvncbl.com/wp-content/gallery/articles/firefox-memory-leak.jpg" title="" class="shutterset_singlepic30" >
	<img class="ngg-singlepic ngg-center" src="http://www.nvncbl.com/wp-content/gallery/cache/30__247x260_firefox-memory-leak.jpg" alt="firefox-memory-leak" title="firefox-memory-leak" />
</a>

<p>Don&#8217;t get me wrong, I love Firefox and once touted it as the best thing to happen to the Internet since broadband came out.  Too bad the rest of my system slows to the point where I&#8217;m experiencing issues with basic keyboard and mouse input.  I know I&#8217;ll have to come back to Firefox every now and then because of the developer toolbar, but it&#8217;s no longer my default browser.  Did I mention that Chrome is fast?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2010/03/google-chrome-goodbye-firefox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Set Product Dropdown and Multiselect Values Programmatically</title>
		<link>http://www.nvncbl.com/2010/03/magento-set-product-dropdown-and-multiselect-values-programmatically/</link>
		<comments>http://www.nvncbl.com/2010/03/magento-set-product-dropdown-and-multiselect-values-programmatically/#comments</comments>
		<pubDate>Tue, 09 Mar 2010 01:02:17 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[addData]]></category>
		<category><![CDATA[attribute]]></category>
		<category><![CDATA[automated]]></category>
		<category><![CDATA[dropdown]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[multiple]]></category>
		<category><![CDATA[multiselect]]></category>
		<category><![CDATA[programmatically]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[values]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=513</guid>
		<description><![CDATA[Here&#8217;s how to programmatically, meaning through code, set a product&#8217;s attribute value when the attribute is of type Dropdown or Multiselect.  For dropdown, we&#8217;ll be interested in setting only a single value.  And obviously for multiselect, we&#8217;ll be interested in setting multiple values.
With Text attributes such as Name and Description, you can do something like:

$product-&#62;setName&#40; [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s how to programmatically, meaning through code, set a product&#8217;s attribute value when the attribute is of type Dropdown or Multiselect.  For dropdown, we&#8217;ll be interested in setting only a single value.  And obviously for multiselect, we&#8217;ll be interested in setting multiple values.</p>
<p>With Text attributes such as Name and Description, you can do something like:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setName</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'My Sweet Shirt'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setDescription</span><span style="color: #009900;">&#40;</span> <span style="color: #0000ff;">'This shirt will make you look good, thus impressing girls.'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Unfortunately, this won&#8217;t work for attributes whose values are predefined.  Instead of cursing Magento, think of it as a data-integrity/validation measure.</p>
<p>Anyway, assuming you already have a $product object, our overall process will be to:</p>
<ol>
<li>Load an attribute object for the attribute you want to work on</li>
<li>Load the collection of that attribute&#8217;s values</li>
<li>Make your choices (different for Dropdown and Multiselect)</li>
<li>Save the product</li>
</ol>
<p><strong>1. Load an attribute object for the attribute you want to work on</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$attribute</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'eav/entity_attribute'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$attribute</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">loadByCode</span><span style="color: #009900;">&#40;</span> <span style="color: #cc66cc;">4</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'color'</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong>2. Load the collection of that attribute&#8217;s values</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$values</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$valuesCollection</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: #0000ff;">'eav/entity_attribute_option_collection'</span><span style="color: #009900;">&#41;</span>
	<span style="color: #339933;">-&gt;</span><span style="color: #004000;">setAttributeFilter</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$attribute</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span>
	<span style="color: #339933;">-&gt;</span><span style="color: #004000;">setStoreFilter</span><span style="color: #009900;">&#40;</span> Mage_Core_Model_App<span style="color: #339933;">::</span><span style="color: #004000;">ADMIN_STORE_ID</span><span style="color: #339933;">,</span> <span style="color: #009900; font-weight: bold;">false</span><span style="color: #009900;">&#41;</span>
	<span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #b1b100;">foreach</span> <span style="color: #009900;">&#40;</span><span style="color: #000088;">$valuesCollection</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$item</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #000088;">$item</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getValue</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">=</span> <span style="color: #000088;">$item</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>3. Make your choice &#8211; DROPDOWN</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setColor</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Blue'</span><span style="color: #009900;">&#93;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span> <span style="color: #666666; font-style: italic;">// just do whatever you need to code 'Blue' instead of hard-coding it</span></pre></div></div>

<p><strong>3. Make your choices &#8211; MULTISELECT</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">addData</span><span style="color: #009900;">&#40;</span> <span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span>
	<span style="color: #0000ff;">'color'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Blue'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">','</span><span style="color: #339933;">.</span> <span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Red'</span><span style="color: #009900;">&#93;</span> <span style="color: #339933;">.</span><span style="color: #0000ff;">','</span><span style="color: #339933;">.</span> <span style="color: #000088;">$values</span><span style="color: #009900;">&#91;</span><span style="color: #0000ff;">'Black'</span><span style="color: #009900;">&#93;</span>  <span style="color: #666666; font-style: italic;">// just putting together a comma-separated list of values</span>
<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p><strong>4. Save the product</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">save</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>This builds off the solution posted by member &#8220;icvu&#8221; here: <a href="http://www.magentocommerce.com/boards/main.php/viewthread/69925/" class="external">http://www.magentocommerce.com/boards/main.php/viewthread/69925/</a> &#8212; specifically the addData() part.</p>
<p>Thanks, and have fun setting attribute values.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2010/03/magento-set-product-dropdown-and-multiselect-values-programmatically/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ConstantContact Send Welcome Email When Creating a New Contact via API</title>
		<link>http://www.nvncbl.com/2010/03/constantcontact-send-welcome-email-when-creating-a-new-contact-via-api/</link>
		<comments>http://www.nvncbl.com/2010/03/constantcontact-send-welcome-email-when-creating-a-new-contact-via-api/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 17:34:32 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[autoresponder]]></category>
		<category><![CDATA[constantcontact]]></category>
		<category><![CDATA[contact]]></category>
		<category><![CDATA[mailing list]]></category>
		<category><![CDATA[welcome email]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=507</guid>
		<description><![CDATA[Using the ConstantContact mailing list, I was having trouble getting the welcome email to send after creating a new contact through the API.  I had tried checking the &#8220;Autoresponder&#8221; box in the admin panel, but still no welcome email.  The solution is to have:

var $actionBy = 'ACTION_BY_CONTACT';

in cc_class.php (provided via the &#8220;PHP Sample [...]]]></description>
			<content:encoded><![CDATA[<p>Using the ConstantContact mailing list, I was having trouble getting the welcome email to send after creating a new contact through the API.  I had tried checking the &#8220;Autoresponder&#8221; box in the admin panel, but still no welcome email.  The solution is to have:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$actionBy</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ACTION_BY_CONTACT'</span><span style="color: #339933;">;</span></pre></div></div>

<p>in cc_class.php (provided via the &#8220;<a href="http://developer.constantcontact.com/samples/upload_forms" class="external">PHP Sample Forms</a>&#8221; zip file).  By default, this value is:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">var</span> <span style="color: #000088;">$actionBy</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ACTION_BY_CUSTOMER'</span></pre></div></div>

<p> instead, which does not trigger the welcome email.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2010/03/constantcontact-send-welcome-email-when-creating-a-new-contact-via-api/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Refresh Magento Cache Programmatically</title>
		<link>http://www.nvncbl.com/2010/03/refresh-magento-cache-programmatically/</link>
		<comments>http://www.nvncbl.com/2010/03/refresh-magento-cache-programmatically/#comments</comments>
		<pubDate>Sat, 06 Mar 2010 04:16:45 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Resources]]></category>
		<category><![CDATA[automation]]></category>
		<category><![CDATA[cache]]></category>
		<category><![CDATA[catalog]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[inventory]]></category>
		<category><![CDATA[layered navigation]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[rebuild]]></category>
		<category><![CDATA[refresh]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=488</guid>
		<description><![CDATA[When writing processes to automate some of Magento&#8217;s normally laborious tasks, perhaps for a product-import script, a mass attribute update script, category import, or inventory adjustment, keep in mind that you may have to refresh some kind of cache &#8212; especially when working with attributes.  If you are encountering quirks or inconsistencies with your [...]]]></description>
			<content:encoded><![CDATA[<p>When writing processes to automate some of Magento&#8217;s normally laborious tasks, perhaps for a product-import script, a mass attribute update script, category import, or inventory adjustment, keep in mind that you may have to refresh some kind of cache &#8212; especially when working with attributes.  If you are encountering quirks or inconsistencies with your data, try these:</p>
<ul>
<li>Rebuild Catalog Index

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/index'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rebuild</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</li>
<li>Rebuild Flat Catalog Product

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Mage<span style="color: #339933;">::</span><span style="color: #004000;">getResourceModel</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'catalog/product_flat_indexer'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rebuild</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</li>
<li>Inventory Stock

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'cataloginventory/stock_status'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">rebuild</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

</li>
</ul>
<p>For more cache refreshes, such as:</p>
<ul>
<li>Catalog Rewrites</li>
<li>Layered Navigation Indices</li>
<li>Product Image</li>
<li>Search Index</li>
</ul>
<p>&#8230; please refer to the source of this knowledge <a class="external" title="Magento Refresh Cache" href="http://www.magentocommerce.com/boards/viewthread/43238/#t156277" target="_blank">http://www.magentocommerce.com/boards/viewthread/43238/#t156277</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2010/03/refresh-magento-cache-programmatically/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Center Align a UL Menu</title>
		<link>http://www.nvncbl.com/2010/02/center-align-a-ul-menu/</link>
		<comments>http://www.nvncbl.com/2010/02/center-align-a-ul-menu/#comments</comments>
		<pubDate>Fri, 19 Feb 2010 19:08:22 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[center]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[display]]></category>
		<category><![CDATA[inline]]></category>
		<category><![CDATA[ul]]></category>
		<category><![CDATA[unordered list]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=494</guid>
		<description><![CDATA[The task of center-aligning an unordered list (which can&#8217;t have its width explicitly set) via CSS comes up every now and then.  Logging it here for later.
&#8220;For a start you could text-align: center the ul inside the #ul_container_div and display: inline the li instead of floating them left.&#8221;

#ul_container_div&#123; width:100%; text-align:center; &#125;
#ul_container_div li &#123; display: [...]]]></description>
			<content:encoded><![CDATA[<p>The task of center-aligning an unordered list (which can&#8217;t have its width explicitly set) via CSS comes up every now and then.  Logging it here for later.</p>
<p>&#8220;For a start you could text-align: center the ul inside the #ul_container_div and display: inline the li instead of floating them left.&#8221;</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #cc00cc;">#ul_container_div</span><span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;"><span style="color: #cc66cc;">100</span>%</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">text-align</span><span style="color: #00AA00;">:</span><span style="color: #993333;">center</span><span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #cc00cc;">#ul_container_div</span> li <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">inline</span><span style="color: #00AA00;">;</span>  <span style="color: #00AA00;">&#125;</span></pre></div></div>

<p>Source of knowledge: <a class="external" href="http://archivist.incutio.com/viewlist/css-discuss/59041">http://archivist.incutio.com/viewlist/css-discuss/59041</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2010/02/center-align-a-ul-menu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 Phantom Text / Duplicate Text Bug</title>
		<link>http://www.nvncbl.com/2010/02/ie6-phantom-text-duplicate-text-bug/</link>
		<comments>http://www.nvncbl.com/2010/02/ie6-phantom-text-duplicate-text-bug/#comments</comments>
		<pubDate>Wed, 17 Feb 2010 22:56:31 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[clear]]></category>
		<category><![CDATA[duplicate]]></category>
		<category><![CDATA[float]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[internet explorer 6]]></category>
		<category><![CDATA[phantom]]></category>
		<category><![CDATA[repeated]]></category>
		<category><![CDATA[text]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=490</guid>
		<description><![CDATA[Just for purposes of documenting this useful knowledge:
When viewing in Internet Explorer 6 and experiencing the &#8220;strange-repeated-text&#8221; problem, try applying this CSS to the element containing the text that gets repeated:
float: none;
clear: both;
Knowledge from: http://uxdev.blogspot.com/2008/10/phantom-text-in-ie6.html
]]></description>
			<content:encoded><![CDATA[<p>Just for purposes of documenting this useful knowledge:</p>
<p>When viewing in Internet Explorer 6 and experiencing the &#8220;strange-repeated-text&#8221; problem, try applying this CSS to the element containing the text that gets repeated:</p>
<p>float: none;<br />
clear: both;</p>
<p>Knowledge from: <a class="external" href="http://uxdev.blogspot.com/2008/10/phantom-text-in-ie6.html">http://uxdev.blogspot.com/2008/10/phantom-text-in-ie6.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2010/02/ie6-phantom-text-duplicate-text-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Web Design Failure Process</title>
		<link>http://www.nvncbl.com/2009/12/web-design-failure-proces/</link>
		<comments>http://www.nvncbl.com/2009/12/web-design-failure-proces/#comments</comments>
		<pubDate>Fri, 04 Dec 2009 15:30:11 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Geek / Humor]]></category>
		<category><![CDATA[failure]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=477</guid>
		<description><![CDATA[Got this in my email today.  I&#8217;m sure we can all relate to this phenomenon.

Thanks &#8220;The Oatmeal&#8220;
]]></description>
			<content:encoded><![CDATA[<p>Got this in my email today.  I&#8217;m sure we can all relate to <a class="external" title="Design Hell" href="http://theoatmeal.com/comics/design_hell">this phenomenon</a>.</p>
<p>
<a href="http://www.nvncbl.com/wp-content/gallery/articles/theoatmeal.jpg" title="" class="shutterset_singlepic29" >
	<img class="ngg-singlepic ngg-center" src="http://www.nvncbl.com/wp-content/gallery/cache/29__300x213_theoatmeal.jpg" alt="theoatmeal" title="theoatmeal" />
</a>
<br />
<br />
Thanks &#8220;<a class="external" title="TheOatmeal.com" href="http://theoatmeal.com/">The Oatmeal</a>&#8220;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2009/12/web-design-failure-proces/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Force IE8 to Render Like IE7</title>
		<link>http://www.nvncbl.com/2009/12/force-ie8-torender-like-ie7/</link>
		<comments>http://www.nvncbl.com/2009/12/force-ie8-torender-like-ie7/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 17:15:51 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[compatibility]]></category>
		<category><![CDATA[friend connect]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=471</guid>
		<description><![CDATA[Found this little snippet yesterday.  I&#8217;m not saying that this is best practice in any way, but if you&#8217;re looking for a quick fix, here it is:

&#60;meta content='IE=EmulateIE7' http-equiv='X-UA-Compatible'/&#62;

I think this has the effect of enabling &#8220;Compatibility Mode&#8221; that the user would normally have to turn on.
As a side note, the specific reason I [...]]]></description>
			<content:encoded><![CDATA[<p>Found this little snippet yesterday.  I&#8217;m not saying that this is best practice in any way, but if you&#8217;re looking for a quick fix, here it is:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">meta</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'IE=EmulateIE7'</span> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">'X-UA-Compatible'</span><span style="color: #66cc66;">/</span>&gt;</span></pre></div></div>

<p>I think this has the effect of enabling &#8220;Compatibility Mode&#8221; that the user would normally have to turn on.</p>
<p>As a side note, the specific reason I used this was to make a Google Friend Connect widget render properly &#8212; there are plenty of posts on the web about those widgets not working in IE8.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2009/12/force-ie8-torender-like-ie7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tips for Being Sick</title>
		<link>http://www.nvncbl.com/2009/11/tips-for-being-sick/</link>
		<comments>http://www.nvncbl.com/2009/11/tips-for-being-sick/#comments</comments>
		<pubDate>Fri, 20 Nov 2009 14:27:52 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[sick]]></category>
		<category><![CDATA[tips]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=467</guid>
		<description><![CDATA[I just spent the past 36+ hours in bed, with a few minor exceptions (going to the bathroom 3x and eating 2x).  I don&#8217;t know what I am sick with, probably just a rogue case of fatigue, but here are some tips to help make being sick easier:

Turn up the heat.  Your ability to be [...]]]></description>
			<content:encoded><![CDATA[<p>I just spent the past 36+ hours in bed, with a few minor exceptions (going to the bathroom 3x and eating 2x).  I don&#8217;t know what I am sick with, probably just a rogue case of fatigue, but here are some tips to help make being sick easier:</p>
<ul>
<li>Turn up the heat.  Your ability to be warm-blooded is probably weakened.  Does it seem like blankets and comforters don&#8217;t make you any warmer?</li>
<li>Wear socks.  I heard somewhere that one&#8217;s body temperature generally follows the temperature of one&#8217;s feet.  I normally don&#8217;t wear socks when I sleep (I feel they&#8217;re not as comfortable as not wearing them).  But socks will keep you warm.</li>
<li>Move your bed away from the windows.  You never know if drafts (that you&#8217;d normaly be insensitive to) are agitating you.  If your bed is right up against the wall/windows, move it away about 6 inches.</li>
<li>Take a lozenge.  For this particular illness, it hurt to swallow.  Taking a lozenge provides temporary relief.  It is also a mild anesthetic  so our mouth will be numb.</li>
<li>Drink lots of Fluid and take some Soup.</li>
<li>Avoid touching cold things and wear slippers or socks when roaming the house.</li>
<li>Flip the pillow over a bunch of times.  It&#8217;s nasty to reposition your head only to discover that you&#8217;ve just landed your cheek in a huge puddle of drool.  Flipping the pillow over allows time for the puddle to dissipate.</li>
<li>Listening to music is agitating.  Either don&#8217;t listen to any, or listen to soft music like opera or classical.</li>
<li>Have a glass of water, a box of tissues, and some spittage receptacle nearby.  That way you&#8217;re not thirsty, blowing your nose on blankets/sheets, and spitting on the floor.</li>
</ul>
<p>That&#8217;s all I can think of for now.  Stay well, everyone!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2009/11/tips-for-being-sick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento $this-&gt;getSkinUrl() Wrong Template</title>
		<link>http://www.nvncbl.com/2009/10/magento-this-getskinurl-wrong-template/</link>
		<comments>http://www.nvncbl.com/2009/10/magento-this-getskinurl-wrong-template/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 15:39:08 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=463</guid>
		<description><![CDATA[When using $this-&#62;getSkinUrl(&#8216;path/to/yourfile.html&#8217;) inside view (.phtml) code, and you&#8217;re getting /default/default/ instead of /default/yourtheme, this isn&#8217;t Magento working incorrectly.  Check the $argument you send and verify that the target file actually exists.
getSkinUrl() does more than just generate the proper URL, it also verifies that the file exists.  If it doesn&#8217;t find the file within the [...]]]></description>
			<content:encoded><![CDATA[<p>When using $this-&gt;getSkinUrl(&#8216;path/to/yourfile.html&#8217;) inside view (.phtml) code, and you&#8217;re getting /default/default/ instead of /default/yourtheme, this isn&#8217;t Magento working incorrectly.  Check the $argument you send and verify that the target file actually exists.</p>
<p>getSkinUrl() does more than just generate the proper URL, it also verifies that the file exists.  If it doesn&#8217;t find the file within the store&#8217;s /yourtheme folder, it will revert to /default.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2009/10/magento-this-getskinurl-wrong-template/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Script Double Run / Double Execute Phenomenon</title>
		<link>http://www.nvncbl.com/2009/10/script-double-run-double-execute-phenomenon/</link>
		<comments>http://www.nvncbl.com/2009/10/script-double-run-double-execute-phenomenon/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 20:05:29 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[double execute]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[img]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[src]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=458</guid>
		<description><![CDATA[I had a problem with your PHP code running or executing seemingly twice.  To debug this phenomenon, I put some write-to-file code at the beginning of the script.  Surprisingly, whenever I loaded my script in the browser, the file would be written to twice despite my one page load.
The problem was that The page I [...]]]></description>
			<content:encoded><![CDATA[<p>I had a problem with your PHP code running or executing seemingly twice.  To debug this phenomenon, I put some write-to-file code at the beginning of the script.  Surprisingly, whenever I loaded my script in the browser, the file would be written to twice despite my one page load.</p>
<p>The problem was that The page I was developing had an &lt;img&gt; in it with the &#8220;src&#8221; attribute set blank.  When the document was fully loaded, javascript was in place to dynamically assign the &#8220;src&#8221;.  This worked perfectly fine in the pre-server-side-logic stage of development so it was an easy decision to begin debugging server-side logic.</p>
<p>The double execute happens when Firefox sees &lt;img src=&#8221;" /&gt;.  Not knowing what source to assign, it sends a request (the second request) to the current path (again) for the image.  Therein lies the problem.  It&#8217;s interesting to note that Firefox is not to blame, as it&#8217;s following HTML specification.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2009/10/script-double-run-double-execute-phenomenon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Introducing Magento Widgets</title>
		<link>http://www.nvncbl.com/2009/10/introducing-magento-widgets/</link>
		<comments>http://www.nvncbl.com/2009/10/introducing-magento-widgets/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 14:19:12 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[widgets]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=451</guid>
		<description><![CDATA[Magento Widgets allow business users with no technical knowledge to easily add dynamic content (including product data, for example) to pages in Magento Stores.  This allows for greater control and flexibility in creating informational and marketing content through administrator tools, enabling intuitive and efficient control of content such as:

Dynamic product data in Marketing Campaign Landing [...]]]></description>
			<content:encoded><![CDATA[<p>Magento Widgets allow business users with no technical knowledge to easily add dynamic content (including product data, for example) to pages in Magento Stores.  This allows for greater control and flexibility in creating informational and marketing content through administrator tools, enabling intuitive and efficient control of content<span id="more-451"></span> such as:</p>
<ul>
<li>Dynamic product data in Marketing Campaign Landing Pages</li>
<li>Dynamic Information such as Recently Viewed Items into Content Pages</li>
<li>Promotional images to position in different blocks, side columns and other locations throughout the storefront</li>
<li>Interactive elements and action blocks (external review systems, video chats, voting and subscription forms)</li>
<li>Alternative navigation elements (tag clouds, catalog image sliders)</li>
<li>Create interactive and dynamic flash elements easily configured and embedded within content pages for enhanced user experience</li>
</ul>
<p>Originally posted on the <a class="external" href="http://www.magentocommerce.com/blog/comments/introducing-magento-widgets/">official Magento Blog</a>.  Continue reading for more on:</p>
<ul>
<li>What are Widgets?</li>
<li>How to Develop a Widget</li>
<li>Terminology</li>
<li>Widget Examples in Magento CE 1.4, EE 1.6</li>
</ul>
<p>Widget ideas anyone?  What should I work on?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2009/10/introducing-magento-widgets/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Magento Clear Shopping Cart and Session</title>
		<link>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/</link>
		<comments>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/#comments</comments>
		<pubDate>Tue, 08 Sep 2009 04:29:21 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[checkout]]></category>
		<category><![CDATA[clear]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[reset]]></category>
		<category><![CDATA[session]]></category>
		<category><![CDATA[shopping cart]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=410</guid>
		<description><![CDATA[If you ever need to programmatically clear Magento&#8217;s shopping cart, use the snippet of code below.  If you need to clear the user&#8217;s entire session, including the shopping cart, shipping information, billing information and chosen payment methods, please refer to the snippet further below.
Clear shopping cart

foreach&#40; Mage::getSingleton&#40;'checkout/session'&#41;-&#62;getQuote&#40;&#41;-&#62;getItemsCollection&#40;&#41; as $item &#41;&#123;
    Mage::getSingleton&#40;'checkout/cart'&#41;-&#62;removeItem&#40; [...]]]></description>
			<content:encoded><![CDATA[<p>If you ever need to programmatically clear Magento&#8217;s shopping cart, use the snippet of code below.  If you need to clear the user&#8217;s entire session, including the shopping cart, shipping information, billing information and chosen payment methods, please refer to the snippet further below.</p>
<p><span id="more-410"></span><strong>Clear shopping cart</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'checkout/session'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getQuote</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getItemsCollection</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$item</span> <span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>
    Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'checkout/cart'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">removeItem</span><span style="color: #009900;">&#40;</span> <span style="color: #000088;">$item</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getId</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">save</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p><strong>Clear entire session</strong></p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span>‘checkout<span style="color: #339933;">/</span>session’<span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">clear</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2009/09/magento-clear-shopping-cart-and-session/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Claiming this Blog on Technorati</title>
		<link>http://www.nvncbl.com/2009/09/claiming-this-blog-on-technorati/</link>
		<comments>http://www.nvncbl.com/2009/09/claiming-this-blog-on-technorati/#comments</comments>
		<pubDate>Mon, 07 Sep 2009 03:36:44 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[technorati]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=411</guid>
		<description><![CDATA[Here goes: wshkb4gy8m
So in order for me to &#8220;claim&#8221; this blog for submission on Technorati, I have to create a post with a certain jumbled string in it.  Technorati will then read the jumbled string and verify that I am indeed the owner of this site.
Technorati is a search engine for blogs.  I [...]]]></description>
			<content:encoded><![CDATA[<p>Here goes: wshkb4gy8m</p>
<p>So in order for me to &#8220;claim&#8221; this blog for submission on <a class="external" rel="nofollow" href="http://www.technorati.com/">Technorati</a>, I have to create a post with a certain jumbled string in it.  Technorati will then read the jumbled string and verify that I am indeed the owner of this site.</p>
<p>Technorati is a search engine for blogs.  I believe I&#8217;m jumping onto the bandwagon a little later than most people, but it&#8217;s better late than never.</p>
<p>Hopefully that works, otherwise I&#8217;m stuck with a useless post.</p>
<p><strong>[edit]</strong> &#8211; it worked.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2009/09/claiming-this-blog-on-technorati/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento Skip Login/Registration at Checkout</title>
		<link>http://www.nvncbl.com/2009/09/magento-skip-loginregistration-at-checkout/</link>
		<comments>http://www.nvncbl.com/2009/09/magento-skip-loginregistration-at-checkout/#comments</comments>
		<pubDate>Wed, 02 Sep 2009 19:05:13 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[checkout]]></category>
		<category><![CDATA[login]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[onepage]]></category>
		<category><![CDATA[register]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=397</guid>
		<description><![CDATA[A client wanted every checkout on his site to be a guest checkout.  He was selling a very niche product and wanted to avoid hassling potential customers with a user log-in or registration form.  The goal was to modify Magento&#8217;s One Page Checkout to completely skip Step 1: Login/Register and show Step 2: [...]]]></description>
			<content:encoded><![CDATA[<p>A client wanted every checkout on his site to be a guest checkout.  He was selling a very niche product and wanted to avoid hassling potential customers with a user log-in or registration form.  The goal was to modify Magento&#8217;s One Page Checkout to completely skip Step 1: Login/Register and show Step 2: Billing Information.</p>
<p><span id="more-397"></span>We are going to:</p>
<ol>
<li>Hide Step 1</li>
<li>Tell Magento that Step 1 was &#8220;completed&#8221; as Guest</li>
<li>Have Step 2 appear as Step 1</li>
</ol>
<p>Here goes:</p>
<p><strong>1. Hiding Step 1 &#8211; Login/Register</strong></p>
<p>Open /app/design/frontend/&lt;your_company&gt;/&lt;your_company&gt;/template/checkout/onepage.phtml</p>
<p>Find:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;opc-&lt;?php echo $_stepId ?&gt;</span></span>&quot; {...}</pre></div></div>

<p>And replace it with:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">li</span> &lt;?php echo $i<span style="color: #66cc66;">==</span><span style="color: #cc66cc;">1</span> ? <span style="color: #ff0000;">'style=&quot;display:none;&quot;'</span> : <span style="color: #ff0000;">''</span> ?&gt;</span> id=&quot;opc-<span style="color: #009900;">&lt;?php echo $_stepId ?&gt;</span>&quot;  {...}</pre></div></div>

<p><strong>2. Set Step 1 to equal Guest</strong></p>
<p>Open /app/design/frontend/&lt;your_company&gt;/&lt;your_company&gt;/template/checkout/onepage/login.phtml</p>
<p>Basically, comment everything out and insert:</p>

<div class="wp_syntax"><div class="code"><pre class="html4strict" style="font-family:monospace;"><span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">input</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;hidden&quot;</span> <span style="color: #000066;">name</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;checkout_method&quot;</span> <span style="color: #000066;">id</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;login:guest&quot;</span> <span style="color: #000066;">value</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;guest&quot;</span> <span style="color: #000066;">checked</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;checked&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span>
<span style="color: #009900;">&lt;<span style="color: #000000; font-weight: bold;">script</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span>&gt;</span>
Event.observe(window, 'load', function() {
checkout.setMethod();
});
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><span style="color: #000000; font-weight: bold;">script</span>&gt;</span></pre></div></div>

<p><strong>3. Make Step 2 look like Step 1</strong></p>
<p>Open /app/design/frontend/&lt;your_company&gt;/&lt;your_company&gt;/template/checkout/onepage.phtml</p>
<p>Find:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$i</span><span style="color: #339933;">=</span><span style="color: #cc66cc;">0</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getSteps</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$_stepId</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$_stepInfo</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span></pre></div></div>

<p>And replace it with:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$i</span><span style="color: #339933;">=-</span><span style="color: #cc66cc;">1</span><span style="color: #339933;">;</span> <span style="color: #b1b100;">foreach</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$this</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getSteps</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #b1b100;">as</span> <span style="color: #000088;">$_stepId</span> <span style="color: #339933;">=&gt;</span> <span style="color: #000088;">$_stepInfo</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">:</span></pre></div></div>

<p>Finally, in the same file, change this snippet that we added in step 1:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$i</span><span style="color: #339933;">==</span><span style="color: #cc66cc;">1</span></pre></div></div>

<p>to:</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #b1b100;">echo</span> <span style="color: #000088;">$i</span><span style="color: #339933;">===</span><span style="color: #cc66cc;">0</span></pre></div></div>

<p>And there you have it.  Credit goes to poster <a class="external" href="http://www.imagebox.com">imagebox</a> on this particular Magento <a class="external" href="http://www.magentocommerce.com/boards/viewthread/17873/#t116490">how-to thread</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2009/09/magento-skip-loginregistration-at-checkout/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>mod_rewrite Reference</title>
		<link>http://www.nvncbl.com/2009/09/mod-rewrite-reference/</link>
		<comments>http://www.nvncbl.com/2009/09/mod-rewrite-reference/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 19:06:39 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Resources]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mod_rewrite]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=394</guid>
		<description><![CDATA[Having a reference for basic mod_rewrite examples on hand is always a good idea.  About once every two weeks, I have to set up a server&#8217;s URL rewrites, and because I don&#8217;t use it that often, I&#8217;m susceptible to forgetting its exact syntax.
The article outlines:

The basic mod_rewrite layout
Basic redirects
Handling no &#8216;www&#8217;
Blocking specific IP addresses
Stripping query [...]]]></description>
			<content:encoded><![CDATA[<p>Having a reference for <a class="external" href="http://www.noupe.com/php/10-mod_rewrite-rules-you-should-know.html">basic mod_rewrite examples</a> on hand is always a good idea.  About once every two weeks, I have to set up a server&#8217;s URL rewrites, and because I don&#8217;t use it that often, I&#8217;m susceptible to forgetting its exact syntax.</p>
<p><span id="more-394"></span>The article outlines:</p>
<ul>
<li>The basic mod_rewrite layout</li>
<li>Basic redirects</li>
<li>Handling no &#8216;www&#8217;</li>
<li>Blocking specific IP addresses</li>
<li>Stripping query strings</li>
<li>Hotlinking prevention</li>
<li>&#8230; and more</li>
</ul>
<p>Thanks to <a class="external" title="Cameron Chapman" href="http://cameronchapman.com/">Cameron Chapman</a> writing for <a class="external" title="Noupe" href="http://www.noupe.com/">Noupe</a>, and to <a class="external" href="http://twitter.com/RedstageMagento">@RedstageMagento</a> for spreading this through Twitter.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2009/09/mod-rewrite-reference/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fortune++; Fortune++;</title>
		<link>http://www.nvncbl.com/2009/08/fortune-fortune/</link>
		<comments>http://www.nvncbl.com/2009/08/fortune-fortune/#comments</comments>
		<pubDate>Mon, 31 Aug 2009 13:29:21 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Geek / Humor]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=390</guid>
		<description><![CDATA[(5:39:37 PM) Tim: two fortunes for me today
(5:39:44 PM) Antonio David: nice
(5:39:50 PM) Tim: do they both count?
(5:40:01 PM) Tim: or is only one &#8220;real&#8221; and the other is a decoy
(5:40:02 PM) Antonio David: haha maybe they&#8217;re only half as effective

]]></description>
			<content:encoded><![CDATA[<p>(5:39:37 PM) Tim: two fortunes for me today<br />
(5:39:44 PM) Antonio David: nice<br />
(5:39:50 PM) Tim: do they both count?<br />
(5:40:01 PM) Tim: or is only one &#8220;real&#8221; and the other is a decoy<br />
(5:40:02 PM) Antonio David: haha maybe they&#8217;re only half as effective</p>
<p><span id="more-390"></span>
<a href="http://www.nvncbl.com/wp-content/gallery/articles/fortunecookie.jpg" title="" class="shutterset_singlepic27" >
	<img class="ngg-singlepic ngg-left" src="http://www.nvncbl.com/wp-content/gallery/cache/27__320x240_fortunecookie.jpg" alt="fortunecookie.jpg" title="fortunecookie.jpg" />
</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2009/08/fortune-fortune/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mario Party 3 &#8211; Nintendo 64</title>
		<link>http://www.nvncbl.com/2009/08/mario-party-3-nintendo-64/</link>
		<comments>http://www.nvncbl.com/2009/08/mario-party-3-nintendo-64/#comments</comments>
		<pubDate>Sun, 30 Aug 2009 04:24:15 +0000</pubDate>
		<dc:creator>Antonio</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[mario party]]></category>
		<category><![CDATA[nintendo 64]]></category>

		<guid isPermaLink="false">http://www.nvncbl.com/?p=380</guid>
		<description><![CDATA[Found this picture from a long time ago.  This is from Mario Party 3.  Mario has 4 stars and 836 coins while the other players are far behind.

]]></description>
			<content:encoded><![CDATA[<p>Found this picture from a long time ago.  This is from Mario Party 3.  Mario has 4 stars and 836 coins while the other players are far behind.</p>
<p><span id="more-380"></span>
<a href="http://www.nvncbl.com/wp-content/gallery/articles/mario_party_1.jpg" title="" class="shutterset_singlepic26" >
	<img class="ngg-singlepic ngg-center" src="http://www.nvncbl.com/wp-content/gallery/cache/26__x_mario_party_1.jpg" alt="mario_party_1.jpg" title="mario_party_1.jpg" />
</a>
</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nvncbl.com/2009/08/mario-party-3-nintendo-64/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
