<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Amjath.com</title>
	<atom:link href="http://amjath.com/feed" rel="self" type="application/rss+xml" />
	<link>http://amjath.com</link>
	<description>Tech Blog</description>
	<lastBuildDate>Sun, 24 Feb 2013 07:09:00 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Get Cart Items in Magento</title>
		<link>http://amjath.com/2013/02/get-cart-items-in-magento.html</link>
		<comments>http://amjath.com/2013/02/get-cart-items-in-magento.html#comments</comments>
		<pubDate>Sun, 24 Feb 2013 07:01:47 +0000</pubDate>
		<dc:creator>Amjath B Jayakumar</dc:creator>
				<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://amjath.com/?p=204</guid>
		<description><![CDATA[Use the below code to get All cart items in Magento $cartHelper = Mage::helper('checkout/cart'); $items = $cartHelper-&#62;getCart()-&#62;getItems(); foreach ($items as $item) { echo $item-&#62;getItemId(); } Cheers! Amjath]]></description>
				<content:encoded><![CDATA[<p>Use the below code to get All cart items in Magento</p>
<pre>$cartHelper = Mage::helper('checkout/cart');
$items = $cartHelper-&gt;getCart()-&gt;getItems();

foreach ($items as $item) {
echo $item-&gt;getItemId();
}</pre>
<p>Cheers!<br />
Amjath</p>
]]></content:encoded>
			<wfw:commentRss>http://amjath.com/2013/02/get-cart-items-in-magento.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get subtotal and grand total in Magento</title>
		<link>http://amjath.com/2012/06/get-subtotal-and-grand-total-in-magento.html</link>
		<comments>http://amjath.com/2012/06/get-subtotal-and-grand-total-in-magento.html#comments</comments>
		<pubDate>Sun, 24 Jun 2012 19:36:19 +0000</pubDate>
		<dc:creator>Amjath B Jayakumar</dc:creator>
		
		<guid isPermaLink="false">http://amjath.com/?p=202</guid>
		<description><![CDATA[Use the below code to subtotal and grand total of cart in Magento $sub_total = Mage::getModel('checkout/cart')->getQuote()->getSubtotal(); $grand_total = Mage::getModel('checkout/cart')->getQuote()->getGrandTotal(); Cheers! Amjath]]></description>
				<content:encoded><![CDATA[<p>Use the below code to subtotal and grand total of cart in Magento</p>
<pre>$sub_total = Mage::getModel('checkout/cart')->getQuote()->getSubtotal();
$grand_total = Mage::getModel('checkout/cart')->getQuote()->getGrandTotal();</pre>
<p>Cheers!<br />
Amjath</p>
]]></content:encoded>
			<wfw:commentRss>http://amjath.com/2012/06/get-subtotal-and-grand-total-in-magento.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Unable to send mails in Magento</title>
		<link>http://amjath.com/2012/06/unable-to-send-mails-in-magento.html</link>
		<comments>http://amjath.com/2012/06/unable-to-send-mails-in-magento.html#comments</comments>
		<pubDate>Thu, 14 Jun 2012 19:49:32 +0000</pubDate>
		<dc:creator>Amjath B Jayakumar</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://amjath.com/?p=195</guid>
		<description><![CDATA[Some days back, I came across an issue. No mails from Magento are sent successfully and Magento is not throwing any error message in the front end. First I thought its something related to the server and checked if the sendmail is installed properly. Then tested with a simple php sendmail function which successfully delivered [...]]]></description>
				<content:encoded><![CDATA[<p>Some days back, I came across an issue. No mails from Magento are sent successfully and Magento is not throwing any error message in the front end. First I thought its something related to the server and checked if the sendmail is installed properly. Then tested with a simple php sendmail function which successfully delivered the email. So I went into the log and found the following error was logged in the exception.log file.</p>
<pre>exception 'Exception' with message 'This letter cannot be sent.' in /app/code/core/Mage/Core/Model/Email/Template.php:398</pre>
<p>The issue was rather simple. Someone has disabled the email communication for testing purpose from the backed. And emails were sent when the option is enabled <img src='http://amjath.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p><img class="alignnone size-full wp-image-196" title="magento_email_disabled" src="http://amjath.com/wp-content/uploads/2012/06/magento_email_disabled.jpg" alt="" width="667" height="489" /></p>
<p>Cheers!<br />
Amjath</p>
]]></content:encoded>
			<wfw:commentRss>http://amjath.com/2012/06/unable-to-send-mails-in-magento.html/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Get Region name from RegionId in Magento</title>
		<link>http://amjath.com/2012/06/get-region-name-from-regionid-in-magento.html</link>
		<comments>http://amjath.com/2012/06/get-region-name-from-regionid-in-magento.html#comments</comments>
		<pubDate>Thu, 14 Jun 2012 19:18:22 +0000</pubDate>
		<dc:creator>Amjath B Jayakumar</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://amjath.com/?p=184</guid>
		<description><![CDATA[Use the below code to get the Region name from RegionId in Magento in magento $region = Mage::getModel('directory/region')-&#62;load('region_id'); $regionName = $regionModel-&#62;getName(); Cheers! Amjath]]></description>
				<content:encoded><![CDATA[<p>Use the below code to get the Region name from RegionId in Magento in magento</p>
<pre>$region = Mage::getModel('directory/region')-&gt;load('region_id');
$regionName = $regionModel-&gt;getName();</pre>
<p>Cheers!<br />
Amjath</p>
]]></content:encoded>
			<wfw:commentRss>http://amjath.com/2012/06/get-region-name-from-regionid-in-magento.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Country name from Country Code in Magento</title>
		<link>http://amjath.com/2012/06/get-country-name-from-country-code-in-magento.html</link>
		<comments>http://amjath.com/2012/06/get-country-name-from-country-code-in-magento.html#comments</comments>
		<pubDate>Thu, 14 Jun 2012 19:15:25 +0000</pubDate>
		<dc:creator>Amjath B Jayakumar</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://amjath.com/?p=186</guid>
		<description><![CDATA[Use the below code to get the Country Name from Country Code in magento $country = Mage::getModel('directory/country')-&#62;loadByCode('country_code'); $countryName = $countryModel-&#62;getName(); Cheers! Amjath]]></description>
				<content:encoded><![CDATA[<p>Use the below code to get the Country Name from Country Code in magento</p>
<pre>$country = Mage::getModel('directory/country')-&gt;loadByCode('country_code');
$countryName = $countryModel-&gt;getName();</pre>
<p>Cheers!<br />
Amjath</p>
]]></content:encoded>
			<wfw:commentRss>http://amjath.com/2012/06/get-country-name-from-country-code-in-magento.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Current Category Id in Magento</title>
		<link>http://amjath.com/2012/05/get-current-category-id-in-magento.html</link>
		<comments>http://amjath.com/2012/05/get-current-category-id-in-magento.html#comments</comments>
		<pubDate>Fri, 25 May 2012 18:48:26 +0000</pubDate>
		<dc:creator>Amjath B Jayakumar</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://amjath.com/?p=178</guid>
		<description><![CDATA[Use the below code to get the current category id category ID in magento echo Mage::getModel('catalog/layer')-&#62;getCurrentCategory()-&#62;getId(); Cheers! Amjath]]></description>
				<content:encoded><![CDATA[<p>Use the below code to get the current category id category ID in magento</p>
<pre> echo Mage::getModel('catalog/layer')-&gt;getCurrentCategory()-&gt;getId(); </pre>
<p>Cheers!<br />
Amjath</p>
]]></content:encoded>
			<wfw:commentRss>http://amjath.com/2012/05/get-current-category-id-in-magento.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Get Category Url from ID in Magento</title>
		<link>http://amjath.com/2012/05/get-category-url-from-id-in-magento.html</link>
		<comments>http://amjath.com/2012/05/get-category-url-from-id-in-magento.html#comments</comments>
		<pubDate>Fri, 25 May 2012 18:44:12 +0000</pubDate>
		<dc:creator>Amjath B Jayakumar</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://amjath.com/?p=174</guid>
		<description><![CDATA[Use the below code to get the category url from the category ID in magento $category_id = 14; Mage::getModel("catalog/category")-&#62;load($category_id)-&#62;getUrl(); Cheers! Amjath]]></description>
				<content:encoded><![CDATA[<p>Use the below code to get the category url from the category ID in magento</p>
<pre>
$category_id = 14;
Mage::getModel("catalog/category")-&gt;load($category_id)-&gt;getUrl();
</pre>
<p>Cheers!<br />
Amjath</p>
]]></content:encoded>
			<wfw:commentRss>http://amjath.com/2012/05/get-category-url-from-id-in-magento.html/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>How to add a class to body in magento</title>
		<link>http://amjath.com/2012/03/how-to-add-a-class-to-body-in-magento.html</link>
		<comments>http://amjath.com/2012/03/how-to-add-a-class-to-body-in-magento.html#comments</comments>
		<pubDate>Wed, 07 Mar 2012 16:47:51 +0000</pubDate>
		<dc:creator>Amjath B Jayakumar</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://amjath.com/?p=165</guid>
		<description><![CDATA[To add a new class to the body tag in Magento,  use the code below in the design layout &#60;reference name="root"&#62; &#60;action method="addBodyClass"&#62;&#60;className&#62;new-class-name&#60;/className&#62;&#60;/action&#62; &#60;/reference&#62; Cheers! Amjath]]></description>
				<content:encoded><![CDATA[<p>To add a new class to the body tag in Magento,  use the code below in the design layout</p>
<pre>&lt;reference name="root"&gt;
&lt;action method="addBodyClass"&gt;&lt;className&gt;new-class-name&lt;/className&gt;&lt;/action&gt;
&lt;/reference&gt;</pre>
<p>Cheers!<br />
Amjath</p>
]]></content:encoded>
			<wfw:commentRss>http://amjath.com/2012/03/how-to-add-a-class-to-body-in-magento.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to find location of any IP address</title>
		<link>http://amjath.com/2011/02/how-to-find-location-of-any-ip-address.html</link>
		<comments>http://amjath.com/2011/02/how-to-find-location-of-any-ip-address.html#comments</comments>
		<pubDate>Sun, 20 Feb 2011 17:34:09 +0000</pubDate>
		<dc:creator>Amjath B Jayakumar</dc:creator>
		
		<guid isPermaLink="false">http://ispider.in/?p=133</guid>
		<description><![CDATA[IP Fingerprints helps to find the location of any IP address. It uses the google map to show the location of the IP. It also shows the following details Country City State Area Code Zip Code ISP Longitude Latitude and more On visiting the site, it will show the location of the visitors ip address. [...]]]></description>
				<content:encoded><![CDATA[<p><a href="http://www.ipfingerprints.com">IP Fingerprints</a> helps to find the location of any IP address. It uses the google map to show the location of the IP. It also shows the following details</p>
<ol>
<li>Country</li>
<li>City</li>
<li>State</li>
<li>Area Code</li>
<li>Zip Code</li>
<li>ISP</li>
<li>Longitude</li>
<li>Latitude and more</li>
</ol>
<p><img class="alignnone size-full wp-image-137" title="IPFingerprints" src="http://amjath.com/wp-content/uploads/2011/02/IPFingerprints1.jpg" alt="" width="400" height="379" /></p>
<p>On visiting the site, it will show the location of the visitors ip address. To get details of other ip address, enter the ip address in the space as shown in the image and click on &#8216;Discover&#8217;. IP Fingerprints will get the job done.</p>
<p>Click <a href="http://www.ipfingerprints.com">here</a> to visit IP Fingerprints</p>
]]></content:encoded>
			<wfw:commentRss>http://amjath.com/2011/02/how-to-find-location-of-any-ip-address.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery Lightbox Install Instructions</title>
		<link>http://amjath.com/2011/02/lightbox-install-instructions.html</link>
		<comments>http://amjath.com/2011/02/lightbox-install-instructions.html#comments</comments>
		<pubDate>Thu, 17 Feb 2011 14:08:42 +0000</pubDate>
		<dc:creator>Amjath B Jayakumar</dc:creator>
		
		<guid isPermaLink="false">http://ispider.in/?p=71</guid>
		<description><![CDATA[Lightbox is a very neat, simple and proffessional looking juqery script which can be used for photo galleries. Setting up lightbox in very simple 1. Download the lightbox file and extract 2. Upload the .js files to the js folder and the css files to the css directory 3. Now add the codes in the [...]]]></description>
				<content:encoded><![CDATA[<p>Lightbox is a very neat, simple and proffessional looking juqery script which can be used for photo galleries.</p>
<p>Setting up lightbox in very simple</p>
<p>1. <a href="http://ispider.in/downloads/lightbox2.04.zip">Download the lightbox file</a> and extract<br />
2. Upload the .js files to the js folder and the css files to the css directory<br />
3. Now add the codes in the header to include the js files.</p>
<pre>&lt;script type="text/javascript" src="js/jquery.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="js/jquery.lightbox-0.4.js"&gt;&lt;/script&gt;</pre>
<p>4.Now add the below code in the header to include the css file.</p>
<pre>&lt;link rel="stylesheet" type="text/css" href="css/jquery.lightbox-0.4.css" media="screen" /&gt;</pre>
<p>5. All the files are included. Now we need to activate the jquery. The style should be</p>
<pre>&lt;a href="IMAGEURL" title="DISPLAY TEXT"&gt;&lt;img src="THUMBNAILURL" alt="" /&gt;&lt;/a&gt;
</pre>
<p>6.Now add the attribute rell=&#8221;lightbox&#8221; to the &lt;a&gt;tag. Remember the main image should come inside the link and the thumb or small image should be inside the &lt;a&gt; tag. So that the small image will be shown and when the user clicks on the small image, the main image will be shown with the lightbox animation. The title attribute will be shown as the caption.</p>
<pre>&lt;a href="images/image.jpg" rel="lightbox" title="sample text"&gt;&lt;img src="images/image_thumb.jpg" /&gt;&lt;/a&gt;</pre>
<p>7.If you need to show the image groupwise, use the following methord</p>
<pre>
&lt;a href="images/image1.jpg" rel="lightbox[group1]" title="sample text"&gt;&lt;img src="images/image_thumb1.jpg" /&gt;&lt;/a&gt;
&lt;a href="images/image2.jpg" rel="lightbox[group1]" title="sample text"&gt;&lt;img src="images/image_thumb2.jpg" /&gt;&lt;/a&gt;
&lt;a href="images/image3.jpg" rel="lightbox[group1]" title="sample text"&gt;&lt;img src="images/image_thumb3.jpg" /&gt;&lt;/a&gt;
&lt;a href="images/image4.jpg" rel="lightbox[group2]" title="sample text"&gt;&lt;img src="images/image_thumb4.jpg" /&gt;&lt;/a&gt;
&lt;a href="images/image5.jpg" rel="lightbox[group2]" title="sample text"&gt;&lt;img src="images/image_thumb5.jpg" /&gt;&lt;/a&gt;
&lt;a href="images/image6.jpg" rel="lightbox[group2]" title="sample text"&gt;&lt;img src="images/image_thumb6.jpg" /&gt;&lt;/a&gt;
</pre>
<p>A demo for lighbox will be shown in this post soon. Kindly check back later.</p>
]]></content:encoded>
			<wfw:commentRss>http://amjath.com/2011/02/lightbox-install-instructions.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
