<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Boxos Blog</title>
	<atom:link href="http://boxoblog.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://boxoblog.wordpress.com</link>
	<description>Anything which I think may save others the same headache I went through.</description>
	<lastBuildDate>Wed, 07 Dec 2011 15:32:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='boxoblog.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>Boxos Blog</title>
		<link>http://boxoblog.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://boxoblog.wordpress.com/osd.xml" title="Boxos Blog" />
	<atom:link rel='hub' href='http://boxoblog.wordpress.com/?pushpress=hub'/>
		<item>
		<title>PHP Telnet Script to Connect to TOR and Refresh IP Address</title>
		<link>http://boxoblog.wordpress.com/2011/02/18/php-telnet-script-to-connect-to-tor-and-refresh-ip-address/</link>
		<comments>http://boxoblog.wordpress.com/2011/02/18/php-telnet-script-to-connect-to-tor-and-refresh-ip-address/#comments</comments>
		<pubDate>Fri, 18 Feb 2011 03:23:05 +0000</pubDate>
		<dc:creator>psylencer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://boxoblog.wordpress.com/?p=44</guid>
		<description><![CDATA[This is a quick little script I wrote which will hopefully save some people the headache I went through getting this to work.  There is one other script out there which everone seems to be using, trouble is it was obviously written for a different version of PHP and does not work. This has been [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=44&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>This is a quick little script I wrote which will hopefully save some people the headache I went through getting this to work.  There is one other script out there which everone seems to be using, trouble is it was obviously written for a different version of PHP and does not work.</p>
<p>This has been tested with PHP version 5.3.5. on a windows platform.</p>
<p>The problem I was having was with carriage return and new lines.  Both /r and /n we registering as litteral characters no matter what I did.  Replacing them with &#8220;</p>
<p>&#8221; fixed the problem.  Also ensuring there are no spaces between the opening inverted commas, the line break and the closing inverted commas ie &#8220;</p>
<p>&#8220;</p>
<p>Dreamweaver has a habbit of trying to format your code so it looks nice and neat &#8211; in this case it was causing a bunch of spaces to be inserted in between the inverted commas.</p>
<p>Does that make sense?  probably not &#8211; but who cares &#8211; here&#8217;s the code any way.</p>
<p>&lt;?php<br />
function tor_telnet($ip,$port,$auth,$command) {</p>
<p>$fp = fsockopen($ip,$port,$error_number,$err_string,10);<br />
if(!$fp) {  echo &#8220;ERROR: $error_number : $err_string<br />
&#8220;;<br />
return false;</p>
<p>} else {<br />
fwrite($fp,&#8217;AUTHENTICATE &#8220;&#8216;.$auth.&#8217;&#8221;<br />
&#8216;);</p>
<p>$received = fread($fp,512);<br />
echo $received;</p>
<p>fwrite($fp,$command.&#8217;<br />
&#8216;);</p>
<p>echo &#8220;&lt;BR&gt;&#8221;;<br />
$received = fread($fp,512);<br />
// list($rcode,$explanation) = explode(&#8216; &#8216;,$received,2);<br />
echo $received;</p>
<p>}<br />
fclose($fp);<br />
}</p>
<p>tor_telnet(&#8217;127.0.0.1&#8242;,&#8217;9051&#8242;,&#8217;password&#8217;,'signal NEWNYM&#8217;);<br />
?&gt;</p>
<p>&nbsp;</p>
<p>Let me know if you find this useful.</p>
<p>&nbsp;</p>
<div id="_mcePaste" class="mcePaste" style="overflow:hidden;position:absolute;left:-10000px;top:208px;width:1px;height:1px;">&lt;?php<br />
function tor_telnet($ip,$port,$auth,$command) {</p>
<p>$fp = fsockopen($ip,$port,$error_number,$err_string,10);<br />
if(!$fp) {  echo &#8220;ERROR: $error_number : $err_string<br />
&#8220;;<br />
return false;</p>
<p>} else {<br />
fwrite($fp,&#8217;AUTHENTICATE &#8220;&#8216;.$auth.&#8217;&#8221;<br />
&#8216;);</p>
<p>$received = fread($fp,512);<br />
echo $received;</p>
<p>fwrite($fp,$command.&#8217;<br />
&#8216;);</p>
<p>echo &#8220;&lt;BR&gt;&#8221;;<br />
$received = fread($fp,512);<br />
// list($rcode,$explanation) = explode(&#8216; &#8216;,$received,2);<br />
echo $received;</p>
<p>}<br />
fclose($fp);<br />
}</p>
<p>tor_telnet(&#8217;127.0.0.1&#8242;,&#8217;9051&#8242;,&#8217;test&#8217;,'signal NEWNYM&#8217;);<br />
?&gt;</p></div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boxoblog.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boxoblog.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boxoblog.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boxoblog.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/boxoblog.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/boxoblog.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/boxoblog.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/boxoblog.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boxoblog.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boxoblog.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boxoblog.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boxoblog.wordpress.com/44/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boxoblog.wordpress.com/44/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boxoblog.wordpress.com/44/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=44&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://boxoblog.wordpress.com/2011/02/18/php-telnet-script-to-connect-to-tor-and-refresh-ip-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccb8ca95b69cda0f1183a4d4c1c118d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">psylencer</media:title>
		</media:content>
	</item>
		<item>
		<title>How to get a Brother MFC-250C to print with an empty colour catridge</title>
		<link>http://boxoblog.wordpress.com/2010/11/25/how-to-get-a-brother-mfc-250c-to-print-with-an-empty-colour-catridge/</link>
		<comments>http://boxoblog.wordpress.com/2010/11/25/how-to-get-a-brother-mfc-250c-to-print-with-an-empty-colour-catridge/#comments</comments>
		<pubDate>Thu, 25 Nov 2010 07:02:30 +0000</pubDate>
		<dc:creator>psylencer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://boxoblog.wordpress.com/?p=38</guid>
		<description><![CDATA[Hi People, This is quite an easy one.  Basically if you are like me and unlucky enough to own a shitty Brother printer, you&#8217;ll be familiar with the regular pain of running out of a single colour of ink, and having the whole printer cease to work because of which.    These stupid pieces of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=38&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Hi People,</p>
<p>This is quite an easy one.  Basically if you are like me and unlucky enough to own a shitty Brother printer, you&#8217;ll be familiar with the regular pain of running out of a single colour of ink, and having the whole printer cease to work because of which.    These stupid pieces of crap will not print a BLACK and white page if any of the cyan, yellow or magenta cartridges are out.</p>
<p>Well here is the quick fix to get you back on track and operating with just a black cartridge and a bunch of empty other ones.</p>
<p>The brother printers use a sensor which scans the clear plastic parts of the cartridge to determine how much ink is left.  Basically, coloring in these sections tricks the printer into thinking the empty cartridge is full of ink.</p>
<p>All one needs is a black permanent marker.  Simply pull back the sheath on the cartridge to reveal the clear inner.  &#8220;Paint&#8221; all the clear plastic on all three sides as well as the clear part on the top of the cartridge.  Please see images below.</p>

<a href='http://boxoblog.wordpress.com/2010/11/25/how-to-get-a-brother-mfc-250c-to-print-with-an-empty-colour-catridge/brother-mfc-250c-cartridge/' title='brother-mfc-250c-cartridge-'><img data-attachment-id='39' data-orig-size='618,584' data-liked='0'width="150" height="141" src="http://boxoblog.files.wordpress.com/2010/11/brother-mfc-250c-cartridge.jpg?w=150&#038;h=141" class="attachment-thumbnail" alt="brother-mfc-250c-cartridge-" title="brother-mfc-250c-cartridge-" /></a>
<a href='http://boxoblog.wordpress.com/2010/11/25/how-to-get-a-brother-mfc-250c-to-print-with-an-empty-colour-catridge/brother-mfc-250c/' title='brother-mfc-250c'><img data-attachment-id='40' data-orig-size='663,537' data-liked='0'width="150" height="121" src="http://boxoblog.files.wordpress.com/2010/11/brother-mfc-250c.jpg?w=150&#038;h=121" class="attachment-thumbnail" alt="brother-mfc-250c" title="brother-mfc-250c" /></a>

<p>Replace the cartridges and you are all set.</p>
<p>Hope this helps.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boxoblog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boxoblog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boxoblog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boxoblog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/boxoblog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/boxoblog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/boxoblog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/boxoblog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boxoblog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boxoblog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boxoblog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boxoblog.wordpress.com/38/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boxoblog.wordpress.com/38/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boxoblog.wordpress.com/38/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=38&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://boxoblog.wordpress.com/2010/11/25/how-to-get-a-brother-mfc-250c-to-print-with-an-empty-colour-catridge/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccb8ca95b69cda0f1183a4d4c1c118d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">psylencer</media:title>
		</media:content>

		<media:content url="http://boxoblog.files.wordpress.com/2010/11/brother-mfc-250c-cartridge.jpg?w=150" medium="image">
			<media:title type="html">brother-mfc-250c-cartridge-</media:title>
		</media:content>

		<media:content url="http://boxoblog.files.wordpress.com/2010/11/brother-mfc-250c.jpg?w=150" medium="image">
			<media:title type="html">brother-mfc-250c</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting things in Magento by getModel and getData methods</title>
		<link>http://boxoblog.wordpress.com/2010/09/23/getting-things-in-magento-by-getmodel-and-getdata-methods/</link>
		<comments>http://boxoblog.wordpress.com/2010/09/23/getting-things-in-magento-by-getmodel-and-getdata-methods/#comments</comments>
		<pubDate>Thu, 23 Sep 2010 07:56:52 +0000</pubDate>
		<dc:creator>psylencer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://boxoblog.wordpress.com/?p=34</guid>
		<description><![CDATA[Hi all, Im posting this article because it is useful and not available on codeline anymore &#8211; I managed to copy the cached version before it disappears.  Thanks to Branko for such a great tutorial. Psylencer Getting things in Magento by getModel and getData methods Posted by branko in Magento &#124; 33 Comments One of [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=34&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<div id="recent-posts">
<div>
<p>Hi all, Im posting this article because it is useful and not available on codeline anymore &#8211; I managed to copy the cached version before it disappears.  Thanks to Branko for such a great tutorial.</p>
<p>Psylencer</p>
<p>Getting things in <strong>Magento</strong> by getModel and getData methods</p>
<div>
<p>Posted  by <a title="Posts by branko" href="http://activecodeline.com/author/admin/">branko</a> in <a title="View all posts in Magento" rel="category tag" href="http://activecodeline.com/category/magento-development"><strong>Magento</strong></a> | <a title="Comment on Getting things in Magento by getModel and getData methods" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#disqus_thread">33 Comments</a></p>
</div>
<div>
<p>One of my previous articles was about getting a <strong>product</strong> information using getData method. This article is a step forward in that direction. I’m gonna show you how to retrieve almost anything in Magetno using getModel and getData methods (function if you prefer).</p>
<p>Before I start with the title related content let me say a word or two of my development tool. For the last few weeks I’m using only one tool while developing on PHP platform, NetBeans 6.5. My favorite text editor still remains Notepad++. Although the the official release is NetBeans 6.5 beta, I’m using the night build versions. In my modest opinion this is the best free IDE solution currently out there. I simply love the code completion in PHP and in HTML plus the coolest thing ever, jQuery code completion support. Since I’m a big fan of jQuery, NetBeans is my number one choice. Some of you probably don’t see HTML code completion as that big of a deal. Well, I do. It saves you a lot of time finishing all those quotes next to <strong>attributes</strong> and auto closing all those markup.</p>
<p>There is quite a number of threads and discussions on <strong>Magento</strong> form about getModel and getData methods. Here I will show you a few ways of using both. One thing to have in mind. I’m working on locally installed <strong>Magento</strong> with default sample data package. For some reason I like to use the app/design/frontend/default/mycustom/template/catalog/<strong>product</strong>/view.phtml file.</p>
<p>Where <strong>mycustom</strong> in the folder name is the name of my theme folder. Let’s get started.</p>
<p>If you open the view.phtml file and write down the <strong>$cModel = Mage::getModel(‘catalog/<strong>product</strong>’);</strong> you would basically say create an instance of <strong>Mage_Catalog_Model_Product</strong> class. So where does the catalog/<strong>product</strong> comes from? What are the other available parameters one can put into the <strong>getModel</strong> function? What are the methods of I can use on this new instance object? All of these are logical questions. Questions so poorly covered by current <strong>Magento</strong> documentation.</p>
<p>As I sad it before, I said it again; Magetno is great software, it’s biggest flaw is the current lack of good documentation. Let us try to answer the questions mentioned above.</p>
<p>Where does the <strong>catalog/<strong>product</strong></strong> parameter comes from? If you browse to <strong>/app/code/core/Mage/</strong> folder you would see a list of logically named subfolders like Catalog, Checkout, Contacts, Core, Dataflow and so on. If you browse deeper into the Catalog folder, you will see it’s structure contains Model directory among all others. Browse into the Model directory and there you will see a bunch of files, among which is <strong>Product</strong>.php. This <strong>Product</strong>.php is whats called when you write down <strong>getModel(‘catalog/<strong>product</strong>’)</strong>. In short <strong>getModel(‘catalog/<strong>product</strong>’)</strong> says go into the /<strong>app/code/core/Mage/</strong> folder, open the folder named <strong>product</strong>, and create an instance of <strong>Product</strong>.php file located inside the Model subfolder (to be more precise, create the instance of the class cotained inside the <strong>Product</strong>.php file).</p>
<p>If we now echo the get_class($cModel); we would get the Mage_Catalog_Model_Product text displayed in our browser. This means that our $cModel variable is actually an instance of Mage_Catalog_Model_Product class. This matches the class name contained inside the <strong>app/code/core/Mage/Catalog/Model/<strong>Product</strong>.php</strong> file. Inside this <strong><strong>Product</strong>.php</strong> file we can clearly see that <strong>Mage_Catalog_Model_Product</strong> class extends the <strong>Mage_Catalog_Model_Abstract</strong> class. What this means is that our <strong>$cModel</strong> can use all of the methods (functions) declared inside the <strong>Mage_Catalog_Model_Product</strong> class plus those declared inside the <strong>Mage_Catalog_Model_Abstract</strong> class.</p>
<p>To see the list of the methods available you can use IDE like NetBeans. NetBeans lists you all the methods of a class in the Navigator window, like the one provided in the screenshot. Or you can use the foreach loop to iterate and echo out the available method names like</p>
<p><strong>echo ‘&lt;ul&gt;’;<br />
foreach (get_class_methods(get_class($cModel)) as $cMethod) {<br />
echo ‘&lt;li&gt;’ . $cMethod . ‘&lt;/li&gt;’;<br />
}<br />
echo ‘&lt;/ul&gt;’;</strong></p>
<p>You can look at the screenshot for the result. You can see some pretty cool and useful methods like getName, getPrice, getTypeId, getStatus which we can execute on our $cModel variable like</p>
<p><strong>echo ‘<strong>Product</strong> name: ‘ . $cModel-&gt;getName();<br />
echo ‘<strong>Product</strong> price: ‘ . $cModel-&gt;getPrice();</strong></p>
<p>However, the above code wont give you anything. You will not see any price displayed in the browser. Why, you might and should ask? Well, for what <strong>product</strong> are you requesting a price? <strong>Magento</strong> does not know that at this point. Some of you might ask, how is it that it does not know? We have a <strong>product</strong> view page open after all. Well, we do, but I’m showing you a code that you can use no matter what page you have open.</p>
<p>We can tell it to him in a single line of code using load() method. This method is also displayed on the list of available methods for this variable. So the above code fore retrieving the <strong>product</strong> name and price would work if we were to write it like</p>
<p><strong>$cModel-&gt;load(53);</strong><br />
<em>/*<br />
Number 53 is the id number in default sample data, it’s assigned to Couch <strong>product</strong> you can see in this screenshots<br />
*/</em></p>
<p><strong>echo ‘&lt;p&gt;<strong>Product</strong> name: ‘ . $cModel-&gt;getName() . ‘&lt;/p&gt;’;<br />
echo ‘&lt;p&gt;<strong>Product</strong> price: ‘ . $cModel-&gt;getPrice() . ‘&lt;/p&gt;’;</strong></p>
<p><strong>View.phtml</strong> file already has the instance of <strong>Mage_Catalog_Model_Product</strong> class trough <strong>$_product = $this-&gt;getProduct()</strong> variable. Here you can see the <strong>Magento</strong> creaters are using the <strong>getProduct()</strong> method on the $this variable. Variable $this contains huge amount of data in it, among which is current instance of  <strong>Mage_Catalog_Model_Product</strong> class stored in some array structure. If you were to retrieve the list of available methods of <strong>$this</strong> variable, like we did on the <strong>$cModel</strong> variable, you were to see the getProduct() method among them like</p>
<p><strong>echo ‘&lt;ul&gt;’;<br />
foreach (get_class_methods(get_class($this)) as $cThis) {<br />
echo ‘&lt;li&gt;’ . $cThis . ‘&lt;/li&gt;’;<br />
}<br />
echo ‘&lt;/ul&gt;’;</strong></p>
<p>If you understood all of the stuff I showed you so far then you understand the power of getModel method. You create the instance of class and store it into some variable (like $cModel), load the data for that type of object by using load function, then ust the list of available functions on that variable (object).</p>
<p>Title of this post mentions <strong>getData</strong> method also. As you can see, getData is just one of multiple available methods for your new variable. <em><strong>So why mentioning it in the same context as getMethod?</strong></em></p>
<p>Before I answer that question let me just explain how getData can be executed with or without any parameters passed to it. If you execute it without any parameters you get the array variable as a result. You can’t directly echo the array. You would have to map it to some field, like echo <strong>$arayVar['someField']</strong>. So I ask you, what are all the available fields? To find out you can do something like</p>
<p><strong>echo ‘&lt;pre&gt;’;<br />
print_r($cModel-&gt;getData());<br />
echo ‘&lt;/pre&gt;’;</strong></p>
<p>Results are so tasteful. There is a bunch of data one can use in it’s custom design solutions. Let’s say you want to retrieve the SKU value. You can use some other method for that like getSku() method that needs to be executed on object of <strong>Product</strong> type or you can<br />
<strong><br />
echo $cModel-&gt;getData(‘sku’);</strong></p>
<p>or</p>
<p><strong>$cModelData = $cModel-&gt;getData();<br />
echo $cModelData-&gt;sku;</strong></p>
<p>Cool, right. If you look at the entire array of data thrown at us when we executed <strong>print_r($cModel-&gt;getData());</strong> we can clearly see there are some nested arrays, and some array fields store entire objects, like stock_item field. It stores object of Mage_CatalogInventory_Model_Stock_Item type. When you run into stuff like this, you can do the following</p>
<p><strong>$cStockItem = $cModel-&gt;getData(‘stock_item’);<br />
or<br />
$cStockItem = $cModelData-&gt;stock_item;</strong></p>
<p>Now your <strong>$cStockItem</strong> variable is a object of type <strong>Mage_CatalogInventory_Model_Stock_Item</strong> and you can go ahead and use the same principle used until this point to find it’s methods and the data id holds.</p>
<p>Hope this was useful.</p>
<p><a href="http://activecodeline.com/wp-content/uploads/2008/10/1.png"><img title="1" src="http://activecodeline.com/wp-content/uploads/2008/10/1-150x150.png" alt="" width="150" height="150" /></a> <a href="http://activecodeline.com/wp-content/uploads/2008/10/1f.png"><img title="1f" src="http://activecodeline.com/wp-content/uploads/2008/10/1f-150x150.png" alt="" width="150" height="150" /></a> <a href="http://activecodeline.com/wp-content/uploads/2008/10/1f_b.png"><img title="1f_b" src="http://activecodeline.com/wp-content/uploads/2008/10/1f_b-150x150.png" alt="" width="150" height="150" /></a> <a href="http://activecodeline.com/wp-content/uploads/2008/10/2.png"><img title="2" src="http://activecodeline.com/wp-content/uploads/2008/10/2-150x150.png" alt="" width="150" height="150" /></a> <a href="http://activecodeline.com/wp-content/uploads/2008/10/2f.png"><img title="2f" src="http://activecodeline.com/wp-content/uploads/2008/10/2f-150x150.png" alt="" width="150" height="150" /></a> <a href="http://activecodeline.com/wp-content/uploads/2008/10/3.png"><img title="3" src="http://activecodeline.com/wp-content/uploads/2008/10/3-150x150.png" alt="" width="150" height="150" /></a> <a href="http://activecodeline.com/wp-content/uploads/2008/10/41.png"><img title="41" src="http://activecodeline.com/wp-content/uploads/2008/10/41-150x150.png" alt="" width="150" height="150" /></a> <a href="http://activecodeline.com/wp-content/uploads/2008/10/51.png"><img title="51" src="http://activecodeline.com/wp-content/uploads/2008/10/51-150x150.png" alt="" width="150" height="150" /></a> <a href="http://activecodeline.com/wp-content/uploads/2008/10/5_b.png"><img title="5_b" src="http://activecodeline.com/wp-content/uploads/2008/10/5_b-150x150.png" alt="" width="150" height="150" /></a> <a href="http://activecodeline.com/wp-content/uploads/2008/10/6.png"><img title="6" src="http://activecodeline.com/wp-content/uploads/2008/10/6-150x150.png" alt="" width="150" height="150" /></a></p>
</div>
</div>
<div id="disqus_thread">
<div id="dsq-content-stub">Loading comments&#8230;&nbsp;</p>
<div id="dsq-loading-problem"><a href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Problems loading Disqus?</a></div>
</div>
<div id="dsq-content">
<div id="dsq-global-toolbar">
<table>
<tbody>
<tr>
<td>
<div><a id="dsq-like-thread-button" title="I like this page" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Like</a> <a id="dsq-dislike-thread-button" title="I don't like this page" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Dislike</a></div>
<ul></ul>
</td>
<td><a title="Expand Community Box" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Community</a></td>
<td>
<div id="dsq-toolbar-dropdown"><a href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Disqus</a>&nbsp;</p>
<div id="dsq-toolbar-dropdown-wrap">
<ul>
<li>
<h4>Login options</h4>
<ul></ul>
</li>
<li><a href="http://disqus.com/" target="_blank">About Disqus</a></li>
</ul>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-like-tooltip">
<div id="dsq-share-step-1">
<h2>Glad you liked it. Would you like to share?</h2>
<p><label for="dsq-share-thread-facebook">Facebook</label></p>
<p><label for="dsq-share-thread-twitter">Twitter</label></p>
<p><button>Share</button> <a href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">No thanks</a></p>
</div>
<div id="dsq-share-step-2">
<p><img src="http://mediacdn.disqus.com/1089/images/themes/narcissus/dsq-loader.gif" alt="" />Sharing this page &#8230;</p>
</div>
<div id="dsq-share-step-3">
<p>Thanks! <a href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Close</a></p>
</div>
</div>
<div id="dsq-new-post">
<h3>Add New Comment</h3>
<div id="dsq-form-area">
<div><button> Post as … </button></div>
</div>
</div>
<div id="dsq-comments-title">
<h3>Showing 33 comments</h3>
</div>
<div>Sort by     Popular now Best rating Newest first Oldest first  <img src="http://mediacdn.disqus.com/1089/images/embed/email.png" alt="" /> <a href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Subscribe by email</a> <img src="http://mediacdn.disqus.com/1089/images/embed/bullet-feed.png" alt="" /> <a href="http://activecodeline.disqus.com/getting_things_in_magento_by_getmodel_and_getdata_methods/latest.rss">Subscribe by RSS</a></div>
<ul id="dsq-comments">
<li id="dsq-comment-34418860">
<div>
<div id="dsq-comment-header-34418860">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-34418860" title="Expand suraj Surendran's profile" href="http://disqus.com/guest/8198a74b2f6970d610b5e3778a71f84a/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> suraj Surendran </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-34418860">7 months ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-34418860">
<div id="dsq-comment-message-34418860">Thank you So much man you are great&#8230;&#8230;&#8230;&#8230;.</div>
</div>
<div id="dsq-comment-footer-34418860">
<div><a id="dsq-post-report-34418860" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div>3 people liked this.                                                                  <button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748304">
<div>
<div id="dsq-comment-header-20748304">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748304" title="Expand Mohit's profile" href="http://disqus.com/guest/9a29effbcb02e2ea70248be22bc41aad/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Mohit </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748304">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748304">
<div id="dsq-comment-message-20748304">Hi..&nbsp;</p>
<p>$cModelData = $cModel-&gt;getData();<br />
echo $cModelData-&gt;sku;</p>
<p>This code isnt working. It should be following&#8230;.</p>
<p>$cModelData = $cModel-&gt;getData();<br />
echo $cModelData['sku'];</p>
<p>Because $cModel-&gt;getData() is returning array, it need to be accessed as an array element. Arrow operator here will give error.</p>
</div>
</div>
<div id="dsq-comment-footer-20748304">
<div><a id="dsq-post-report-20748304" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div>3 people liked this.                                                                  <button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748305">
<div>
<div id="dsq-comment-header-20748305">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748305" title="Expand branko's profile" href="http://disqus.com/guest/5c67828449531d67899d1c5c16f91acb/"> <img src="http://media.disqus.com/uploads/anonusers/340/8485/avatar32.jpg" alt="" /> </a></td>
<td>
<div><cite> <a id="dsq-author-user-20748305" rel="nofollow" href="http://activecodeline.com/" target="_blank">branko</a> </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748305">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748305">
<div id="dsq-comment-message-20748305">@Mohit&nbsp;</p>
<p>There are number of articles and even some extensions you can download from this site that should cover your question.</p>
</div>
</div>
<div id="dsq-comment-footer-20748305">
<div><a id="dsq-post-report-20748305" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div>2 people liked this.                                                                  <button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748303">
<div>
<div id="dsq-comment-header-20748303">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748303" title="Expand Mohit's profile" href="http://disqus.com/guest/9a29effbcb02e2ea70248be22bc41aad/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Mohit </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748303">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748303">
<div id="dsq-comment-message-20748303">Hi&#8230;&nbsp;</p>
<p>This post is useful to get data. My question is&#8230;</p>
<p>How can I store new record into the database&#8230;?</p>
</div>
</div>
<div id="dsq-comment-footer-20748303">
<div><a id="dsq-post-report-20748303" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div>1 person liked this.                                                                  <button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748302">
<div>
<div id="dsq-comment-header-20748302">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748302" title="Expand ravi's profile" href="http://disqus.com/guest/7395a566f8e69b10b48f696c645201e0/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> ravi </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748302">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748302">
<div id="dsq-comment-message-20748302">hiii,&nbsp;</p>
<p>i have one question&#8230;</p>
<p>when i write getData method it will give me proper data&#8230;but i am edit that data ..and now i want to save it.. so how can i save that data ???</p>
<p>example : i make one attribute..now i fetch it on product view page now on add to cart i want to save that attribute data. so how can i do this thing ??</p>
<p>thank you..</p>
</div>
</div>
<div id="dsq-comment-footer-20748302">
<div><a id="dsq-post-report-20748302" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div>1 person liked this.                                                                  <button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748299">
<div>
<div id="dsq-comment-header-20748299">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748299" title="Expand branko's profile" href="http://disqus.com/guest/5c67828449531d67899d1c5c16f91acb/"> <img src="http://media.disqus.com/uploads/anonusers/340/8485/avatar32.jpg" alt="" /> </a></td>
<td>
<div><cite> <a id="dsq-author-user-20748299" rel="nofollow" href="http://activecodeline.com/" target="_blank">branko</a> </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748299">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748299">
<div id="dsq-comment-message-20748299">@Yogendra&nbsp;</p>
<p>Actually you can use full class name like</p>
<p>$product = new Mage_Model_Catalog_Product();<br />
$product-&gt;load($productId);</p>
</div>
</div>
<div id="dsq-comment-footer-20748299">
<div><a id="dsq-post-report-20748299" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div>1 person liked this.                                                                  <button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748291">
<div>
<div id="dsq-comment-header-20748291">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748291" title="Expand Saggy's profile" href="http://disqus.com/guest/82a4d1fb61810aa97dda3a7580ca07f4/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Saggy </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748291">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748291">
<div id="dsq-comment-message-20748291">I would like to thanks Branko for this article. Very helpful. Cheers Mate for this. Much appreciated.&nbsp;</p>
<p>I have put the code in this comment in case some people are still struggling to get the desired results -:</p>
<p>This code you can copy as it is in /template/catalog/product/view.phtml file.</p>
<p>$_helper = $this-&gt;helper(&#8216;catalog/output&#8217;);<br />
$_product = $this-&gt;getProduct();</p>
<p>$cModel_PC = Mage::getModel(&#8216;catalog/product&#8217;);</p>
<p>echo &#8221;;<br />
foreach (get_class_methods(get_class($cModel_PC)) as $cMethod) {<br />
echo &#8221; . $cMethod . &#8221;;<br />
}<br />
echo &#8221;;</p>
<p>echo &#8216;====&#8217;;</p>
<p>echo &#8221;;<br />
foreach (get_class_methods(get_class($_helper)) as $cMethod) {<br />
echo &#8221; . $cMethod . &#8221;;<br />
}<br />
echo &#8221;;</p>
<p>$cModel_PC-&gt;load($_helper-&gt;productAttribute($_product, $this-&gt;htmlEscape($_product-&gt;getId()), &#8216;Id&#8217;));</p>
<p>echo $cModel_PC-&gt;getData(&#8216;description&#8217;);<br />
echo $cModel_PC-&gt;getData(&#8216;name&#8217;);<br />
echo $cModel_PC-&gt;getData(&#8216;manufacture&#8217;);</p>
</div>
</div>
<div id="dsq-comment-footer-20748291">
<div><a id="dsq-post-report-20748291" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div>1 person liked this.                                                                  <button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748290">
<div>
<div id="dsq-comment-header-20748290">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748290" title="Expand tom's profile" href="http://disqus.com/guest/7972206655b27b6b33efd66b62d81b59/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> tom </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748290">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748290">
<div id="dsq-comment-message-20748290">But how would I get a handle on the ProductAttribute Object?&nbsp;</p>
<p>$attributes = Mage::getModel(&#8216;catalog/product/attribute&#8217;);</p>
<p>&#8230; doesn&#8217;t work. Oddly enough, it returns the Product object.</p>
</div>
</div>
<div id="dsq-comment-footer-20748290">
<div><a id="dsq-post-report-20748290" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div>1 person liked this.                                                                  <button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748285">
<div>
<div id="dsq-comment-header-20748285">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748285" title="Expand Tony's profile" href="http://disqus.com/guest/732d9e89c87da20c9e315e35a2c41dd1/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Tony </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748285">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748285">
<div id="dsq-comment-message-20748285">Is it possible to use this code in say the breadcrumbs to retreive the product information of whatever page I&#8217;m on? I tried doing:&nbsp;</p>
<p>$idParams = $this-&gt;getRequest()-&gt;getParam(&#8216;id&#8217;);<br />
$cModel = Mage::getModel(&#8216;catalog/product&#8217;);<br />
$cModel-&gt;load($idParams);<br />
print_r($cModel-&gt;getSku());</p>
<p>but even when I&#8217;m not on a product page, it still takes the ID of the page I&#8217;m on and runs it agains the product database and returns an SKU for whatever product I have that is matching up to the category page I&#8217;m on id-wise.</p>
<p>Is there a different way to find what the current product is that&#8217;s being displayed?</p>
<p>Thank You so much for your tutorials. They are straightforward and easy to read, unlike the offical source.</p>
</div>
</div>
<div id="dsq-comment-footer-20748285">
<div><a id="dsq-post-report-20748285" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div>1 person liked this.                                                                  <button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748284">
<div>
<div id="dsq-comment-header-20748284">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748284" title="Expand Anjanesh's profile" href="http://disqus.com/guest/7e478a4a1c7d04c7b1e5a4140f3cc7a0/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Anjanesh </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748284">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748284">
<div id="dsq-comment-message-20748284">Cool ! But most of the attribute data are index keys.<br />
$cModel-&gt;getData(&#8216;manufacturer&#8217;) returns an integer (index key).<br />
How do we retrieve the text associated with it ?</div>
</div>
<div id="dsq-comment-footer-20748284">
<div><a id="dsq-post-report-20748284" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div>1 person liked this.                                                                  <button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-73334947">
<div>
<div id="dsq-comment-header-73334947">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-73334947" title="Expand Jason Nardo's profile" href="http://disqus.com/guest/55181d34233a6727a61bd235485e2cea/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Jason Nardo </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-73334947">3 weeks ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-73334947">
<div id="dsq-comment-message-73334947">Hi Mr. Branko&nbsp;</p>
<p>I just wanna ask it is possible to add some customized functionality when I clicked on the &#8220;Place Order&#8221; in onestepcheckout say.. after performing the place order request&#8230; a new page will open in a separate window..</p>
<p>In that sense, we want to somehow edit the behavior when &#8220;Place Order&#8221; is clicked</p>
</div>
</div>
<div id="dsq-comment-footer-73334947">
<div><a id="dsq-post-report-73334947" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-41404502">
<div>
<div id="dsq-comment-header-41404502">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-41404502" title="Expand Dan Polant's profile" href="http://disqus.com/guest/dce744d0dd69c42a94408b818d77d697/"> <img src="http://media.disqus.com/uploads/anonusers/577/7734/avatar32.jpg" alt="" /> </a></td>
<td>
<div><cite> <a id="dsq-author-user-41404502" rel="nofollow" href="http://danpolant.com/" target="_blank">Dan Polant</a> </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-41404502">6 months ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-41404502">
<div id="dsq-comment-message-41404502">Great article. You&#8217;re right, Magento is a powerful and well thought out application, but it has a lot of &#8220;secret&#8221; naming conventions that make it hard to learn. Thanks for explaining this.</div>
</div>
<div id="dsq-comment-footer-41404502">
<div><a id="dsq-post-report-41404502" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-24415018">
<div>
<div id="dsq-comment-header-24415018">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-24415018" title="Expand Bob Brodie's profile" href="http://disqus.com/guest/70c5c6bc18831012e7c1c776f53ee3ae/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Bob Brodie </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-24415018">9 months ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-24415018">
<div id="dsq-comment-message-24415018">Hello,&nbsp;</p>
<p>How would you recommend creating a new root category using Mage::getModel(&#8216;catalog/category&#8217;)?</p>
<p>Thank you,<br />
Bob Brodie</p>
</div>
</div>
<div id="dsq-comment-footer-24415018">
<div><a id="dsq-post-report-24415018" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748306">
<div>
<div id="dsq-comment-header-20748306">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748306" title="Expand Devin Olsen's profile" href="http://disqus.com/guest/297a22c841f75abc0acf4c625136f911/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Devin Olsen </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748306">11 months ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748306">
<div id="dsq-comment-message-20748306">really helpful man! The only thing I cant figure out is why they dont allow you to gather a products type via getData(&#8216;type&#8217;);</div>
</div>
<div id="dsq-comment-footer-20748306">
<div><a id="dsq-post-report-20748306" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748301">
<div>
<div id="dsq-comment-header-20748301">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748301" title="Expand ravi's profile" href="http://disqus.com/guest/7395a566f8e69b10b48f696c645201e0/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> ravi </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748301">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748301">
<div id="dsq-comment-message-20748301">hiii,&nbsp;</p>
<p>thank u for nice post. it is very very useful  post..</p>
<p>thank you man</p>
</div>
</div>
<div id="dsq-comment-footer-20748301">
<div><a id="dsq-post-report-20748301" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748300">
<div>
<div id="dsq-comment-header-20748300">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748300" title="Expand Yogendra's profile" href="http://disqus.com/guest/b4e4a861b4c8f5f907a58b7b270cde28/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> <a id="dsq-author-user-20748300" rel="nofollow" href="http://www.sigmainfosolutions.net/" target="_blank">Yogendra</a> </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748300">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748300">
<div id="dsq-comment-message-20748300">Thanks for quick reply. One another thing I am wondering is that how magento is storing the entities values in database. I have created my own module and I have also created few attributes related to my entity_set. And I am also able to create dynamically as per magento database. Please have a look to this thread:<br />
<a rel="nofollow" href="http://www.magentocommerce.com/boards/viewthread/41408">http://www.magentocommerce.com/boards/viewthread/41408</a>/<br />
So if you can guide me than it will really help me to understand magento to great extent. One more thing, we can filter collection by attribute and if I want to filter my collection with field then how can I do this. Thanks in advance brother to guide me.</div>
</div>
<div id="dsq-comment-footer-20748300">
<div><a id="dsq-post-report-20748300" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748298">
<div>
<div id="dsq-comment-header-20748298">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748298" title="Expand Yogendra's profile" href="http://disqus.com/guest/b4e4a861b4c8f5f907a58b7b270cde28/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> <a id="dsq-author-user-20748298" rel="nofollow" href="http://www.sigmainfosolutions.net/" target="_blank">Yogendra</a> </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748298">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748298">
<div id="dsq-comment-message-20748298">How can I create instace of Mage_Model_Catalog_Product in my phtml as I want to connect this with my helper.&nbsp;</p>
<p>Second thing I want to display some attributes to my customer dashboard page where I am displaying the item list of all order&#8217;s. So please guide me.</p>
</div>
</div>
<div id="dsq-comment-footer-20748298">
<div><a id="dsq-post-report-20748298" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748297">
<div>
<div id="dsq-comment-header-20748297">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748297" title="Expand Khaliq's profile" href="http://disqus.com/guest/eaf2c8eb20ef1264f9cb00c33b38ff67/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Khaliq </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748297">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748297">
<div id="dsq-comment-message-20748297">Hi!&nbsp;</p>
<p>thanks for nice Article</p>
<p>But i am in wonder that how do i read the Random  Quotes through a<br />
file in magento.Is Magento support such features or Zend Provides some built-in Libraries for that.<br />
Please reply</p>
</div>
</div>
<div id="dsq-comment-footer-20748297">
<div><a id="dsq-post-report-20748297" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748296">
<div>
<div id="dsq-comment-header-20748296">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748296" title="Expand NIRMESH's profile" href="http://disqus.com/guest/fbbb0fba0a01e4a5ce961cab38657f6a/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> NIRMESH </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748296">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748296">
<div id="dsq-comment-message-20748296">hi branko,&nbsp;</p>
<p>can u tell me how magento search works i wanted to know where and how magento form the query so that i can customize that query.<br />
actually i need to add one more parameter while it search for a product.</p>
<p>please throw some light. ASAP.</p>
</div>
</div>
<div id="dsq-comment-footer-20748296">
<div><a id="dsq-post-report-20748296" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748295">
<div>
<div id="dsq-comment-header-20748295">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748295" title="Expand Sylvie's profile" href="http://disqus.com/guest/bd889380d322a5be25aa57f04d58fe6a/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Sylvie </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748295">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748295">
<div id="dsq-comment-message-20748295">Very useful article indeed.&nbsp;</p>
<p>I was wondering how I shoul use those functions to display the product details (image, descriptions&#8230;) in a light popup clicking on an image to avoid reloading the page.</p>
<p>What should be the best way to do it, passing the product id to a js-php file that will create an instance of Mage_Catalog_Model_Product class, then load data?</p>
<p>Could I pass the array variable $_product to dynamically generate the detail product popup ?</p>
<p>Your suggestions are welcome <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> .</p>
<p>Sylvie</p>
</div>
</div>
<div id="dsq-comment-footer-20748295">
<div><a id="dsq-post-report-20748295" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748294">
<div>
<div id="dsq-comment-header-20748294">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748294" title="Expand branko's profile" href="http://disqus.com/guest/5c67828449531d67899d1c5c16f91acb/"> <img src="http://media.disqus.com/uploads/anonusers/340/8485/avatar32.jpg" alt="" /> </a></td>
<td>
<div><cite> <a id="dsq-author-user-20748294" rel="nofollow" href="http://activecodeline.com/" target="_blank">branko</a> </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748294">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748294">
<div id="dsq-comment-message-20748294">@nirmesh&nbsp;</p>
<p>Thank you for for reading my blog. This is relatively old article now <img src='http://s0.wp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Not sure what exactly you are trying to do in your example. Take a look at <a rel="nofollow" href="http://inchoo.net/">inchoo.net</a> site (company I work for). You&#8217;ll find few additional Magento articles by me and my co-workers.</p>
<p>Cheers&#8230;</p>
</div>
</div>
<div id="dsq-comment-footer-20748294">
<div><a id="dsq-post-report-20748294" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748293">
<div>
<div id="dsq-comment-header-20748293">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748293" title="Expand NIRMESH's profile" href="http://disqus.com/guest/fbbb0fba0a01e4a5ce961cab38657f6a/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> NIRMESH </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748293">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748293">
<div id="dsq-comment-message-20748293">hi branko,&nbsp;</p>
<p>thanx a lot this article proved to be very useful for me.</p>
<p>just one doubt please clarify it:</p>
<p>My only idea is to get an array of all product ids then have a php function randomly pick one out and get the details via a $cModel-&gt;load(); and write it, then repeat!!</p>
<p>Seems a bit long winded,</p>
<p>is there  not any way so that i can put any variable in load so that it could retrieve all the product  information</p>
</div>
</div>
<div id="dsq-comment-footer-20748293">
<div><a id="dsq-post-report-20748293" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748289">
<div>
<div id="dsq-comment-header-20748289">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748289" title="Expand Subesh Pokhrel's profile" href="http://disqus.com/guest/b8dc5891c7b088100b104a193a8131ed/"> <img src="http://media.disqus.com/uploads/anonusers/114/4607/avatar32.jpg" alt="" /> </a></td>
<td>
<div><cite> <a id="dsq-author-user-20748289" rel="nofollow" href="http://subesh.com.np/" target="_blank">Subesh Pokhrel</a> </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748289">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748289">
<div id="dsq-comment-message-20748289">Nice post.. dude&#8230; thanx that helped me a lot..</div>
</div>
<div id="dsq-comment-footer-20748289">
<div><a id="dsq-post-report-20748289" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748288">
<div>
<div id="dsq-comment-header-20748288">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748288" title="Expand T's profile" href="http://disqus.com/guest/1f00e72a071e2889132dae0d7a422bdb/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> T </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748288">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748288">
<div id="dsq-comment-message-20748288">I&#8217;ve used your blog post extensively in learning how to pull down product data but I can&#8217;t seem to find a method or even anything from print_r($cModel-&gt;getData()) that would indicate where a Bundle product&#8217;s price data is stored. It seems like it might be in the Tier price array (and associated arrays), but alas they are empty when I attempt to output them. Do you have any insight branko?</div>
</div>
<div id="dsq-comment-footer-20748288">
<div><a id="dsq-post-report-20748288" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748287">
<div>
<div id="dsq-comment-header-20748287">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748287" title="Expand dani's profile" href="http://disqus.com/guest/128d8106540cc568d951644848ca08e2/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> dani </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748287">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748287">
<div id="dsq-comment-message-20748287">Same problem here. I&#8217;m trying to create a custom module and I need to show some products, but $product-&gt;getName() method doesn&#8217;t return anything. Any ideas?&nbsp;</p>
<p>Anyway, nice job with this blog,man. I found it very useful. Keep up the good work!</p>
</div>
</div>
<div id="dsq-comment-footer-20748287">
<div><a id="dsq-post-report-20748287" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748286">
<div>
<div id="dsq-comment-header-20748286">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748286" title="Expand Tony's profile" href="http://disqus.com/guest/732d9e89c87da20c9e315e35a2c41dd1/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Tony </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748286">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748286">
<div id="dsq-comment-message-20748286">ok, so I tried using getSingleton instead by doing this:&nbsp;</p>
<p>$cSingleton = Mage::getSingleton(&#8216;catalog/product&#8217;);<br />
echo &#8221;;<br />
echo &#8216;Product name:&#8217;;<br />
echo $cSingleton-&gt;getName();<br />
echo &#8221;;</p>
<p>but I still can&#8217;t figure out how to retrieve the name of the product on the page from within the breadcrumbs. Anybody?</p>
</div>
</div>
<div id="dsq-comment-footer-20748286">
<div><a id="dsq-post-report-20748286" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748283">
<div>
<div id="dsq-comment-header-20748283">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748283" title="Expand branko's profile" href="http://disqus.com/guest/5c67828449531d67899d1c5c16f91acb/"> <img src="http://media.disqus.com/uploads/anonusers/340/8485/avatar32.jpg" alt="" /> </a></td>
<td>
<div><cite> <a id="dsq-author-user-20748283" rel="nofollow" href="http://activecodeline.com/" target="_blank">branko</a> </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748283">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748283">
<div id="dsq-comment-message-20748283">getModel(&#8216;catalog/product&#8217;) is the same as if you did new Mage_Catalog_Model_Product(), autoloading will do the job. So first you try this second approach on your module</div>
</div>
<div id="dsq-comment-footer-20748283">
<div><a id="dsq-post-report-20748283" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748282">
<div>
<div id="dsq-comment-header-20748282">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748282" title="Expand Ahsan Shahzad's profile" href="http://disqus.com/guest/09c0e0420aaf0f75d288c0086a000264/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Ahsan Shahzad </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748282">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748282">
<div id="dsq-comment-message-20748282">cool post,&nbsp;</p>
<p>i need a bit explanation on this sentence of your post in sense of custom modules:</p>
<p>&#8221; In short getModel(’catalog/product’) says go into the /app/code/core/Mage/ folder, open the folder named product, and create an instance of Product.php file located inside the Model subfolder (to be more precise, create the instance of the class cotained inside the Product.php file).&#8221;</p>
<p>you told in above that getModel(’catalog/product’) will tell megento to pick the module from Mage but what if i need to pick data through my custom module, how i&#8217;ll explicitly mention if it is Mage module or my custom module. Will it automatically map getModule(&#8216;abc/model&#8217;) ?</p>
<p>please explain,<br />
thanks</p>
</div>
</div>
<div id="dsq-comment-footer-20748282">
<div><a id="dsq-post-report-20748282" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748281">
<div>
<div id="dsq-comment-header-20748281">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748281" title="Expand branko's profile" href="http://disqus.com/guest/5c67828449531d67899d1c5c16f91acb/"> <img src="http://media.disqus.com/uploads/anonusers/340/8485/avatar32.jpg" alt="" /> </a></td>
<td>
<div><cite> <a id="dsq-author-user-20748281" rel="nofollow" href="http://activecodeline.com/" target="_blank">branko</a> </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748281">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748281">
<div id="dsq-comment-message-20748281">P.S. Go to Zend Framework site and go trough some tutorials on MVC structure and passing parameters between Model, Controller, View and stuff like that. Should help you since Magento is Zend based.</div>
</div>
<div id="dsq-comment-footer-20748281">
<div><a id="dsq-post-report-20748281" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748280">
<div>
<div id="dsq-comment-header-20748280">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748280" title="Expand branko's profile" href="http://disqus.com/guest/5c67828449531d67899d1c5c16f91acb/"> <img src="http://media.disqus.com/uploads/anonusers/340/8485/avatar32.jpg" alt="" /> </a></td>
<td>
<div><cite> <a id="dsq-author-user-20748280" rel="nofollow" href="http://activecodeline.com/" target="_blank">branko</a> </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748280">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748280">
<div id="dsq-comment-message-20748280">You cant call the block directly since they all contain getChildHtml&#8230; does not work, they break and you are unable to see stuff that getChildHtml is suppose to output&#8230; do the getModel(of something)-&gt;load(by some id of something) play with it. There are infinite possibilities.</div>
</div>
<div id="dsq-comment-footer-20748280">
<div><a id="dsq-post-report-20748280" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748279">
<div>
<div id="dsq-comment-header-20748279">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748279" title="Expand Dinesh's profile" href="http://disqus.com/guest/bd0d802f5347668a09b6a0a7002028ee/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Dinesh </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748279">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748279">
<div id="dsq-comment-message-20748279">getModel is used to call the function and get data from other model of the module, how do u i call the function in other block of the module.</div>
</div>
<div id="dsq-comment-footer-20748279">
<div><a id="dsq-post-report-20748279" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748278">
<div>
<div id="dsq-comment-header-20748278">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748278" title="Expand Dinesh's profile" href="http://disqus.com/guest/bd0d802f5347668a09b6a0a7002028ee/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Dinesh </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748278">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748278">
<div id="dsq-comment-message-20748278">I want to display the block same as that of sales-order module in my custom module. How can i do that&nbsp;</p>
<p>thanks</p>
</div>
</div>
<div id="dsq-comment-footer-20748278">
<div><a id="dsq-post-report-20748278" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
<li id="dsq-comment-20748277">
<div>
<div id="dsq-comment-header-20748277">
<table>
<tbody>
<tr>
<td><a id="dsq-avatar-20748277" title="Expand Pete's profile" href="http://disqus.com/guest/7ff4dda17980096cb57aa0816e6211d1/"> <img src="http://mediacdn.disqus.com/1089/images/noavatar32.png" alt="" /> </a></td>
<td>
<div><cite> Pete </cite> <img title="Moderator" src="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" alt="" width="15" height="14" /> <a title="Permalink" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#comment-20748277">1 year ago</a></div>
</td>
</tr>
</tbody>
</table>
</div>
<div id="dsq-comment-body-20748277">
<div id="dsq-comment-message-20748277">Great post thanks alot,&nbsp;</p>
<p>this has really helped me with a section of my site. One thing i am still not sure on is how you retrieve a collection of products from the db for example i&#8217;d like to retrieve a random bunch of 6 products that are instock and sellable but have no idea how to go about it.</p>
<p>My only idea is to get an array of all product ids then have a php function randomly pick one out and get the details via a $cModel-&gt;load(); and write it, then repeat!!</p>
<p>Seems a bit long winded, but thanks for this article and keep up the good info, magento rocks but i agree it needs a bit more doc</p>
</div>
</div>
<div id="dsq-comment-footer-20748277">
<div><a id="dsq-post-report-20748277" href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods#">Flag</a></div>
<div><button>Like</button> <button>Reply</button> <button>Reply</button></div>
</div>
</div>
</li>
</ul>
</div>
</div>
<p><a href="http://disqus.com/">blog comments powered by Disqus</a></p>
</div>
<div id="sidebar">
<div id="firstcol">
<div id="rss-4">
<h4><a title="Syndicate this content" href="http://inchoo.net/author/branko/feed/rss"><img src="http://activecodeline.com/wp-includes/images/rss.png" alt="RSS" width="14" height="14" /></a> <a title="Magento Design and Magento Development Professionals - Inchoo" href="http://inchoo.net/">My Inchoo.net stuff</a></h4>
<div>
<ul>
<li><a title="If you are in the business of developing a mobile application or external web/desktop or some other application/service that needs to communicate with Magento trough its API, then my friend you are out of luck. I am not going to say Magento API is a trash, I’ll simply say it massively lacks certain methods within […]" href="http://inchoo.net/ecommerce/magento/extending-the-magento-api/">Extending the <strong>Magento</strong> API</a></li>
<li><a title="My apologies for a bit misleading title, as there is no PHP Confirmation dialog as such. More precisely its a analogy of JavaScript confirmation dialog and Android (Java) alternative for the same thing. Here is a little code snippet that you can use to get the Yes/No dialog in Android and then execute corresponding action […]" href="http://inchoo.net/android-development/from-php-javascript-to-android-the-simple-stuff-yes-no-confirmation-dialog/">From PHP/JavaScript to Android, the simple stuff – Yes/No Confirmation Dialog</a></li>
<li><a title="For the last few days I have been intensively playing with Android and Magento XMLRPC API. One of the trickiest things for me as a PHP developer was to figure out how to parse the data returned from XMLRPC API. Most of the time you will most likely have a proper documentation that will clearly […]" href="http://inchoo.net/android-development/parsing-the-xmlrpc-webservice-response-in-android/">Parsing the XMLRPC webservice response in Android</a></li>
<li><a title="As a web developer you have surely heard for AJAX. Its one of those cool things that give your web app more dynamic interface by fetching various data behind the scene. So, whats the analogy with the Android platform? Well, in Android, or better yet Java development you have more robust solution for doing things […]" href="http://inchoo.net/android-development/from-php-to-android-the-simple-stuff-asynctask-and-the-ajax-analogy/">From PHP to Android, the simple stuff – AsyncTask and the AJAX analogy</a></li>
<li><a title="Finally Magento 1.4.1.0 has been released. Its been “forever” since we got stuck with Magento 1.4.0.1. Anyhow, its always nice to have updated, bug fixed, and a bit improved version of your software. Especially if it brings money to your table. Hope all of you site owners will enjoy this new release. However, keep in […]" href="http://inchoo.net/ecommerce/magento/magento-1-4-1-0-mini-review-and-a-thank-you-for-the-paypal-cleanup/"><strong>Magento</strong> 1.4.1.0 – Mini review and a “Thank you for the PayPal cleanup”</a></li>
<li><a title="As mentioned in one of my previous articles, usually when you are trying out a different platform or language you try to find the analogy of what you done in your “yesterdays” programming language in regards to the new one. One such cool analogy, as I see it, is the analogy of web’s POST &amp; […]" href="http://inchoo.net/android-development/from-php-to-android-the-simple-stuff-intents-and-the-post-get-analogy/">From PHP to Android, the simple stuff – Intents and the POST-GET analogy</a></li>
<li><a title="Recently I became proud owner of HTC Desire mobile device powered by Android platform. This is something I got my boss Tomislav Bilic to thank to. Even before (several weeks before) getting my real Android powered phone, I started poking around Android platform. Behind this interest was my desire is was/is to do mobile eCommerce […]" href="http://inchoo.net/ecommerce/magento/consuming-the-magento-xmlrpc-web-service-through-android/">Consuming the Magento’s XMLRPC web service through Android</a></li>
<li><a title="Switching from one programming language to another usually means checking up on few basic things and trying to replicate code functionality from one language to another. For those of you in the PHP world like me that are trying to start the Android development here is a brief look on how foreach loop can be […]" href="http://inchoo.net/android-development/from-php-to-android-the-simple-foreach-loop-example/">From PHP to Android, the simple foreach loop example</a></li>
<li><a title="Recently I have been engaged in Android development. Most of my work is focused on Magento-Android related app. This PHP to Android step actually means PHP to Java (with some sugar on top of it). Although there are significant difference between Java and PHP, personally I find Java pretty easy. Most likely due to my […]" href="http://inchoo.net/android-development/from-php-to-android-the-simple-stuff-what-about-arrays/">From PHP to Android, the simple stuff – What about arrays</a></li>
<li><a title="Haven’t wrote an article for a while, so here is a short one. Are you sick of Magento XML layouts? If so, then do it all via the code, from the controller . Here is how. public function mycoolAction() { /* ... Some code ...*/ $update = $this-&gt;getLayout()-&gt;getUpdate(); /* ... Some code ...*/ $this-&gt;addActionLayoutHandles(); /* […]" href="http://inchoo.net/ecommerce/magento/sick-of-magento-xml-layouts/">Sick of <strong>Magento</strong> XML layouts?</a></li>
</ul>
</div>
</div>
</div>
<div id="secondcol">
<div id="text-7">
<div>
<div><a href="http://www.stamps.com/entry/welcome/?source=si10822849"><img src="http://activecodeline.com/200x150_magento-ad-batch-print.jpg" alt="" /></a></div>
</div>
</div>
</div>
<div>
<h4>Popular Posts</h4>
<ul>
<li> <a href="http://activecodeline.com/magento-bestseller-module-extensions"> <strong>Magento</strong> Bestseller module (Extensions) </a> Posted on Apr 12, 2009</li>
<li> <a href="http://activecodeline.com/moving-magento-site-from-development-to-live-server"> Moving <strong>Magento</strong> site from development to live server </a> Posted on Aug 7, 2008</li>
<li> <a href="http://activecodeline.com/getting-things-in-magento-by-getmodel-and-getdata-methods"> Getting things in <strong>Magento</strong> by getModel and getData methods </a> Posted on Oct 5, 2008</li>
<li> <a href="http://activecodeline.com/wordpress-and-magento-integration-one-way-to-go"> WordPress and <strong>Magento</strong> integration – One way to go </a> Posted on Feb 25, 2009</li>
<li> <a href="http://activecodeline.com/consuming-web-service-via-soap-in-magento"> Consuming web service via SOAP in <strong>Magento</strong> </a> Posted on Oct 15, 2008</li>
</ul>
</div>
<div>
<h4>Random posts</h4>
<ul>
<li> <a href="http://activecodeline.com/yet-another-article-on-listing-products-on-sale-in-magento"> Yet another article on listing products on sale in <strong>Magento</strong> </a> Posted on Dec 25, 2008</li>
<li> <a href="http://activecodeline.com/netbeans-65-release"> Finally, its here, NetBeans 6.5 </a> Posted on Nov 20, 2008</li>
<li> <a href="http://activecodeline.com/debugging-magento-using-krumo"> Debugging <strong>Magento</strong> using Krumo </a> Posted on Sep 10, 2008</li>
<li> <a href="http://activecodeline.com/simple-example-on-how-to-programatically-create-two-level-categories-in-magento"> Simple example on how to programatically create two level categories in <strong>Magento</strong> </a> Posted on Jun 3, 2010</li>
<li> <a href="http://activecodeline.com/netbeans65-php-edition"> NetBeans 6.5 PHP edition </a> Posted on Aug 15, 2008</li>
</ul>
</div>
</div>
<div id="footer">
<div>
<div id="recent-comments-2">
<h4>Recent Comments</h4>
<ul id="recentcomments">
<li><a rel="external nofollow" href="http://twitter.com/DennisDecoene">Dennis_Decoene</a> on <a href="http://activecodeline.com/consuming-web-service-via-soap-in-magento/comment-page-2#comment-5696">Consuming web service via SOAP in <strong>Magento</strong></a></li>
<li>fishpig on <a href="http://activecodeline.com/wordpress-and-magento-integration-one-way-to-go/comment-page-2#comment-5695">WordPress and <strong>Magento</strong> integration – One way to go</a></li>
<li><a rel="external nofollow" href="http://www.haiderali.me/">Haider Ali</a> on <a href="http://activecodeline.com/setting-up-development-environment-for-magento/comment-page-1#comment-5694">Setting up development environment for <strong>Magento</strong> (my way)</a></li>
<li>Andy on <a href="http://activecodeline.com/photoshop-to-android-gradient-quality-issue/comment-page-1#comment-5693">Photoshop to Android – Gradient quality issue</a></li>
<li><a rel="external nofollow" href="http://www.talentsfromindia.com/hire-android-programmer-developer.html">Android Programmer</a> on <a href="http://activecodeline.com/getting-married-this-saturday-0911/comment-page-1#comment-5692">Getting married this Saturday, 09/11</a></li>
</ul>
</div>
<div id="categories-2">
<h4>Categories</h4>
<ul>
<li><a title="View all posts filed under Android" href="http://activecodeline.com/category/android">Android</a></li>
<li><a title="Just some general thoughts, ideas and overviews." href="http://activecodeline.com/category/general">General</a></li>
<li><a title="Articles, post and ideas on subject of Magento development." href="http://activecodeline.com/category/magento-development"><strong>Magento</strong></a></li>
</ul>
</div>
<div id="tag_cloud-2">
<h4>Tags</h4>
<div><a title="1 topic" href="http://activecodeline.com/tag/amf">AMF</a> <a title="4 topics" href="http://activecodeline.com/tag/android">Android</a> <a title="4 topics" href="http://activecodeline.com/tag/doctrine-orm">Doctrine ORM</a> <a title="1 topic" href="http://activecodeline.com/tag/drupal">Drupal</a> <a title="1 topic" href="http://activecodeline.com/tag/f">F#</a> <a title="1 topic" href="http://activecodeline.com/tag/flex">Flex</a> <a title="1 topic" href="http://activecodeline.com/tag/fsharp">FSharp</a> <a title="1 topic" href="http://activecodeline.com/tag/general">General</a> <a title="86 topics" href="http://activecodeline.com/tag/magento"><strong>Magento</strong></a> <a title="1 topic" href="http://activecodeline.com/tag/magento-android"><strong>Magento</strong>-Android</a> <a title="19 topics" href="http://activecodeline.com/tag/module">module</a> <a title="1 topic" href="http://activecodeline.com/tag/oxid">Oxid</a> <a title="1 topic" href="http://activecodeline.com/tag/personal">personal</a> <a title="7 topics" href="http://activecodeline.com/tag/php">PHP</a> <a title="2 topics" href="http://activecodeline.com/tag/product"><strong>product</strong></a> <a title="4 topics" href="http://activecodeline.com/tag/template">template</a> <a title="2 topics" href="http://activecodeline.com/tag/upgrade">upgrade</a> <a title="2 topics" href="http://activecodeline.com/tag/widget">widget</a> <a title="10 topics" href="http://activecodeline.com/tag/wordpress">WordPress</a> <a title="1 topic" href="http://activecodeline.com/tag/wordpress2magento">WordPress2Magento</a> <a title="8 topics" href="http://activecodeline.com/tag/zendframework">Zend Framework</a></div>
</div>
<div id="text-4">
<div>
<div><img title="Branko Ajzele" src="http://activecodeline.com/myphoto.jpg" alt="Branko Ajzele" width="96" height="96" align="left" /> My name is <strong>Branko Ajzele</strong>. I&#8217;m currently working full time as Project Manager / Senior Developer at <a href="http://inchoo.net/">Inchoo</a> (in partnership with <a href="http://surgeworks.com/">Surgeworks</a>). My special interest and expertise evolve mainly around <strong>Magento</strong>, trough my everyday work on this eCommerce platform. As a result, I am skilled with Zend Framework, Doctrine ORM, general PHP programming patterns, etc. Besides standard server/client web apps, I am also involved in Google Android mobile application development with an emphasize on mobile eCommerce apps.&nbsp;</p>
<p>More about me?<br />
<a href="http://www.linkedin.com/in/brankoajzele"><img src="http://www.linkedin.com/img/webpromo/btn_viewmy_160x25.gif" border="0" alt="View Branko Ajzele's profile on LinkedIn" width="160" height="25" /></a></p>
</div>
</div>
</div>
</div>
</div>
<div>
<ul>
<li><a href="http://activecodeline.com/">Home</a></li>
<li><a title="Contact" href="http://activecodeline.com/contact">Contact</a></li>
<li><a title="Projects" href="http://activecodeline.com/projects">Projects</a></li>
<li><a title="The Office" href="http://activecodeline.com/the-office">The Office</a></li>
</ul>
<p id="copyright">Designed by  <a title="Elegant Themes" href="http://www.elegantthemes.com/">Elegant Themes</a> | Powered by  <a href="http://www.wordpress.org/">WordPress</a></p>
</div>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boxoblog.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boxoblog.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boxoblog.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boxoblog.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/boxoblog.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/boxoblog.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/boxoblog.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/boxoblog.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boxoblog.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boxoblog.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boxoblog.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boxoblog.wordpress.com/34/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boxoblog.wordpress.com/34/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boxoblog.wordpress.com/34/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=34&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://boxoblog.wordpress.com/2010/09/23/getting-things-in-magento-by-getmodel-and-getdata-methods/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccb8ca95b69cda0f1183a4d4c1c118d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">psylencer</media:title>
		</media:content>

		<media:content url="http://activecodeline.com/wp-content/uploads/2008/10/1-150x150.png" medium="image">
			<media:title type="html">1</media:title>
		</media:content>

		<media:content url="http://activecodeline.com/wp-content/uploads/2008/10/1f-150x150.png" medium="image">
			<media:title type="html">1f</media:title>
		</media:content>

		<media:content url="http://activecodeline.com/wp-content/uploads/2008/10/1f_b-150x150.png" medium="image">
			<media:title type="html">1f_b</media:title>
		</media:content>

		<media:content url="http://activecodeline.com/wp-content/uploads/2008/10/2-150x150.png" medium="image">
			<media:title type="html">2</media:title>
		</media:content>

		<media:content url="http://activecodeline.com/wp-content/uploads/2008/10/2f-150x150.png" medium="image">
			<media:title type="html">2f</media:title>
		</media:content>

		<media:content url="http://activecodeline.com/wp-content/uploads/2008/10/3-150x150.png" medium="image">
			<media:title type="html">3</media:title>
		</media:content>

		<media:content url="http://activecodeline.com/wp-content/uploads/2008/10/41-150x150.png" medium="image">
			<media:title type="html">41</media:title>
		</media:content>

		<media:content url="http://activecodeline.com/wp-content/uploads/2008/10/51-150x150.png" medium="image">
			<media:title type="html">51</media:title>
		</media:content>

		<media:content url="http://activecodeline.com/wp-content/uploads/2008/10/5_b-150x150.png" medium="image">
			<media:title type="html">5_b</media:title>
		</media:content>

		<media:content url="http://activecodeline.com/wp-content/uploads/2008/10/6-150x150.png" medium="image">
			<media:title type="html">6</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/dsq-loader.gif" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/embed/email.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/embed/bullet-feed.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://media.disqus.com/uploads/anonusers/340/8485/avatar32.jpg" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://media.disqus.com/uploads/anonusers/340/8485/avatar32.jpg" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://media.disqus.com/uploads/anonusers/577/7734/avatar32.jpg" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://media.disqus.com/uploads/anonusers/340/8485/avatar32.jpg" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://media.disqus.com/uploads/anonusers/114/4607/avatar32.jpg" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://media.disqus.com/uploads/anonusers/340/8485/avatar32.jpg" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://media.disqus.com/uploads/anonusers/340/8485/avatar32.jpg" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://media.disqus.com/uploads/anonusers/340/8485/avatar32.jpg" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://mediacdn.disqus.com/1089/images/noavatar32.png" medium="image" />

		<media:content url="http://mediacdn.disqus.com/1089/images/themes/narcissus/moderator.png" medium="image">
			<media:title type="html">Moderator</media:title>
		</media:content>

		<media:content url="http://activecodeline.com/wp-includes/images/rss.png" medium="image">
			<media:title type="html">RSS</media:title>
		</media:content>

		<media:content url="http://activecodeline.com/200x150_magento-ad-batch-print.jpg" medium="image" />

		<media:content url="http://activecodeline.com/myphoto.jpg" medium="image">
			<media:title type="html">Branko Ajzele</media:title>
		</media:content>

		<media:content url="http://www.linkedin.com/img/webpromo/btn_viewmy_160x25.gif" medium="image">
			<media:title type="html">View Branko Ajzele's profile on LinkedIn</media:title>
		</media:content>
	</item>
		<item>
		<title>Live Keyword Desnity / Percentage Calculator.  Calculate keyword density as you type.</title>
		<link>http://boxoblog.wordpress.com/2010/08/30/live-keyword-desnity-percentage-calculator-calculate-keyword-density-as-you-type/</link>
		<comments>http://boxoblog.wordpress.com/2010/08/30/live-keyword-desnity-percentage-calculator-calculate-keyword-density-as-you-type/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 02:41:44 +0000</pubDate>
		<dc:creator>psylencer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://boxoblog.wordpress.com/?p=28</guid>
		<description><![CDATA[Whether you believe it makes a difference, this tool enables you to see the keyword density of a document you are typing, while you are typing it.  I modified some original code from the following source : http://rainbow.arch.scriptmania.com/tools/word_counter.html The problem with the code above is that it does not calculate frequency percentage (useful if you [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=28&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<blockquote><p>Whether you believe it makes a difference, this tool enables you to see the keyword density of a document you are typing, while you are typing it.  I modified some original code from the following source : http://rainbow.arch.scriptmania.com/tools/word_counter.html</p>
<p>The problem with the code above is that it does not calculate frequency percentage (useful if you DO believe keyword density has something to do with SEO results) and secondly, it does not work live.  One has to click a button every time they wish to see what the density is like.</p>
<p>I modified the code above so that percentage, repetition count and order is displayed live, as you are typing.  This I find is useful if you have a target percentage for a given word you wish to reach or if you simply want analyze large chunks of code in order to run your own experiments on competitors.  Strangely enough, I DID find a STRONG correlation between keyword density and page position.   This was despite a wealth of opinions from various bloggers that keyword density makes no difference to search engine rankings.</p>
<p>Regardless of opinions, this tool allows you to conduct your own experiments and keep a tab on Keyword density (numbers and  percentages) as you are typing. it will also order the keywords from most used to least used as you type.</p>
<p>Again most of the credit goes to whom ever wrote the code on http://rainbow.arch.scriptmania.com/tools/word_counter.html &#8211; I simply modified the code to make it show percentages and display results live. Hope you find it useful.</p></blockquote>
<p>&lt;!doctype html public &#8220;-//w3c//dtd html 3.2//en&#8221;&gt;</p>
<p>&lt;html&gt;<br />
&lt;head&gt;</p>
<p>&lt;script language = &#8220;JavaScript&#8221;&gt;</p>
<p>function process1 (count)    {        // for words<br />
m=new Array(10000);<br />
m1=new Array(10000);<br />
N=new Array (10000);<br />
for (i=0;i&lt;=1;i++)        // which is chosen<br />
{    if ( count.radio1[i].checked)<br />
{    ch=i;<br />
}<br />
}</p>
<p>A=count.message.value;            // original message<br />
B=&#8221;";<br />
A=&#8221; &#8221; + A+&#8221; &#8220;;<br />
A=A.toUpperCase();        // changes all alphas to Upper case</p>
<p>for (i=1;i&lt;=A.length;i++)        //  trims leading spaces and multiple spaces<br />
{    if ((!(A.charAt(i)==&#8221; &#8220;)) || (!(A.charAt(i-1)==&#8221; &#8220;)))<br />
{B=B + A.charAt(i);<br />
}<br />
}<br />
//count.result1.value=B;<br />
B=B+&#8221; &#8220;;                // makes sure there is a space at end</p>
<p>k=0; str=&#8221; &#8220;;</p>
<p>for (i=0;i&lt;=B.length;i++)<br />
{    k1=B.indexOf(str,k);<br />
if (k1==-1)        //end of string B<br />
{    Numwords=i-1;<br />
break;<br />
}<br />
m[i+1]=B.substring(k,k1); // places all the words into an array m<br />
k=k1+1;<br />
}<br />
//count.result1.value=B;<br />
C=&#8221;";<br />
NN=0;<br />
for (i=1;i&lt;=Numwords; i++)    // Numwords is total number of words<br />
{    if (!(m[i]==&#8221;"))    // only looks at m1 words that have not been processed before (not empty)<br />
{    NN=NN+1;            //unique word stored in m1 array<br />
m1[NN]=m[i];<br />
N[NN]=1;            // initialize counter for word<br />
for (j=i+1;j&lt;=Numwords+1;j++)    //counts and makes m1 elements with unique word empty.<br />
{    if (m1[NN]==m[j])<br />
{    N[NN]=N[NN]+1;<br />
m[j]=&#8221;";<br />
}<br />
}<br />
}<br />
}<br />
C=C+&#8221;Unique:&#8221; + NN+&#8221;  Total:&#8221; + Numwords+&#8221;\n&#8221;;<br />
C=C+&#8221;Freq.\tWord\n&#8221;;<br />
for (i=1;i&lt;=NN;i++)        // sets up C for showing<br />
{<br />
C=C +  N[i]+ &#8220;\t&#8221; + m1[i] + &#8220;\n&#8221;;<br />
}<br />
count.result1.value=C;<br />
}</p>
<p>function roundNumber(num, dec) {<br />
var result = Math.round(num*Math.pow(10,dec))/Math.pow(10,dec);<br />
return result;<br />
}<br />
function sortfreq(count)    {    // sorts words according to frequency<br />
for (i=1;i&lt;=NN-1;i++)<br />
{    for (j=i+1;j&lt;=NN;j++)<br />
{    if (N[i]&lt;N[j])<br />
{    temp=m1[i];<br />
m1[i]=m1[j];<br />
m1[j]=temp;<br />
temp=N[i];<br />
N[i]=N[j];<br />
N[j]=temp;<br />
}<br />
}<br />
}<br />
C=&#8221;Unique words:&#8221; + NN+&#8221;  Total words:&#8221; + Numwords+&#8221;\n&#8221;;<br />
C=C+&#8221;Freq.\tWord\n&#8221;;<br />
for (i=1;i&lt;=NN;i++)<br />
{    C=C + roundNumber((N[i] / Numwords)*100,2) +&#8221;%\t&#8221;+ N[i]+ &#8220;\t&#8221; + m1[i] + &#8220;\n&#8221;;<br />
}<br />
count.result1.value=C;<br />
}</p>
<p>//&#8211; End<br />
&lt;/script&gt;</p>
<p>&lt;link rel=&#8221;stylesheet&#8221; href=&#8221;styletools.css&#8221; type=&#8221;text/css&#8221;&gt;<br />
&lt;/head&gt;</p>
<p>&lt;body&gt;<br />
&lt;FORM name =&#8221;count&#8221;&gt;<br />
&lt;h5&gt;&amp;nbsp;&lt;/h5&gt;&lt;BR&gt; &amp;nbsp;Count pure words&lt;INPUT type=&#8221;radio&#8221; name=&#8221;radio1&#8243; value=&#8221;1&#8243; CHECKED&gt;&amp;nbsp;&amp;nbsp;<br />
Count everything as words &lt;INPUT type =&#8221;radio&#8221; name=&#8221;radio1&#8243;  value=&#8221;0&#8243;&gt;&lt;BR&gt;</p>
<p>&lt;TABLE border=&#8221;0&#8243; cellPadding=&#8221;1&#8243; cellSpacing=&#8221;1&#8243;&gt;</p>
<p>&lt;TR&gt;<br />
&lt;TD&gt;&lt;INPUT id=&#8221;button1&#8243; name=&#8221;button1&#8243; onClick=&#8221;process1(document.count);sortfreq(document.count)&#8221; style=&#8221;height: 24px; width: 165px; font-weight: bold&#8221; type=&#8221;button&#8221; value=&#8221;COUNT WORDS&#8221;&gt;&lt;/TD&gt;<br />
&lt;/TR&gt;&lt;/TABLE&gt;&lt;BR&gt;<br />
&lt;STRONG&gt;&lt;font face=&#8221;Arial&#8221; color=&#8221;#000080&#8243;&gt;Input your text into the box below:&lt;/font&gt;&lt;/STRONG&gt;&lt;br&gt;&lt;TEXTAREA onKeyDown=&#8221;process1(document.count);sortfreq(document.count)&#8221; cols=99 name=message rows=12 style=&#8221;background-color: #ffffff; font-size: 10pt&#8221; wrap=PHYSICAL&gt;WORD COUNT INPUT BOX<br />
Enter your TEXT here.<br />
Control A to highlight all text in box.  Control V to paste text into box.  Control C to copy highlighted text.<br />
Javascript runs on your local client so resources are yours to allocate.  Larger files take longer.  Read the Technical Notes below before using.&lt;/TEXTAREA&gt;&amp;nbsp;&amp;nbsp;&lt;TEXTAREA cols=33 name=result1 rows=12 style=&#8221;font-size: 10pt; font-family: Arial&#8221; wrap=PHYSICAL&gt;WORD COUNT OUTPUT BOX&lt;/TEXTAREA&gt;<br />
&lt;BR&gt;&lt;input type=&#8221;reset&#8221; value=&#8221;Reset&#8221; name=&#8221;B1&#8243;&gt;</p>
<p>&lt;h2&gt;&amp;nbsp;&lt;/h2&gt;&lt;/FORM&gt;<br />
&lt;/body&gt;<br />
&lt;/html&gt;</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boxoblog.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boxoblog.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boxoblog.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boxoblog.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/boxoblog.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/boxoblog.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/boxoblog.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/boxoblog.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boxoblog.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boxoblog.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boxoblog.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boxoblog.wordpress.com/28/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boxoblog.wordpress.com/28/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boxoblog.wordpress.com/28/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=28&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://boxoblog.wordpress.com/2010/08/30/live-keyword-desnity-percentage-calculator-calculate-keyword-density-as-you-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccb8ca95b69cda0f1183a4d4c1c118d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">psylencer</media:title>
		</media:content>
	</item>
		<item>
		<title>Magento &#8211; shopping cart rules fail for users who aren&#8217;t logged in</title>
		<link>http://boxoblog.wordpress.com/2010/06/14/magento-shopping-cart-rules-fail-for-users-who-arent-logged-in/</link>
		<comments>http://boxoblog.wordpress.com/2010/06/14/magento-shopping-cart-rules-fail-for-users-who-arent-logged-in/#comments</comments>
		<pubDate>Mon, 14 Jun 2010 23:47:30 +0000</pubDate>
		<dc:creator>psylencer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://boxoblog.wordpress.com/?p=24</guid>
		<description><![CDATA[Just a heads up, hopefully Magento is listening.  If I apply a shopping cart rule for users who are &#8220;not logged in&#8221;, the magento system fails to add the product to the cart.  This does not seem to apply to users who are logged in or have created an account. Before you ask me to [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=24&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just a heads up, hopefully Magento is listening.  If I apply a shopping cart rule for users who are &#8220;not logged in&#8221;, the magento system fails to add the product to the cart.  This does not seem to apply to users who are logged in or have created an account.</p>
<p>Before you ask me to post somenthing to magento, I believe I&#8217;d have more chance of getting them to listen here that through their own forums.  Apparently magento tested this and could not reproduce the failure.  This begs the question, why are so many magento users reporting this problem?</p>
<p>Either magento have not read and thoroughly tested this failure, or we are all doing something wrong.  If anyone can shed any light on this subject, please let us know.</p>
<p>.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boxoblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boxoblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boxoblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boxoblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/boxoblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/boxoblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/boxoblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/boxoblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boxoblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boxoblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boxoblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boxoblog.wordpress.com/24/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boxoblog.wordpress.com/24/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boxoblog.wordpress.com/24/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=24&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://boxoblog.wordpress.com/2010/06/14/magento-shopping-cart-rules-fail-for-users-who-arent-logged-in/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccb8ca95b69cda0f1183a4d4c1c118d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">psylencer</media:title>
		</media:content>
	</item>
		<item>
		<title>How to : Magento – Payment Type Surcharge Without Paying for an Extension. (Part 2)</title>
		<link>http://boxoblog.wordpress.com/2010/03/17/how-to-magento-%e2%80%93-payment-type-surcharge-without-paying-for-an-extension-part-2/</link>
		<comments>http://boxoblog.wordpress.com/2010/03/17/how-to-magento-%e2%80%93-payment-type-surcharge-without-paying-for-an-extension-part-2/#comments</comments>
		<pubDate>Wed, 17 Mar 2010 00:57:00 +0000</pubDate>
		<dc:creator>psylencer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://boxoblog.wordpress.com/?p=19</guid>
		<description><![CDATA[Open app/code/core/Mage/SaleRule/Model/Validator.php Find the following about line 288 if ($cartRules[$rule-&#62;getId()] &#62; 0) { $quoteAmount        = $quote-&#62;getStore()-&#62;convertPrice($cartRules[$rule-&#62;getId()]); /** * We can&#8217;t use row total here because row total not include tax */ $discountAmount     = min($itemPrice*$qty &#8211; $item-&#62;getDiscountAmount(), $quoteAmount); $baseDiscountAmount = min($baseItemPrice*$qty &#8211; $item-&#62;getBaseDiscountAmount(), $cartRules[$rule-&#62;getId()]); $cartRules[$rule-&#62;getId()] -= $baseDiscountAmount; } $address-&#62;setCartFixedRules($cartRules); break; And replace with : (Note the [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=19&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Open app/code/core/Mage/SaleRule/Model/Validator.php</p>
<p>Find the following about line 288</strong></p>
<p>if ($cartRules[$rule-&gt;getId()] &gt; 0) {<br />
$quoteAmount        = $quote-&gt;getStore()-&gt;convertPrice($cartRules[$rule-&gt;getId()]);<br />
/**<br />
* We can&#8217;t use row total here because row total not include tax<br />
*/<br />
$discountAmount     = min($itemPrice*$qty &#8211; $item-&gt;getDiscountAmount(), $quoteAmount);<br />
$baseDiscountAmount = min($baseItemPrice*$qty &#8211; $item-&gt;getBaseDiscountAmount(), $cartRules[$rule-&gt;getId()]);<br />
$cartRules[$rule-&gt;getId()] -= $baseDiscountAmount;<br />
}<br />
$address-&gt;setCartFixedRules($cartRules);<br />
break;</p>
<p><strong>And replace with : (Note the small change in the first line from &gt; to &lt;&gt;)</strong></p>
<p>if ($cartRules[$rule-&gt;getId()] &lt;&gt; 0) {<br />
$quoteAmount        = $quote-&gt;getStore()-&gt;convertPrice($cartRules[$rule-&gt;getId()]);<br />
/**<br />
* We can&#8217;t use row total here because row total not include tax<br />
*/<br />
$discountAmount     = min($itemPrice*$qty &#8211; $item-&gt;getDiscountAmount(), $quoteAmount);<br />
$baseDiscountAmount = min($baseItemPrice*$qty &#8211; $item-&gt;getBaseDiscountAmount(), $cartRules[$rule-&gt;getId()]);<br />
$cartRules[$rule-&gt;getId()] -= $baseDiscountAmount;<br />
}<br />
$address-&gt;setCartFixedRules($cartRules);<br />
break;</p>
<p>And thats it.  I&#8217;ve not tested this fully yet.  Let me know how you go.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boxoblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boxoblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boxoblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boxoblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/boxoblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/boxoblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/boxoblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/boxoblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boxoblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boxoblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boxoblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boxoblog.wordpress.com/19/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boxoblog.wordpress.com/19/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boxoblog.wordpress.com/19/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=19&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://boxoblog.wordpress.com/2010/03/17/how-to-magento-%e2%80%93-payment-type-surcharge-without-paying-for-an-extension-part-2/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccb8ca95b69cda0f1183a4d4c1c118d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">psylencer</media:title>
		</media:content>
	</item>
		<item>
		<title>How to : Magento &#8211; Payment Type Surcharge Without Paying for an Extension.</title>
		<link>http://boxoblog.wordpress.com/2010/03/07/how-to-magento-payment-type-surcharge-without-paying-for-an-extension/</link>
		<comments>http://boxoblog.wordpress.com/2010/03/07/how-to-magento-payment-type-surcharge-without-paying-for-an-extension/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 23:32:20 +0000</pubDate>
		<dc:creator>psylencer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://boxoblog.wordpress.com/?p=10</guid>
		<description><![CDATA[Just though I would share this little tid bit for the benefit of all who have asked for this type of functionality from magento and not been prepared to pay $64 USD for an extension to do so. Just to clarify, this is a mod, not an extension.  Also, I&#8217;m not the worlds greatest Magento [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=10&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Just though I would share this little tid bit for the benefit of all who have asked for this type of functionality from magento and not been prepared to pay $64 USD for an extension to do so.</p>
<p>Just to clarify, this is a mod, not an extension.  Also, I&#8217;m not the worlds greatest Magento user and i&#8217;m sure there is a way of making an extension to do this.  But.. for the moment, the following instructional works very well and is very easy to do.</p>
<p>Usage:  Once mods have been made, admin users will be able to create a shopping cart rule &#8220;discount&#8221; which is not actually a discount based on a percentage of the value of their shopping cart.  I&#8217;m not going to educate you all how to make a shopping cart rule, but basically, until now there have been a few problems with using  shopping cart rules to apply a Surcharge.</p>
<p>The First. You can&#8217;t.  You can only enter a positive number as a percentage</p>
<p>The Second.  Magento in all their wisdom have an option to calculate the &#8220;discount&#8221; on shipping as well as shopping cart value, however the stupid system does not allow you to move the location of the &#8220;discount&#8221; / surcharge to after the shipping line.  This can be very confusing for customers trying to figure out how their &#8220;discount&#8221;/surcharge is calculated.</p>
<p>Lastly, again in all their Wisdom, Magento went and hard coded the word &#8220;Discount&#8221; in front of the name of your discount / surcharge.  So for instance if I wanted to add a surcharge using the mod below, it would read something like this :</p>
<p>(Discount) Credit Card Surcharge 1.5%  = $15.60</p>
<p>Obviously that is not the smartest way to do things which is surprising for an E-Commerce system which is supposed to be flexible. Did they need to hard code the word &#8220;Discount&#8221; especially given the fact one could easily pre pend  the word &#8220;discount&#8221; in the name of the  shopping cart rule if they wanted it displayed.</p>
<p>One more gripe before I proceed to the How to is the fact the only reason I wrote this is because Magento are so pathetically poor at answer extreemly simple questions such as this.  I could find absolutely no definitive solution to this issue other than to A) Pay Magento for support &#8211; which is laughable given how easy this was to resolve or B)Pay $64 for an extension.</p>
<p>And for the disclaimer.  This will involve very small modifications to core Magento files.  Always make backups before changing any of the files mentioned herin.  Also apparently it is illegal to apply Credit Card (or any other payment type for that matter) surcharges in some countries.  Check with your Merchant provider in your country to see if this is a problem.</p>
<p>Let me know if you have any questions and please provide credit if you intend on posting this elsewhere.</p>
<p>MAGNETO CHANGES :<br />
To create credit card surcharge :</p>
<p>Change the following file :<br />
app/code/core/Mage/rule/model/rule.php</p>
<p>Find :</p>
<p style="padding-left:30px;">protected function _beforeSave()<br />
{<br />
check if discount amount &gt; 0<br />
if ((int)$this-&gt;getDiscountAmount() &lt; 0) {<br />
Mage::throwException(Mage::helper(&#8216;rule&#8217;)-&gt;__(&#8216;Invalid discount amount.&#8217;));<br />
}</p>
<p>Change to :</p>
<p style="padding-left:30px;">protected function _beforeSave()<br />
{<br />
// check if discount amount &gt; 0<br />
//if ((int)$this-&gt;getDiscountAmount() &lt; 0) {<br />
//    Mage::throwException(Mage::helper(&#8216;rule&#8217;)-&gt;__(&#8216;Invalid discount amount.&#8217;));<br />
//}</p>
<p>Change the following file :<br />
app/code/core/Mage/Adminhtml/block/promo/quote/edit/tab/actions.php</p>
<p>Find :</p>
<p style="padding-left:30px;">$fieldset-&gt;addField(&#8216;discount_amount&#8217;, &#8216;text&#8217;, array(<br />
&#8216;name&#8217; =&gt; &#8216;discount_amount&#8217;,<br />
&#8216;required&#8217; =&gt; true,<br />
&#8216;class&#8217; =&gt; &#8216;validate-not-negative-number&#8217;,<br />
&#8216;label&#8217; =&gt; Mage::helper(&#8216;salesrule&#8217;)-&gt;__(&#8216;Discount amount&#8217;),</p>
<p>Change to :</p>
<p style="padding-left:30px;">$fieldset-&gt;addField(&#8216;discount_amount&#8217;, &#8216;text&#8217;, array(<br />
&#8216;name&#8217; =&gt; &#8216;discount_amount&#8217;,<br />
&#8216;required&#8217; =&gt; true,<br />
// &#8216;class&#8217; =&gt; &#8216;validate-not-negative-number&#8217;,<br />
&#8216;label&#8217; =&gt; Mage::helper(&#8216;salesrule&#8217;)-&gt;__(&#8216;Discount amount&#8217;),</p>
<p>Find :</p>
<p>app/locale/en_us/mage_sales.csv &lt;&#8211;you may be using a different language definition file folder ie /en_au &#8211; copy changed file to both folders.</p>
<p>This part is important : open the file in Excel the first column is the variable name, the second is the variable value.  ONLY CHANGE THE VARIABLE VALUE!! DO NOT CHANGE THE</p>
<p>VARIABLE <span style="text-decoration:underline;">NAME.</span></p>
<p>Find the row which says &#8220;Discount&#8221; in column 1 and &#8220;Discount&#8221; in column 2.<br />
Erase the value of Discount in Column 2 ie Column 1 should read &#8220;Discount&#8221;  (without the inverted commas) and column 2 should be empty.</p>
<p>The next step is optional and will depend if you want your surcharge to show AFTER shipping or before shipping.  The Magento default is to display discounts (surcharge) BEFORE shipping- regardless of whether you&#8217;ve opted to have your surcharge/discount applied to shipping in the admin console.  If you wish to have discount/surcharge displayed AFTER shipping, then proceed with the next step. Otherwise you&#8217;re all done.</p>
<p>Change the following file ***THIS STEP IS OPTIONAL AND IS SUITED TO VERSIONS LOWER THAN 1.4.01  For versions Later than 1.4.01 This change can be made via the admin console Admin -&gt;Sales &#8211; &gt;Checkout Total Sort Order.  Change &#8220;Shipping&#8221; to &#8220;20&#8243; and change the blank line above it to 30.</p>
<p>For versions prior to 1.4.01</p>
<p>app/code/core/Mage/Sales/etc/config.xml</p>
<p>Change the following :</p>
<p style="padding-left:30px;">&lt;totals_sort&gt;<br />
&lt;discount&gt;20&lt;/discount&gt;<br />
&lt;grand_total&gt;100&lt;/grand_total&gt;<br />
&lt;shipping&gt;30&lt;/shipping&gt;<br />
&lt;subtotal&gt;10&lt;/subtotal&gt;<br />
&lt;tax&gt;40&lt;/tax&gt;<br />
&lt;/totals_sort&gt;</p>
<p>To:</p>
<p style="padding-left:30px;">&lt;totals_sort&gt;<br />
&lt;discount&gt;30&lt;/discount&gt;<br />
&lt;grand_total&gt;100&lt;/grand_total&gt;<br />
&lt;shipping&gt;20&lt;/shipping&gt;<br />
&lt;subtotal&gt;10&lt;/subtotal&gt;<br />
&lt;tax&gt;40&lt;/tax&gt;<br />
&lt;/totals_sort&gt;</p>
<p>All Done.  You should now be able to set negative values in the &#8220;Shopping Cart Price Rules&#8221; from your admin console.  Make sure all rule names are descriptive so your customers know what is going on.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boxoblog.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boxoblog.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boxoblog.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boxoblog.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/boxoblog.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/boxoblog.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/boxoblog.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/boxoblog.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boxoblog.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boxoblog.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boxoblog.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boxoblog.wordpress.com/10/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boxoblog.wordpress.com/10/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boxoblog.wordpress.com/10/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=10&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://boxoblog.wordpress.com/2010/03/07/how-to-magento-payment-type-surcharge-without-paying-for-an-extension/feed/</wfw:commentRss>
		<slash:comments>43</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccb8ca95b69cda0f1183a4d4c1c118d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">psylencer</media:title>
		</media:content>
	</item>
		<item>
		<title>Categorisation Categorization, Search engines and tagging. Alternative anyone?</title>
		<link>http://boxoblog.wordpress.com/2010/03/07/categorisation-categorization-search-engines-and-tagging-alternative-anyone/</link>
		<comments>http://boxoblog.wordpress.com/2010/03/07/categorisation-categorization-search-engines-and-tagging-alternative-anyone/#comments</comments>
		<pubDate>Sun, 07 Mar 2010 22:52:29 +0000</pubDate>
		<dc:creator>psylencer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://boxoblog.wordpress.com/?p=6</guid>
		<description><![CDATA[Why do we keep plates in the kitchen, clothes in our cupboards with socks in the top drawer?  Humans call this categorization.  The process of organizing our life into logical boundaries, allowing us to find the things we need without having to think logically about it again (should we remember for instance that socks are [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=6&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Why do we keep plates in the kitchen, clothes in our cupboards with socks in the top drawer?  Humans call this categorization.  The process of organizing our life into logical boundaries, allowing us to find the things we need without having to think logically about it again (should we remember for instance that socks are kept in the top drawer).</p>
<p>&#8220;Categorization isn&#8217;t about what you or I think you know; its about stuff making sense. The purpose in the most practical and relevant sense to myself is allowing my customers to find the products they are looking for while allowing those who don&#8217;t know what they&#8217;re looking for to browse for ideas and settle upon something relevant and meaningful; all while spending as little time doing so as absolutely necessary. Both ideas can be serviced separately with existing technology, however the technology generally works in competition with the alternative, instead of working for the alternative.</p>
<p>OK you ask. But how can I make life easy for my customers, clients, readers or otherwise?</p>
<p>Lets just assume everyone thinks the way I do.  Lets assume I am the best judge of everyone else and make them think the way I do: Traditional Categorization.</p>
<p>Lets assume they know what they&#8217;re looking for :Traditional search engine.</p>
<p>Lets assume they will &#8220;Tag&#8221; everything they look at logically; all of them:Traditional tagging</p>
<p>These are the most popular ways of ordering products logically.</p>
<p>Lets start with the pros and cons of each:</p>
<p>Categorization:</p>
<p>Pros:</p>
<p>Logical to at least one user,<br />
Can be logical to many users,<br />
Most accepted method of finding products,<br />
Cons:</p>
<p>Can be under considered or over considered by both the user and categorizer.<br />
Assumes knowledge,<br />
Regardless of effort or consideration, can be confusing for users,<br />
Is not practical for large product databases or companies/businesses without resources to invest,<br />
Involves manual category mapping from suppliers some of which may have 1000&#8242;s of category combinations,</p>
<p>Search Engines:</p>
<p>Pros:</p>
<p>Flexible,<br />
Little or no assumed knowledge,<br />
Requires little effort or resources to categories,<br />
Cheap and efficient to implement,</p>
<p>Cons:</p>
<p>Inaccurate,<br />
Indexed by computers,<br />
Cumbersome to use and achieves desired results from both users and those who wish users to find information,</p>
<p>Tagging (Tags):</p>
<p>Pros;<br />
Easy to implement,<br />
By nature intuitive,<br />
Accurate (ideally),</p>
<p>Cons:</p>
<p>Requires assumed knowledge from the user,<br />
Assumed unrealistic effort from the user,<br />
Can be completely inaccurate for the previous reason,<br />
is not efficient, for the user which negates its purpose,<br />
Requires dedication or loyalty or status from the user to work at best.</p>
<p>As you can see the pros of all these methods don&#8217;t outweigh the pros.  All methods are far from perfect and the most popular is most probably the worst.</p>
<p>Why is the worst solution the most meaningful to most humans of all these methods?  We&#8217;re still monkeys, but its time to think modern. I believe this crap way of &#8220;finding relevance&#8221;  is prehistoric and animal like.</p>
<p>Solution prerequisites:</p>
<p>Easy to implement,<br />
Easy to use,<br />
Requires little ongoing human resources to maintain,<br />
Is not based on assumed knowledge,<br />
Is accurate for most,<br />
Feasible to sites with large regularly changing databases and those who source datafeeds from multiple suppliers.</p>
<p>Or; lets work with all of those ideas to create  a way of categorizing anything in a more logical way;</p>
<p><span style="color:#ff6600;"><strong>To Be Continued.   In Part 2 I will discuss a possible solution to this problem which answers all of the above solution prerequisites.</strong></span></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boxoblog.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boxoblog.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boxoblog.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boxoblog.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/boxoblog.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/boxoblog.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/boxoblog.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/boxoblog.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boxoblog.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boxoblog.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boxoblog.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boxoblog.wordpress.com/6/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boxoblog.wordpress.com/6/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boxoblog.wordpress.com/6/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=6&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://boxoblog.wordpress.com/2010/03/07/categorisation-categorization-search-engines-and-tagging-alternative-anyone/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccb8ca95b69cda0f1183a4d4c1c118d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">psylencer</media:title>
		</media:content>
	</item>
		<item>
		<title>Introduction</title>
		<link>http://boxoblog.wordpress.com/2009/10/31/introduction/</link>
		<comments>http://boxoblog.wordpress.com/2009/10/31/introduction/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 11:37:11 +0000</pubDate>
		<dc:creator>psylencer</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://boxoblog.wordpress.com/?p=4</guid>
		<description><![CDATA[Everyone gets surprised.  I&#8217;m relatively young (30). Have a missus and 3 kids all under 3.  Nothing surprising. I&#8217;m one of those nobody&#8217;s who thinks they have an idea. Research, persist with and think I&#8217;ve got the answer, only a few months later to find out some one else had a better idea.  This blog [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=4&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Everyone gets surprised.  I&#8217;m relatively young (30). Have a missus and 3 kids all under 3.  Nothing surprising. I&#8217;m one of those nobody&#8217;s who thinks they have an idea. Research, persist with and think I&#8217;ve got the answer, only a few months later to find out some one else had a better idea.  This blog is to publicize the benefit of an unusual persistence; in the hope others like me will get the answers they need.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/boxoblog.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/boxoblog.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/boxoblog.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/boxoblog.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/boxoblog.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/boxoblog.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/boxoblog.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/boxoblog.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/boxoblog.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/boxoblog.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/boxoblog.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/boxoblog.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/boxoblog.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/boxoblog.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=boxoblog.wordpress.com&amp;blog=10210044&amp;post=4&amp;subd=boxoblog&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://boxoblog.wordpress.com/2009/10/31/introduction/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/ccb8ca95b69cda0f1183a4d4c1c118d2?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">psylencer</media:title>
		</media:content>
	</item>
	</channel>
</rss>
