<?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>ActiveCodeline &#187; Magento</title>
	<atom:link href="http://activecodeline.com/category/magento-development/feed" rel="self" type="application/rss+xml" />
	<link>http://activecodeline.com</link>
	<description>ActiveCodeline is a blog site of Branko Ajzele, web application developer.</description>
	<lastBuildDate>Thu, 04 Mar 2010 19:33:28 +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>Programatically create customer and order in Magento with full blown &#8220;One Page Checkout&#8221; process under the hood</title>
		<link>http://activecodeline.com/programatically-create-customer-and-order-in-magento-with-full-blown-one-page-checkout-process-under-the-hood</link>
		<comments>http://activecodeline.com/programatically-create-customer-and-order-in-magento-with-full-blown-one-page-checkout-process-under-the-hood#comments</comments>
		<pubDate>Thu, 04 Mar 2010 19:33:28 +0000</pubDate>
		<dc:creator>branko</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://activecodeline.com/?p=987</guid>
		<description><![CDATA[Its been a while since my last article. Figured I might write one before Google search punishes me   -Recently I was working on a task that, among other things, required an order to be created programatically alongside with the customer and its billing and shipping address. Example I will demonstrate is just one [...]]]></description>
			<content:encoded><![CDATA[<p>Its been a while since my last article. Figured I might write one before Google search punishes me <img src='http://activecodeline.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  -Recently I was working on a task that, among other things, required an order to be created programatically alongside with the customer and its billing and shipping address. Example I will demonstrate is just one way of doing things. If you have extra time on your hands, feel free to trace the code for more elegant solution.<span id="more-987"></span></p>
<p>For starters, lets create a customer and establish a login session right away for this newly created customer. Here is the code sample that does just that.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$customer</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;">'customer/customer'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//$customer  = new Mage_Customer_Model_Customer();</span>
&nbsp;
&nbsp;
<span style="color: #000088;">$password</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'123456'</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$email</span> <span style="color: #339933;">=</span> <span style="color: #0000ff;">'ajzele@mymail.com'</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$customer</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setWebsiteId</span><span style="color: #009900;">&#40;</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;">getWebsite</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</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;">;</span>
<span style="color: #000088;">$customer</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">loadByEmail</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$email</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #666666; font-style: italic;">//Zend_Debug::dump($customer-&gt;debug()); exit;</span>
&nbsp;
<span style="color: #b1b100;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span><span style="color: #000088;">$customer</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: #009900;">&#123;</span>
&nbsp;
	<span style="color: #000088;">$customer</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setEmail</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$email</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$customer</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setFirstname</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Johnny'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$customer</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setLastname</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'Doels'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$customer</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setPassword</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$password</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
try <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$customer</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: #000088;">$customer</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setConfirmation</span><span style="color: #009900;">&#40;</span><span style="color: #009900; font-weight: bold;">null</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
	<span style="color: #000088;">$customer</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>
&nbsp;
	<span style="color: #666666; font-style: italic;">//Make a &quot;login&quot; of new customer</span>
	Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'customer/session'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">loginById</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$customer</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;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
catch <span style="color: #009900;">&#40;</span>Exception <span style="color: #000088;">$ex</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">//Zend_Debug::dump($ex-&gt;getMessage());</span>
<span style="color: #009900;">&#125;</span></pre></div></div>

<p>You can run this code from anywhere in Magento (model, view, controller&#8230;), it should do the trick.</p>
<p>At this point we have created new customer and made him &#8220;look like&#8221; he is logged in, or shall I say we established a session with his new credentials.</p>
<p>Now lets add a shipping and billing address to customer. Remember, these are needed in order to do checkout. Here is the code that programatically adds the shipping and billing address. In my case, I am using same address for both shipping and billing. If you prefer you can extend the logic and create two separate addresses and make one default for billing, other for shipping.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">//Build billing and shipping address for customer, for checkout</span>
<span style="color: #000088;">$_custom_address</span> <span style="color: #339933;">=</span> <span style="color: #990000;">array</span> <span style="color: #009900;">&#40;</span>
	<span style="color: #0000ff;">'firstname'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Branko'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'lastname'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Ajzele'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'street'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #990000;">array</span> <span style="color: #009900;">&#40;</span>
		<span style="color: #0000ff;">'0'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Sample address part1'</span><span style="color: #339933;">,</span>
		<span style="color: #0000ff;">'1'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Sample address part2'</span><span style="color: #339933;">,</span>
	<span style="color: #009900;">&#41;</span><span style="color: #339933;">,</span>
&nbsp;
	<span style="color: #0000ff;">'city'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'Osijek'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'region_id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'region'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">''</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'postcode'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'31000'</span><span style="color: #339933;">,</span>
	<span style="color: #0000ff;">'country_id'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'HR'</span><span style="color: #339933;">,</span> <span style="color: #666666; font-style: italic;">/* Croatia */</span>
	<span style="color: #0000ff;">'telephone'</span> <span style="color: #339933;">=&gt;</span> <span style="color: #0000ff;">'0038531555444'</span><span style="color: #339933;">,</span>
<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$customAddress</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;">'customer/address'</span><span style="color: #009900;">&#41;</span>
<span style="color: #666666; font-style: italic;">//$customAddress = new Mage_Customer_Model_Address();</span>
<span style="color: #000088;">$customAddress</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">setData</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$_custom_address</span><span style="color: #009900;">&#41;</span>
			<span style="color: #339933;">-&gt;</span><span style="color: #004000;">setCustomerId</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$customer</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;">setIsDefaultBilling</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span>
			<span style="color: #339933;">-&gt;</span><span style="color: #004000;">setIsDefaultShipping</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span>
			<span style="color: #339933;">-&gt;</span><span style="color: #004000;">setSaveInAddressBook</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'1'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
try <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$customAddress</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>
catch <span style="color: #009900;">&#40;</span>Exception <span style="color: #000088;">$ex</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">//Zend_Debug::dump($ex-&gt;getMessage());</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
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;">setBillingAddress</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;">'sales/quote_address'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">importCustomerAddress</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$customAddress</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>Now that we have a logged in newly created customer with assigned addresses, lets add some products to the cart in his name. Here is the sample code.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">/* If we wish to load some product by some attribute value diferent then id */</span>
<span style="color: #000088;">$product</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;">'catalog/product'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getCollection</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>
	<span style="color: #666666; font-style: italic;">/* Remember, you can load/find product via any attribute, better if its attribute with unique value */</span>
	<span style="color: #339933;">-&gt;</span><span style="color: #004000;">addAttributeToFilter</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'sku'</span><span style="color: #339933;">,</span> <span style="color: #0000ff;">'some-sku-value'</span><span style="color: #009900;">&#41;</span>
	<span style="color: #339933;">-&gt;</span><span style="color: #004000;">addAttributeToSelect</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'*'</span><span style="color: #009900;">&#41;</span>
	<span style="color: #339933;">-&gt;</span><span style="color: #004000;">getFirstItem</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* Do a full product load, otherwise you might get some errors related to stock item */</span>
<span style="color: #000088;">$product</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">load</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$product</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;">;</span>
&nbsp;
<span style="color: #000088;">$cart</span> <span style="color: #339933;">=</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;">;</span>
&nbsp;
<span style="color: #666666; font-style: italic;">/* We want to add only the product/products for this user and do so programmatically, so lets clear cart before we start adding the products into it */</span>
<span style="color: #000088;">$cart</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">truncate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cart</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: #000088;">$cart</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getItems</span><span style="color: #009900;">&#40;</span><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;">-&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>			
&nbsp;
try <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">/* Add product with custom oprion? =&gt;  some-custom-option-id-here: value to be read from database or assigned manually, hardcoded? Just example*/</span>
	<span style="color: #666666; font-style: italic;">//$cart-&gt;addProduct($product, array('options'=&gt; array('some-custom-option-id-here' =&gt; 'Some value goes here');</span>
	<span style="color: #000088;">$cart</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>
catch <span style="color: #009900;">&#40;</span>Exception <span style="color: #000088;">$ex</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #b1b100;">echo</span> <span style="color: #000088;">$ex</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getMessage</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
&nbsp;
<span style="color: #990000;">unset</span><span style="color: #009900;">&#40;</span><span style="color: #000088;">$product</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>And for the very end, the actual process of going trough &#8220;One Page Checkout&#8221; under the hood. Here is the sample code.</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;"><span style="color: #000088;">$storeId</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;">getStore</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</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>
&nbsp;
<span style="color: #000088;">$checkout</span> <span style="color: #339933;">=</span> Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'checkout/type_onepage'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$checkout</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">initCheckout</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$checkout</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">saveCheckoutMethod</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'register'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$checkout</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">saveShippingMethod</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'flatrate_flatrate'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
<span style="color: #000088;">$checkout</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">savePayment</span><span style="color: #009900;">&#40;</span><span style="color: #990000;">array</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'method'</span><span style="color: #339933;">=&gt;</span><span style="color: #0000ff;">'checkmo'</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
&nbsp;
try <span style="color: #009900;">&#123;</span>
	<span style="color: #000088;">$checkout</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">saveOrder</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span>
catch <span style="color: #009900;">&#40;</span>Exception <span style="color: #000088;">$ex</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
	<span style="color: #666666; font-style: italic;">//echo $ex-&gt;getMessage();</span>
<span style="color: #009900;">&#125;</span>			
&nbsp;
<span style="color: #666666; font-style: italic;">/* Clear the cart */</span>
<span style="color: #000088;">$cart</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">truncate</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #000088;">$cart</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: #000088;">$cart</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">getItems</span><span style="color: #009900;">&#40;</span><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;">-&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>		
&nbsp;
<span style="color: #666666; font-style: italic;">/* Logout the customer you created */</span>
Mage<span style="color: #339933;">::</span><span style="color: #004000;">getSingleton</span><span style="color: #009900;">&#40;</span><span style="color: #0000ff;">'customer/session'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">-&gt;</span><span style="color: #004000;">logout</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>

<p>And thats it. This code was tested on Magento 1.3 version, but I see no reason why it would not work on latest (as of time of this writing) 1.4.0.1 version.</p>
<p>In any case, you hope you find it useful. As always, word of advice, this is just for testing/education purpose so please do not blindly embed it on live sites.</p>
<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://activecodeline.com/programatically-create-customer-and-order-in-magento-with-full-blown-one-page-checkout-process-under-the-hood/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Finally, Magento 1.4 is out</title>
		<link>http://activecodeline.com/finally-magento-1-4-is-out</link>
		<comments>http://activecodeline.com/finally-magento-1-4-is-out#comments</comments>
		<pubDate>Sat, 13 Feb 2010 10:35:51 +0000</pubDate>
		<dc:creator>branko</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://activecodeline.com/?p=984</guid>
		<description><![CDATA[Recent few days I have been keeping my eye out on the Magento 1.4 release. I was filled with joy this morning when I noticed that Varian finally released 1.4 version. There are several reasons why I was looking forward to this release. One of the most important features for me are definetly the WYSIWYG [...]]]></description>
			<content:encoded><![CDATA[<p>Recent few days I have been keeping my eye out on the Magento 1.4 release. I was filled with joy this morning when I noticed that Varian finally released 1.4 version. There are several reasons why I was looking forward to this release. One of the most important features for me are definetly the WYSIWYG editor for almost everything and the Widget functionality.</p>
<p>The coolest thing about the implemented WYSIWYG editor is that it allows you to upload all sort of media files next to your content, somewhat like Wordpress does. This is a great boost in usability, hopefully it will cut down on the Wordpress + Magento mixes we have been doing in several projects.</p>
<p><a href="http://activecodeline.com/wp-content/uploads/2010/02/insert_media.png"><img src="http://activecodeline.com/wp-content/uploads/2010/02/insert_media-300x188.png" alt="" title="insert_media" width="300" height="188" class="alignnone size-medium wp-image-985" /></a></p>
<p>Widgets functionality speaks for it self. We have all seen what Wordpress widgets can do, its time to play with Magento ones <img src='http://activecodeline.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  -Here is <a href="http://inchoo.net/ecommerce/magento/blank-magento-widget-to-get-you-started-with-magento-widget-development/">one of my previous articles on Widgets</a> to get you started.</p>
<p>Good job Varien. Looking forward coding for this one <img src='http://activecodeline.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://activecodeline.com/finally-magento-1-4-is-out/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>The Inchooers</title>
		<link>http://activecodeline.com/the-inchooers</link>
		<comments>http://activecodeline.com/the-inchooers#comments</comments>
		<pubDate>Mon, 25 Jan 2010 09:49:50 +0000</pubDate>
		<dc:creator>branko</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://activecodeline.com/?p=974</guid>
		<description><![CDATA[And here is something totally different, for all you Magento developers, The Inchooers. Made by Hrvoje Jurisic, one of our latest employee. Way the go Hrvoje.
]]></description>
			<content:encoded><![CDATA[<p>And here is something totally different, for all you Magento developers, <a href="http://inchoo.net/fun-zone/the-inchooers-magento-developers-job-interview/"><strong>The Inchooers</strong></a>. Made by Hrvoje Jurisic, one of our latest employee. Way the go Hrvoje.</p>
]]></content:encoded>
			<wfw:commentRss>http://activecodeline.com/the-inchooers/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Creating a new product type in Magento</title>
		<link>http://activecodeline.com/creating-a-new-product-type-in-magento</link>
		<comments>http://activecodeline.com/creating-a-new-product-type-in-magento#comments</comments>
		<pubDate>Thu, 21 Jan 2010 12:15:00 +0000</pubDate>
		<dc:creator>branko</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://activecodeline.com/?p=970</guid>
		<description><![CDATA[Given the complexity of Magento, here is a little module I wrote about on Inchoo.net site that might help you learn how to create your own product.
Download Ajzele_CustomProduct.
You can read more about it here.
]]></description>
			<content:encoded><![CDATA[<p>Given the complexity of Magento, here is a little module I wrote about on Inchoo.net site that might help you learn how to create your own product.<span id="more-970"></span></p>
<p>Download <a href='http://activecodeline.com/wp-content/uploads/2010/01/Ajzele_CustomProduct.zip'>Ajzele_CustomProduct</a>.</p>
<p>You can read more about it <a href="http://inchoo.net/ecommerce/magento/how-to-create-a-new-product-type-in-magento/">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://activecodeline.com/creating-a-new-product-type-in-magento/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to properly build Magento theme: Skinning, not theming</title>
		<link>http://activecodeline.com/how-to-properly-build-magento-theme-skinning-not-theming</link>
		<comments>http://activecodeline.com/how-to-properly-build-magento-theme-skinning-not-theming#comments</comments>
		<pubDate>Wed, 13 Jan 2010 13:15:41 +0000</pubDate>
		<dc:creator>branko</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://activecodeline.com/?p=968</guid>
		<description><![CDATA[It been a while since my last article. I have been playing with Python and Django for the last few weeks. Figured I might write an article about Magento in a meanwhile (its been a while since my last post). Recently we had a discussion in company about how to improve certain areas of our [...]]]></description>
			<content:encoded><![CDATA[<p>It been a while since my last article. I have been playing with Python and Django for the last few weeks. Figured I might write an article about Magento in a meanwhile (its been a while since my last post). Recently we had a discussion in company about how to improve certain areas of our development process. The idea was for our designers to come up with a design guidelines for later usage from within company. <span id="more-968"></span></p>
<p>After hearing the long howto presentation from our designer, let me share some of my thoughts on how to build a theme that will most likely be a perfect balance of lightweight and usable, possible innovative, financially balanced in terms of needed total amount of hours for front-end development etc&#8230;</p>
<p>Here is my personal golder rule for the Magento theme development: &#8220;<strong>Skinning, not theming!</strong>&#8220;.</p>
<p>Magetno&#8217;s large number of elements and stages on front-end, wast number of view files in &#8220;app/design/frontend/default&#8221; make it extremely time consuming to do any challenging design changes. In my humble opinion, &#8220;app/design/frontend/default&#8221; location is the middle ground of the entire development that needs to be done on given site. What should be done is to move the designer to work more in &#8220;/skin/frontend/default&#8221; folder and developer to work more in &#8220;app/code/local&#8221; folder. This way you would get more clearer approach to project. Developers would be focused on the actual code while the designer would be responsible for making such design that complies to the existing class rules and the rest of the stuff in /skin folder.</p>
<p>Poking around &#8220;app/design/frontend/default&#8221; is something both developers and designers do. As mentioned previously, given the amount of files in these folders, this process is extremely time consuming. So, the obvious question is: <em>Can one make such design that minimizes the use of theme folder files modifications</em>? </p>
<p>If the store design is made such to comply more to a &#8220;skin&#8221; than &#8220;theme&#8221; term, this would enable you to be far more faster in building your client shops. Besides speed, your developers could then really focus on their work, isolating new full-fledged features instead of wasting time on &#8220;masking&#8221; or modifying the certain areas of Magento front-end. As a result, you will most likely be more precise in your estimates once you know your theme would be design such that it clearly integrates with default Magento front-end.</p>
<p>Surely, designers would be first to say: &#8220;Wait a minute, if all I do is skinning to comply to already written css rules and layout, then what freedom do I have in design? How can I deliver breathtaking stuff to my client!&#8221;. I would have to say that arguments like these are not valid. Before I became developer, I was working several years as a freelance web designer. Great simplistic design is far more harder to achieve then to throw in bunch of everything just to satisfy the form. When talking in terms of Magento, I noticed one lacking flaw in most of the site owners request. They tend to focus on insignificant layout changes, and the goody-looking-flashing-popping stuff then on the real content. Its like they thinking: Why write five words of product description text when I can throw in some flashy looking non-related photo here, etc. </p>
<p>To get back to the possible &#8220;designer dilemma&#8221; in terms of &#8220;Skinning, not theming&#8221; context. Great design stuff can be achieved just by changing few header and footer background images, menu navigation elements, widths, etc&#8230; Stuff that will make you wonder, is this Magento or? All it takes, is a different look at things.</p>
]]></content:encoded>
			<wfw:commentRss>http://activecodeline.com/how-to-properly-build-magento-theme-skinning-not-theming/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Days passing by</title>
		<link>http://activecodeline.com/days-passing-by</link>
		<comments>http://activecodeline.com/days-passing-by#comments</comments>
		<pubDate>Sun, 20 Dec 2009 10:52:35 +0000</pubDate>
		<dc:creator>branko</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://activecodeline.com/?p=965</guid>
		<description><![CDATA[Its been a busy year. Lot of stuff learned, and more importantly lot of stuff done. As some of you know, I work full time at Inchoo. Its a third company I have been working for full time since I finished faculty back in 2006. Seems like things are rolling just fine at the moment. [...]]]></description>
			<content:encoded><![CDATA[<p>Its been a busy year. Lot of stuff learned, and more importantly lot of stuff done. As some of you know, I work full time at <a href="http://inchoo.net">Inchoo</a>. Its a third company I have been working for full time since I finished faculty back in 2006. Seems like things are rolling just fine at the moment. I can say I am mostly satisfied with my work (90% of time <img src='http://activecodeline.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ).<span id="more-965"></span></p>
<p>&#8220;Mostly&#8221; in terms of there is a little devil in me that keeps grabbing for more each time I establish a  &#8220;I know this pretty good&#8221; relationship towards some technology, which relates to my work on Magento platform. It was a bumpy ride for the last year and a half, getting to know Magento and building stuff on top of it. </p>
<p>&#8220;Recently&#8221; I started studying the <a href="http://www.python.org/">Python</a> language and <a href="http://www.djangoproject.com/">Django</a> framework. Its my n-th time I&#8217;m trying to give myself mastering Python and this time I&#8217;m determined to do so. It&#8217;s not to say that Python is better than PHP or vice versa, its just to satisfy the little devil in me, hungry for new stuff. I have this desire of building my own web shop solution, primarily for large web shop systems with several thousand products or so, with prime focus on speed and usability.</p>
<p>However, these days I am a bit busy with &#8220;getting back to faculty&#8221;. My official faculty degree is that of Electrical Engineer, which I got in year 2006 on <a href="http://www.etfos.hr/">Faculty of Electrical Engineering</a> in my home town <a href="http://maps.google.com/maps?f=q&#038;source=s_q&#038;hl=en&#038;geocode=&#038;q=osijek,+croatia&#038;sll=37.0625,-95.677068&#038;sspn=38.502405,79.013672&#038;ie=UTF8&#038;hq=&#038;hnear=Osijek,+County+of+Osijek-Baranja+%C5%BEupanija,+Croatia&#038;t=h&#038;z=12">Osijek, Croatia</a>. To stay on top of the bureaucracy system, I decided to get back to the faculty and take on the necessary exams to get my diploma recognized in the &#8220;<a href="http://en.wikipedia.org/wiki/Bologna_process">Bologna process</a>&#8220;, plus I am making it official now with switching to Computer Science domain <img src='http://activecodeline.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>And cream on top if it is me getting married next year (that is, if everything stays OK until then <img src='http://activecodeline.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> ).</p>
<p>That about summarizes the current state of my life <img src='http://activecodeline.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Wish you all happy holidays and a new 2010 year. Hope it gets and stays fruitful on both business and personal area.</p>
<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://activecodeline.com/days-passing-by/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Getting started with Magento widgets</title>
		<link>http://activecodeline.com/getting-started-with-magento-widgets</link>
		<comments>http://activecodeline.com/getting-started-with-magento-widgets#comments</comments>
		<pubDate>Wed, 09 Dec 2009 19:39:37 +0000</pubDate>
		<dc:creator>branko</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[widget]]></category>

		<guid isPermaLink="false">http://activecodeline.com/?p=958</guid>
		<description><![CDATA[Just a follow up on my previous post over at Inchoo.net site. I have placed a copy of my blank Magento widget extension to be available for download here on ActiveCodeline as well.
Download [ ActiveCodeline_WidgetOne.tar ].
Hope you&#8217;ll find it useful.
]]></description>
			<content:encoded><![CDATA[<p>Just a follow up on my previous <a href="http://inchoo.net/ecommerce/magento/blank-magento-widget-to-get-you-started-with-magento-widget-development/">post over at Inchoo.net site</a>. I have placed a copy of my blank Magento widget extension to be available for download here on ActiveCodeline as well.</p>
<p>Download [ <a href='http://activecodeline.com/wp-content/uploads/2009/12/ActiveCodeline_WidgetOne.tar.gz'>ActiveCodeline_WidgetOne.tar</a> ].</p>
<p>Hope you&#8217;ll find it useful.</p>
]]></content:encoded>
			<wfw:commentRss>http://activecodeline.com/getting-started-with-magento-widgets/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>One Step Checkout in Magento</title>
		<link>http://activecodeline.com/one-step-checkout-in-magento</link>
		<comments>http://activecodeline.com/one-step-checkout-in-magento#comments</comments>
		<pubDate>Wed, 02 Dec 2009 19:18:20 +0000</pubDate>
		<dc:creator>branko</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[module]]></category>

		<guid isPermaLink="false">http://activecodeline.com/?p=945</guid>
		<description><![CDATA[In contrary to all the efforts Magento team put into One Page Checkout functionality there are lot of people that find it annoying and non-user friendly. I would dare to say I am one of them. Besides myself, lot of our clients have expressed their desire for simpler checkout page.
Lets face it, if you are [...]]]></description>
			<content:encoded><![CDATA[<p>In contrary to all the efforts Magento team put into One Page Checkout functionality there are lot of people that find it annoying and non-user friendly. I would dare to say I am one of them. Besides myself, lot of our clients have expressed their desire for simpler checkout page.</p>
<p>Lets face it, if you are running a web shop, then usability must be one of your prime concerns. How bad would you feel if you knew you had a customer that added bunch of stuff to cart just to say &#8220;To hell with it&#8221; when he reaches the annoying and non user friendly checkout process.<span id="more-945"></span></p>
<p>As I mentioned previously, several of our clients have already asked us to develop a simpler version of One Page checkout for them, however they soon gave up when presented with development cost. Magento is no picnic, coding something like this requires time and knowledge.</p>
<p>Here is one extension that promises to simplify the checkout process, its called <a href="http://www.onestepcheckout.com/" target="_blank">OneStepCheckout</a>.</p>
<p><a href="http://www.onestepcheckout.com/" target="_blank"><img src="http://activecodeline.com/OSCLogo.png" title="One Step Checkout for Magento" alt="One Step Checkout for Magento" /></a></p>
<p>If you come from WordPress, Joomla, Drupal or similar PHP platforms, you are most likely use to not paying your plugins, modules etc. As I noted previously, professional Magento development is not an easy task, so paying for an extension that can boost your user experience, thus possibly increasing sales, should not be a problem for any serious site owner.</p>
<p>Installation of OneStepCheckout extension is a breeze, plus if you stuck, they provide installation services. Attached are few screenshots with some comments for you to see the final result. Numerous configurations options make it even more compelling.</p>
<p>Just by point and click you (your client) can decide to turn off certain input fields like City, Telephone, Company etc.</p>
<p>OneStepCheckout extension comes in two flavors, Standard and Enterprise. Screenshots below show Enterprise version.</p>

<a href='http://activecodeline.com/one-step-checkout-in-magento/osc_config' title='OSC_Config'><img width="150" height="150" src="http://activecodeline.com/wp-content/uploads/2009/12/OSC_Config-150x150.png" class="attachment-thumbnail" alt="" title="OSC_Config" /></a>
<a href='http://activecodeline.com/one-step-checkout-in-magento/osc_extensioninstallation_copypaste' title='OSC_ExtensionInstallation_CopyPaste'><img width="150" height="150" src="http://activecodeline.com/wp-content/uploads/2009/12/OSC_ExtensionInstallation_CopyPaste-150x150.PNG" class="attachment-thumbnail" alt="" title="OSC_ExtensionInstallation_CopyPaste" /></a>
<a href='http://activecodeline.com/one-step-checkout-in-magento/osc_page' title='OSC_Page'><img width="150" height="150" src="http://activecodeline.com/wp-content/uploads/2009/12/OSC_Page-150x150.png" class="attachment-thumbnail" alt="" title="OSC_Page" /></a>
<a href='http://activecodeline.com/one-step-checkout-in-magento/oscnonregisteredversion' title='OSCNonRegisteredVersion'><img width="150" height="150" src="http://activecodeline.com/wp-content/uploads/2009/12/OSCNonRegisteredVersion-150x150.png" class="attachment-thumbnail" alt="" title="OSCNonRegisteredVersion" /></a>

<p>What else to say, I was thrilled with this one, so much that I decided to reference it in my sidebar.</p>
<p>Hope this short review was useful to some. </p>
<p>Cheers.</p>
]]></content:encoded>
			<wfw:commentRss>http://activecodeline.com/one-step-checkout-in-magento/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Giving cost estimates on custom Magento development</title>
		<link>http://activecodeline.com/giving-cost-estimates-on-custom-magento-development</link>
		<comments>http://activecodeline.com/giving-cost-estimates-on-custom-magento-development#comments</comments>
		<pubDate>Tue, 24 Nov 2009 20:20:23 +0000</pubDate>
		<dc:creator>branko</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://activecodeline.com/?p=941</guid>
		<description><![CDATA[Its been over a year now of extensive Magento development for me. My job description changed from being Developer to Senior Developer and now to Project Manager / Senior Developer. In short, amount of work I do increased.
One of the most annoying part of work for me is the estimates part. How do you know [...]]]></description>
			<content:encoded><![CDATA[<p>Its been over a year now of extensive Magento development for me. My job description changed from being Developer to Senior Developer and now to Project Manager / Senior Developer. In short, amount of work I do increased.</p>
<p>One of the most annoying part of work for me is the estimates part. How do you know if you are good in giving cost estimate? Is it when you get the client say &#8220;Yes&#8221; at any cost, or is it when you get client say &#8220;Yes&#8221; on mutual satisfaction?<span id="more-941"></span></p>
<p><em>Practical example</em>: How much would you estimate the task of adding a simple menu of just tree or four items in footer, that can be controlled trough CMS static block?</p>
<p>Task above is easy, experienced Magento developer can do it in cca 10-20min at most, its easy as copy-pasting the <a href="http://snippi.net/magento-calling-and-showing-cms-static-block" target="_blank">code snippet</a>. However, this is merely time needed for doing the actual work. What about time needed to setup the FTP, find and modify the files, login to Magento and create CMS static block, post a reply on the resolved task&#8230; When you calculate all this in estimate, you soon come to total of hour or even two for a task this easy. </p>
<p>When you work on giving estimates and bill &#8220;by a minute&#8221;, you are soon to be facing a strange issue. Lets say a realistic scenario for the above example would be cca 1-2 hours, if you are to offer a quality implementation of clients request that would not break on next page. If you multiply that with your hourly fee, lets say $60/hour, you get estimate of $60-$120 for this simple task. And thats not even including the cost of giving the estimate (which can be time consuming on larger inquiries). </p>
<p>Let me tell you, client wont be happy and you will most likely look like a money thirsty blood sucker to him. To him, all he want is a link or two in footer. He does not see the difference of hard coding the links in code and implementing them trough some static block. To you as a experienced Magento developer, hard coding this kind of stuff is surely out of option. But this is reality, I dare you to say otherwise.</p>
<p>Keep in mind that when doing a &#8220;full&#8221; project development, tasks like these are resolved much faster. Given that they are part of a development &#8220;workflow&#8221;, they are resolved as you go. My point is, that when you are being hired to work on a partial/specific task only, you are most likely to loose big time with reasonable cost estimates. </p>
<p>What most of our clients do not understand is that Magento is not WordPress (no disrespect). If you want to code properly, and with upgrade-ability in mind, then everything in Magento becomes so time consuming.</p>
]]></content:encoded>
			<wfw:commentRss>http://activecodeline.com/giving-cost-estimates-on-custom-magento-development/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Moving Magento site, missing images in catalog</title>
		<link>http://activecodeline.com/moving-magento-site-missing-images-in-catalog</link>
		<comments>http://activecodeline.com/moving-magento-site-missing-images-in-catalog#comments</comments>
		<pubDate>Tue, 24 Nov 2009 19:52:23 +0000</pubDate>
		<dc:creator>branko</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://activecodeline.com/?p=939</guid>
		<description><![CDATA[Recently I have came across one funny issue. Interesting how issue can be funny. One of our clients had a request for Magento upgrade, from version 1.2 to 1.3.2.4. Most of you in in Magento development will likely to agree when I say that Magento upgrades can be a night mare. Luckily for me, this [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I have came across one funny issue. Interesting how issue can be funny. One of our clients had a request for Magento upgrade, from version 1.2 to 1.3.2.4. Most of you in in Magento development will likely to agree when I say that Magento upgrades can be a night mare. Luckily for me, this one went rather smoothly with one strange result, half of my product images were not visible on frontend/admin.<span id="more-939"></span></p>
<p>After few minutes of debugging I realized what caused the issue. Before I did an upgrade of the site, I pulled entire site locally on my dev machine and set it up so that it runs fully local. Meaning I wanted to upgrade site &#8220;offline&#8221; on my local machine where its faster and I am not limited to hosting server environment. In the process of &#8220;downloading&#8221; entire live site to my local machine I forgot the fact that I am using Windows. Windows operating system does not support having two directories, one next to another with the same name like &#8220;F&#8221; and &#8220;f&#8221;. It is not case sensitive. Due to this, all my images went to one (first in line) folder.</p>
<p>Once I successfully updated the site and uploaded it to live (Linux powered) server, I ended up with missing photos for about half of my products. Reason being the simple change in folder name from capital to small letter or vice versa.</p>
<p>If you ever do upgrade like I, and come across missing images scenario, try to remember this one.</p>
<p>Cheers <img src='http://activecodeline.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://activecodeline.com/moving-magento-site-missing-images-in-catalog/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>
