<?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>Kathir Vel</title>
	<atom:link href="http://kathirvel.co.uk/feed/" rel="self" type="application/rss+xml" />
	<link>http://kathirvel.co.uk</link>
	<description>Digital strategy consultant who helps businesses build their brand and increase revenue</description>
	<lastBuildDate>Wed, 27 Aug 2014 17:15:00 +0000</lastBuildDate>
	<language>en-GB</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.9.2</generator>
	<item>
		<title>Magento&#8217;s Scriptaculous Folder Went Missing After An Upgrade</title>
		<link>http://kathirvel.co.uk/magentos-scriptaculous-folder-went-missing-after-an-upgrade/</link>
		<comments>http://kathirvel.co.uk/magentos-scriptaculous-folder-went-missing-after-an-upgrade/#comments</comments>
		<pubDate>Wed, 27 Aug 2014 17:13:27 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=1118</guid>
		<description><![CDATA[<p>Post one particular Magento eCommerce website upgrade,  [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magentos-scriptaculous-folder-went-missing-after-an-upgrade/">Magento&#8217;s Scriptaculous Folder Went Missing After An Upgrade</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Post one particular Magento eCommerce website upgrade, all the following Scriptaculous JavaScript files from Magento&#8217;s JS library disappeared. I guess it must be due to some update routine.</p>
<p>Chrome&#8217;s Inspect Element flagged up the following files as returning a <strong>404 Page Not Found</strong> error.</p>
<p>js/scriptaculous/builder.js<br />
js/scriptaculous/effects.js<br />
js/scriptaculous/dragdrop.js<br />
js/scriptaculous/controls.js<br />
js/scriptaculous/slider.js</p>
<p>The solution was to just download a fresh copy of Magento (<a title="Magento Download" href="http://www.magentocommerce.com/download" target="_blank">http://www.magentocommerce.com/download</a>) and restore the js/scriptaculous/ folder.</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magentos-scriptaculous-folder-went-missing-after-an-upgrade/">Magento&#8217;s Scriptaculous Folder Went Missing After An Upgrade</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magentos-scriptaculous-folder-went-missing-after-an-upgrade/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Check and Find the Product Type (Simple, Configurable, Grouped, etc.)</title>
		<link>http://kathirvel.co.uk/magento-find-switch-product-type/</link>
		<comments>http://kathirvel.co.uk/magento-find-switch-product-type/#comments</comments>
		<pubDate>Tue, 13 May 2014 17:50:47 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=919</guid>
		<description><![CDATA[<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-find-switch-product-type/">Magento &#8211; Check and Find the Product Type (Simple, Configurable, Grouped, etc.)</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
&lt;?php
switch ($product-&gt;getTypeId()) {
    case Mage_Catalog_Model_Product_Type::TYPE_SIMPLE:
        // Do something
        break;
    case Mage_Catalog_Model_Product_Type::TYPE_BUNDLE:
        // Do something
        break;
    case Mage_Catalog_Model_Product_Type::TYPE_CONFIGURABLE:
        // Do something
        break;
    case Mage_Catalog_Model_Product_Type::TYPE_GROUPED:
        // Do something
        break;
    case Mage_Catalog_Model_Product_Type::TYPE_VIRTUAL:
        // Do something
        break;
}
?&gt;
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-find-switch-product-type/">Magento &#8211; Check and Find the Product Type (Simple, Configurable, Grouped, etc.)</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-find-switch-product-type/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Flash / Session Notification Messages</title>
		<link>http://kathirvel.co.uk/magento-core-session-messages/</link>
		<comments>http://kathirvel.co.uk/magento-core-session-messages/#comments</comments>
		<pubDate>Tue, 13 May 2014 17:46:38 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=943</guid>
		<description><![CDATA[<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-core-session-messages/">Magento &#8211; Flash / Session Notification Messages</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
&lt;?php
Mage::getSingleton('core/session')-&gt;addError('Success Message');
Mage::getSingleton('core/session')-&gt;addWarning('Success Message');
Mage::getSingleton('core/session')-&gt;addNotice('Success Message');
Mage::getSingleton('core/session')-&gt;addSuccess('Success Message');
?&gt;
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-core-session-messages/">Magento &#8211; Flash / Session Notification Messages</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-core-session-messages/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Senior WordPress Developer in Edinburgh</title>
		<link>http://kathirvel.co.uk/wordpress-developer-edinburgh/</link>
		<comments>http://kathirvel.co.uk/wordpress-developer-edinburgh/#comments</comments>
		<pubDate>Tue, 13 May 2014 01:53:18 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Et Cetera]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=1088</guid>
		<description><![CDATA[<p>I have been working on small to large scale WordPress w [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/wordpress-developer-edinburgh/">Senior WordPress Developer in Edinburgh</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>I have been working on small to large scale WordPress website projects since 2007.</p>
<h2>WordPress SEO</h2>
<p>I have in-depth and up-to-date experience with search engine optimisation and I can offer guidance and help with optimising your WordPress website or blog for Google.</p>
<h2>WordPress Training</h2>
<p>I provide WordPress training for business and personal blog website owners.</p>
<p>If you are looking for a senior Wordpress developer in Edinburgh, Glasgow or anywhere in Scotland or the UK, get in touch with me for a free quote.</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/wordpress-developer-edinburgh/">Senior WordPress Developer in Edinburgh</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/wordpress-developer-edinburgh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Senior Magento Developer in Edinburgh</title>
		<link>http://kathirvel.co.uk/magento-developer-edinburgh/</link>
		<comments>http://kathirvel.co.uk/magento-developer-edinburgh/#comments</comments>
		<pubDate>Sat, 10 May 2014 15:58:09 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Et Cetera]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=1083</guid>
		<description><![CDATA[<p>I have been working on Magento eCommerce website projec [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-developer-edinburgh/">Senior Magento Developer in Edinburgh</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>I have been working on Magento eCommerce website projects since Magento&#8217;s launch in 2008.</p>
<h2>Magento Extension Developer</h2>
<p>I can offer bespoke Magento module development.</p>
<h2>Magento Training Provider</h2>
<p>I provide Magento training for e-tailers and website owners.</p>
<p>If you are looking for a Magento developer in Edinburgh, Glasgow or anywhere in Scotland or the UK, feel free get in touch with me for a free quote.</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-developer-edinburgh/">Senior Magento Developer in Edinburgh</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-developer-edinburgh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Laravel &#8211; Validate Multiple Models and Combine All Error Messages</title>
		<link>http://kathirvel.co.uk/laravel-validation-merge-error-messages/</link>
		<comments>http://kathirvel.co.uk/laravel-validation-merge-error-messages/#comments</comments>
		<pubDate>Wed, 30 Apr 2014 21:53:27 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Laravel 4]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=1075</guid>
		<description><![CDATA[<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/laravel-validation-merge-error-messages/">Laravel &#8211; Validate Multiple Models and Combine All Error Messages</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
&lt;?php

$validateUser = Validator::make(Input::all(), User::$rules);

$validateRole = Validator::make(Input::all(), Role::$rules);

if ($validateUser-&gt;fails() OR $validateRole-&gt;fails()) :

    $validationMessages = array_merge_recursive($validateUser-&gt;messages()-&gt;toArray(), $validateRole-&gt;messages()-&gt;toArray());
    
    return Redirect::back()-&gt;withErrors($validationMessages)-&gt;withInput();
    
endif;

?&gt;
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/laravel-validation-merge-error-messages/">Laravel &#8211; Validate Multiple Models and Combine All Error Messages</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/laravel-validation-merge-error-messages/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Run an Event or Function After System Configuration Save</title>
		<link>http://kathirvel.co.uk/magento-run-an-event-or-function-after-system-save-config/</link>
		<comments>http://kathirvel.co.uk/magento-run-an-event-or-function-after-system-save-config/#comments</comments>
		<pubDate>Mon, 17 Mar 2014 09:51:43 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=1052</guid>
		<description><![CDATA[<p>Open the config.xml of your module and add an event wit [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-run-an-event-or-function-after-system-save-config/">Magento &#8211; Run an Event or Function After System Configuration Save</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Open the config.xml of your module and add an event within the global declaration.</p>
<pre class="brush: xml; title: ; notranslate">
&lt;global&gt;
    &lt;events&gt;
        &lt;admin_system_config_changed_section_nameofyoursection&gt;
            &lt;observers&gt;
                &lt;yourmodule&gt;
                    &lt;type&gt;singleton&lt;/type&gt;
                    &lt;class&gt;yourmodule/observer&lt;/class&gt;
                    &lt;method&gt;adminSystemConfigChangedSectionNameofyoursection&lt;/method&gt;
                &lt;/yourmodule&gt;
            &lt;/observers&gt;
        &lt;/admin_system_config_changed_section_nameofyoursection&gt;
    &lt;/events&gt;
&lt;/global&gt;
</pre>
<p>Now create a PHP file, Observer.php, under your module&#8217;s Model folder. Model/Observer.php. Add the following code.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php
class Your_Module_Model_Observer
{

    public function adminSystemConfigChangedSectionNameofyoursection()
    {
        // Do something here - e.g. send an email, log the action, etc.
    }

}
?&gt;
</pre>
<p>Make sure you clear Magento&#8217;s cache before testing the code.</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-run-an-event-or-function-after-system-save-config/">Magento &#8211; Run an Event or Function After System Configuration Save</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-run-an-event-or-function-after-system-save-config/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Check if Product Exists by Getting Product ID from SKU</title>
		<link>http://kathirvel.co.uk/magento-check-if-product-exists-get-product-id-from-sku/</link>
		<comments>http://kathirvel.co.uk/magento-check-if-product-exists-get-product-id-from-sku/#comments</comments>
		<pubDate>Mon, 10 Mar 2014 12:37:02 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=1046</guid>
		<description><![CDATA[<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-check-if-product-exists-get-product-id-from-sku/">Magento &#8211; Check if Product Exists by Getting Product ID from SKU</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">

$productSku = 'SKU-Of-The-Product';
// Get Magento product ID by providing the SKU
$productId = Mage::getModel('catalog/product')-&gt;getIdBySku($productSku);
// Check if a product ID was returned
if ($productId) {
    // Product with SKU $productSku exists
} else {
    // Product with SKU $productSku does not exist
}

</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-check-if-product-exists-get-product-id-from-sku/">Magento &#8211; Check if Product Exists by Getting Product ID from SKU</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-check-if-product-exists-get-product-id-from-sku/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Get Current Store Details (ID, Code, Name and Status)</title>
		<link>http://kathirvel.co.uk/magento-get-current-store-id-code-name-status-details/</link>
		<comments>http://kathirvel.co.uk/magento-get-current-store-id-code-name-status-details/#comments</comments>
		<pubDate>Wed, 05 Mar 2014 10:15:53 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=1043</guid>
		<description><![CDATA[<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-get-current-store-id-code-name-status-details/">Magento &#8211; Get Current Store Details (ID, Code, Name and Status)</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
// Gets the current store's details
$store = Mage::app()-&gt;getStore();

// Gets the current store's id
$storeId = Mage::app()-&gt;getStore()-&gt;getStoreId();

// Gets the current store's code
$storeCode = Mage::app()-&gt;getStore()-&gt;getCode();

// Gets the current website's id
$websiteId = Mage::app()-&gt;getStore()-&gt;getWebsiteId();

// Gets the current store's group id
$storeGroupId = Mage::app()-&gt;getStore()-&gt;getGroupId();

// Gets the current store's name
$storeName = Mage::app()-&gt;getStore()-&gt;getName();

// Gets the current store's sort order
$storeSortOrder = Mage::app()-&gt;getStore()-&gt;getSortOrder();

// Gets the current store's status
$storeIsActive = Mage::app()-&gt;getStore()-&gt;getIsActive();

// Gets the current store's locale
$storeLocaleCode = Mage::app()-&gt;getStore()-&gt;getLocaleCode();

// Gets the current store's home url
$storeHomeUrl = Mage::app()-&gt;getStore()-&gt;getHomeUrl();
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-get-current-store-id-code-name-status-details/">Magento &#8211; Get Current Store Details (ID, Code, Name and Status)</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-get-current-store-id-code-name-status-details/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Upgrading Magento Core and Modules Via SSH</title>
		<link>http://kathirvel.co.uk/magento-upgrading-magento-core-modules-via-ssh/</link>
		<comments>http://kathirvel.co.uk/magento-upgrading-magento-core-modules-via-ssh/#comments</comments>
		<pubDate>Wed, 29 Jan 2014 12:12:22 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=1034</guid>
		<description><![CDATA[<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-upgrading-magento-core-modules-via-ssh/">Magento &#8211; Upgrading Magento Core and Modules Via SSH</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre class="brush: bash; title: ; notranslate">
chmod 550 ./mage
./mage mage-setup .
./mage sync
./mage install http://connect20.magentocommerce.com/community Mage_All_Latest --force
./mage upgrade-all --force
rm -rf downloader/.cache/* downloader/pearlib/cache/* downloader/pearlib/download/* var/cache/*
php shell/indexer.php reindexall
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-upgrading-magento-core-modules-via-ssh/">Magento &#8211; Upgrading Magento Core and Modules Via SSH</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-upgrading-magento-core-modules-via-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Programmatically Load and Delete Products</title>
		<link>http://kathirvel.co.uk/magento-programmatically-load-delete-products/</link>
		<comments>http://kathirvel.co.uk/magento-programmatically-load-delete-products/#comments</comments>
		<pubDate>Mon, 13 Jan 2014 12:44:19 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=1028</guid>
		<description><![CDATA[<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-programmatically-load-delete-products/">Magento &#8211; Programmatically Load and Delete Products</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
&lt;?php
// Register a secure admin environment
Mage::register('isSecureArea', 1);

// Load the Magento product by entity_id
$product = Mage::getModel('catalog/product')-&gt;load($productId);
// Load the Magento product by sku
$product = Mage::getModel('catalog/product')-&gt;loadByAttribute('sku', $productSku);
// Load the Magento product by name
$product = Mage::getModel('catalog/product')-&gt;loadByAttribute('name', $productName);

// Delete the product
$product-&gt;delete();
?&gt;
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-programmatically-load-delete-products/">Magento &#8211; Programmatically Load and Delete Products</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-programmatically-load-delete-products/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Accessing, Getting and Using Custom Variables in PHTML</title>
		<link>http://kathirvel.co.uk/magento-accessing-getting-echoing-custom-variables-in-templates/</link>
		<comments>http://kathirvel.co.uk/magento-accessing-getting-echoing-custom-variables-in-templates/#comments</comments>
		<pubDate>Mon, 09 Dec 2013 10:39:50 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=1002</guid>
		<description><![CDATA[<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-accessing-getting-echoing-custom-variables-in-templates/">Magento &#8211; Accessing, Getting and Using Custom Variables in PHTML</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
// To get the TEXT value of the custom variable:
Mage::getModel('core/variable')-&gt;setStoreId(Mage::app()-&gt;getStore()-&gt;getId())-&gt;loadByCode('custom_variable_code')-&gt;getValue('text');

// To get the HTML value of the custom variable:
Mage::getModel('core/variable')-&gt;setStoreId(Mage::app()-&gt;getStore()-&gt;getId())-&gt;loadByCode('custom_variable_code')-&gt;getValue('html');

// The store id is set as Custom Variables can be edited for multiple stores
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-accessing-getting-echoing-custom-variables-in-templates/">Magento &#8211; Accessing, Getting and Using Custom Variables in PHTML</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-accessing-getting-echoing-custom-variables-in-templates/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magento Compilation &#8211; Compile, Clear, Enable and Disable from Command Line</title>
		<link>http://kathirvel.co.uk/magento-compile-clear-enable-and-disable-compilation-via-ssh/</link>
		<comments>http://kathirvel.co.uk/magento-compile-clear-enable-and-disable-compilation-via-ssh/#comments</comments>
		<pubDate>Thu, 08 Aug 2013 14:35:10 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=994</guid>
		<description><![CDATA[<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-compile-clear-enable-and-disable-compilation-via-ssh/">Magento Compilation &#8211; Compile, Clear, Enable and Disable from Command Line</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre class="brush: bash; title: ; notranslate">
$ php shell/compiler.php

Usage:  php -f compiler.php -- [options]

  state         Show Compilation State
  compile       Run Compilation Process
  clear         Disable Compiler include path and Remove compiled files
  enable        Enable Compiler include path
  disable       Disable Compiler include path
  help          This help
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-compile-clear-enable-and-disable-compilation-via-ssh/">Magento Compilation &#8211; Compile, Clear, Enable and Disable from Command Line</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-compile-clear-enable-and-disable-compilation-via-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Phishing, Fake and Scam Ads on Facebook&#8217;s Advertising Platform?</title>
		<link>http://kathirvel.co.uk/phishing-fake-and-scam-adverts-on-facebooks-advertising/</link>
		<comments>http://kathirvel.co.uk/phishing-fake-and-scam-adverts-on-facebooks-advertising/#comments</comments>
		<pubDate>Tue, 16 Jul 2013 14:26:35 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Facebook]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=982</guid>
		<description><![CDATA[<p>I started giving a little attention to the Facebook Ads [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/phishing-fake-and-scam-adverts-on-facebooks-advertising/">Phishing, Fake and Scam Ads on Facebook&#8217;s Advertising Platform?</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p><img class="alignleft size-full wp-image-983" alt="Facebook Ads Promoting Fake and Scam Websites" src="http://kathirvel.co.uk/wp-content/uploads/2013/07/facebook-ads-scam-websites.jpg" width="316" height="800" /></p>
<p>I started giving a little attention to the Facebook Ads that appear on the right hand side of their website. Something odd caught my attention. <strong>Designers Sunglasses UK</strong> by <strong>The Shabby Sheep</strong>? <strong>UK Designers Sunglasses</strong> by <strong>Monogram International, Inc</strong>? I clicked on the Facebook page links and they opened up fan pages that had nothing to do with Sunglasses! What! Wait a minute&#8230; I clicked on the ad title. Both the links took me to websites that looked exactly the same but with different business names.</p>
<p><strong>The Shabby Sheep&#8217;s fan page:</strong> https://www.facebook.com/pages/The-Shabby-Sheep/146223385417120<br />
<strong>The target website:</strong> http://www.sunglassestradeoutlet.com/featured_products.html</p>
<p><strong>Monogram International, Inc&#8217;s fan page:</strong> https://www.facebook.com/MonogramInternational<br />
<strong>The target website:</strong> http://www.sunglassesfit.com/featured_products.html</p>
<p>I performed a Google search and read about various blogs that criticise Facebook for not quality controlling display ads that appear on their website. Facebook&#8217;s ad platform is not a newbie! Surely, by now they should have developed algorithms to root out scamsters? Maybe it is a temporary glitch in their advertising network? Has anyone else noticed such false ads on Facebook?</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/phishing-fake-and-scam-adverts-on-facebooks-advertising/">Phishing, Fake and Scam Ads on Facebook&#8217;s Advertising Platform?</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/phishing-fake-and-scam-adverts-on-facebooks-advertising/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Magento – Inserting the Customer&#8217;s Email Address into the Email Templates</title>
		<link>http://kathirvel.co.uk/magento-adding-customer-email-address-to-order-email-templates/</link>
		<comments>http://kathirvel.co.uk/magento-adding-customer-email-address-to-order-email-templates/#comments</comments>
		<pubDate>Thu, 06 Jun 2013 17:31:46 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=968</guid>
		<description><![CDATA[<p>If you wish to see your customer&#8217;s email address  [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-adding-customer-email-address-to-order-email-templates/">Magento – Inserting the Customer&#8217;s Email Address into the Email Templates</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>If you wish to see your customer&#8217;s email address in the order confirmation emails sent out by Magento, you will have to edit (or create a new template and assign it to new order emails) the new order confirmation email template and add this shortcode to it.</p>
<pre class="brush: php; title: ; notranslate">
{{htmlescape var=$order.getCustomerEmail()}}
</pre>
<p>This will display the email address of the customer in the order emails.</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-adding-customer-email-address-to-order-email-templates/">Magento – Inserting the Customer&#8217;s Email Address into the Email Templates</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-adding-customer-email-address-to-order-email-templates/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Including OneStepCheckout&#8217;s Order Comments in the Email Templates</title>
		<link>http://kathirvel.co.uk/magento-adding-onestepcheckout-order-comments-to-order-email-templates/</link>
		<comments>http://kathirvel.co.uk/magento-adding-onestepcheckout-order-comments-to-order-email-templates/#comments</comments>
		<pubDate>Thu, 06 Jun 2013 17:26:49 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=967</guid>
		<description><![CDATA[<p>If you have installed the OneStepCheckout extension for [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-adding-onestepcheckout-order-comments-to-order-email-templates/">Magento &#8211; Including OneStepCheckout&#8217;s Order Comments in the Email Templates</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>If you have installed the OneStepCheckout extension for your Magento store and wondering why you are not seeing the order comments (OneStepCheckout feature) in your order confirmation emails, your email template needs to be edited. You will have to edit (or create a new template and assign it to new order emails) the new order confirmation email template and add this shortcode to it.</p>
<pre class="brush: php; title: ; notranslate">
{{var order.getOnestepcheckoutCustomercomment()}}
</pre>
<p>This will display the order comments in the order emails sent out by your Magento store.</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-adding-onestepcheckout-order-comments-to-order-email-templates/">Magento &#8211; Including OneStepCheckout&#8217;s Order Comments in the Email Templates</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-adding-onestepcheckout-order-comments-to-order-email-templates/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Laravel 4 &#8211; Get Path to App, Public, Storage and Base Install Directories</title>
		<link>http://kathirvel.co.uk/laravel-4-get-app-path-public-path-storage-path-base-path/</link>
		<comments>http://kathirvel.co.uk/laravel-4-get-app-path-public-path-storage-path-base-path/#comments</comments>
		<pubDate>Tue, 21 May 2013 19:46:27 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Laravel 4]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=959</guid>
		<description><![CDATA[<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/laravel-4-get-app-path-public-path-storage-path-base-path/">Laravel 4 &#8211; Get Path to App, Public, Storage and Base Install Directories</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
&lt;?php
/**
 * Path to the 'app' folder
 */
echo app_path();
/**
 * Path to the project's root folder
 */
echo base_path();
/**
 * Path to the 'public' folder
 */
echo public_path();
/**
 * Path to the 'app/storage' folder
 */
echo storage_path();
?&gt;
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/laravel-4-get-app-path-public-path-storage-path-base-path/">Laravel 4 &#8211; Get Path to App, Public, Storage and Base Install Directories</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/laravel-4-get-app-path-public-path-storage-path-base-path/feed/</wfw:commentRss>
		<slash:comments>16</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Get Logged In Customer&#8217;s Full Name, First Name, Last Name and Email Address</title>
		<link>http://kathirvel.co.uk/magento-get-loggedin-customer-fullname-firstname-lastname-email-address/</link>
		<comments>http://kathirvel.co.uk/magento-get-loggedin-customer-fullname-firstname-lastname-email-address/#comments</comments>
		<pubDate>Tue, 21 May 2013 03:33:24 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=957</guid>
		<description><![CDATA[<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-get-loggedin-customer-fullname-firstname-lastname-email-address/">Magento &#8211; Get Logged In Customer&#8217;s Full Name, First Name, Last Name and Email Address</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
/* Check if the customer is logged in or not */
if (Mage::getSingleton('customer/session')-&gt;isLoggedIn()) {

    /* Get the customer data */
    $customer = Mage::getSingleton('customer/session')-&gt;getCustomer();
    /* Get the customer's full name */
    $fullname = $customer-&gt;getName();
    /* Get the customer's first name */
    $firstname = $customer-&gt;getFirstname();
    /* Get the customer's last name */
    $lastname = $customer-&gt;getLastname();
    /* Get the customer's email address */
    $email = $customer-&gt;getEmail();

}
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-get-loggedin-customer-fullname-firstname-lastname-email-address/">Magento &#8211; Get Logged In Customer&#8217;s Full Name, First Name, Last Name and Email Address</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-get-loggedin-customer-fullname-firstname-lastname-email-address/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google&#8217;s Cookies Usage Notification Message to Searchers from the EU</title>
		<link>http://kathirvel.co.uk/googles-cookies-usage-notification-message-to-searchers-from-the-eu/</link>
		<comments>http://kathirvel.co.uk/googles-cookies-usage-notification-message-to-searchers-from-the-eu/#comments</comments>
		<pubDate>Fri, 12 Apr 2013 09:16:22 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Business]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=938</guid>
		<description><![CDATA[<p>Early this week, Google implemented a notice message to [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/googles-cookies-usage-notification-message-to-searchers-from-the-eu/">Google&#8217;s Cookies Usage Notification Message to Searchers from the EU</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Early this week, Google implemented a notice message to let it&#8217;s searchers from the EU know that they are using cookies on their website. This notice comes after the pressure from EU to get Google compliant under the EU&#8217;s Cookie Law.</p>
<p><img class=" wp-image-939 aligncenter" title="Google Search EU Cookie Law Implied Consent Policy Notification Message" alt="Google Search EU Cookie Law Implied Consent Policy Notification Message" src="http://kathirvel.co.uk/wp-content/uploads/2013/04/google-search-cookie-policy-message.png" width="692" height="443" /></p>
<p>The notice says that by using Google&#8217;s search searchers are agreeing to allow Google to store cookies on their devices.</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/googles-cookies-usage-notification-message-to-searchers-from-the-eu/">Google&#8217;s Cookies Usage Notification Message to Searchers from the EU</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/googles-cookies-usage-notification-message-to-searchers-from-the-eu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Get the Magento CMS Page Identifier of the Current Page</title>
		<link>http://kathirvel.co.uk/get-the-magento-cms-page-url-identifier-of-the-current-page/</link>
		<comments>http://kathirvel.co.uk/get-the-magento-cms-page-url-identifier-of-the-current-page/#comments</comments>
		<pubDate>Sun, 24 Mar 2013 12:16:05 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=935</guid>
		<description><![CDATA[<p>To get the URL key / identifier of any CMS page in Mage [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/get-the-magento-cms-page-url-identifier-of-the-current-page/">How to Get the Magento CMS Page Identifier of the Current Page</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>To get the URL key / identifier of any CMS page in Magento, use the following bit of code.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

$cmsPageUrlKey = Mage::getSingleton('cms/page')-&gt;getIdentifier();

?&gt;
</pre>
<p>This will return the path that comes after the website&#8217;s URL. For example, the URL identifier for the About Us page might be about-us and not the full URL like http://www.yourwebsite.com/about-us/. If you want the full URL including your website address, then you should use the following piece of code.</p>
<pre class="brush: php; title: ; notranslate">
&lt;?php

$cmsPageUrl = Mage::getUrl() . Mage::getSingleton('cms/page')-&gt;getIdentifier();

?&gt;
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/get-the-magento-cms-page-url-identifier-of-the-current-page/">How to Get the Magento CMS Page Identifier of the Current Page</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/get-the-magento-cms-page-url-identifier-of-the-current-page/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Easy Method to Set the Number of Columns in Product List.phtml Without XML</title>
		<link>http://kathirvel.co.uk/non-xml-quick-method-to-set-the-number-of-columns-in-magento-product-list/</link>
		<comments>http://kathirvel.co.uk/non-xml-quick-method-to-set-the-number-of-columns-in-magento-product-list/#comments</comments>
		<pubDate>Tue, 19 Mar 2013 16:24:22 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=925</guid>
		<description><![CDATA[<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/non-xml-quick-method-to-set-the-number-of-columns-in-magento-product-list/">Magento &#8211; Easy Method to Set the Number of Columns in Product List.phtml Without XML</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<pre class="brush: php; title: ; notranslate">
&lt;?php

/* Edit the catalog/product/list.phtml template to include the following */

/* Get the layout's page template */
$pageLayoutRootTemplate = $this-&gt;getLayout()-&gt;getBlock('root')-&gt;getTemplate();

/* Set the column count based on the layout template used */
switch ($pageLayoutRootTemplate) {
    case 'page/1column.phtml':
        $_columnCount = 4;
        break;

    case 'page/2columns-left.phtml':
        $_columnCount = 3;
        break;

    case 'page/2columns-right.phtml':
        $_columnCount = 3;
        break;

    case 'page/3columns.phtml':
        $_columnCount = 2;
        break;

    default:
        $_columnCount = 3;
        break;
}

/* Comment out or remove the Magento Column Count function usage */
/* $_columnCount = $this-&gt;getColumnCount(); */

?&gt;
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/non-xml-quick-method-to-set-the-number-of-columns-in-magento-product-list/">Magento &#8211; Easy Method to Set the Number of Columns in Product List.phtml Without XML</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/non-xml-quick-method-to-set-the-number-of-columns-in-magento-product-list/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Returning JSON (for AJAX and API Calls) Response From Controller Action</title>
		<link>http://kathirvel.co.uk/magento-returning-json-for-ajax-and-api-calls-response-from-controller-action/</link>
		<comments>http://kathirvel.co.uk/magento-returning-json-for-ajax-and-api-calls-response-from-controller-action/#comments</comments>
		<pubDate>Sat, 02 Feb 2013 14:17:24 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=912</guid>
		<description><![CDATA[<p>Within your Magento Controller &#62; Action you can use  [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-returning-json-for-ajax-and-api-calls-response-from-controller-action/">Magento &#8211; Returning JSON (for AJAX and API Calls) Response From Controller Action</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>Within your Magento Controller &gt; Action you can use the below code to send a JSON response.</p>
<pre class="brush: php; title: ; notranslate">
$this-&gt;getResponse()-&gt;setHeader('Content-type', 'application/json');
$this-&gt;getResponse()-&gt;setBody($jsonData);
</pre>
<p>Read this post on how to use <a title="Magento’s Core JSON Encoding and Decoding Functions" href="http://kathirvel.co.uk/magentos-core-json-encoding-and-decoding-functions/">Magento&#8217;s core helper to encode and decode JSON</a>.</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-returning-json-for-ajax-and-api-calls-response-from-controller-action/">Magento &#8211; Returning JSON (for AJAX and API Calls) Response From Controller Action</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-returning-json-for-ajax-and-api-calls-response-from-controller-action/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Magento&#8217;s Core JSON Encoding and Decoding Functions</title>
		<link>http://kathirvel.co.uk/magentos-core-json-encoding-and-decoding-functions/</link>
		<comments>http://kathirvel.co.uk/magentos-core-json-encoding-and-decoding-functions/#comments</comments>
		<pubDate>Sat, 02 Feb 2013 14:15:54 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=913</guid>
		<description><![CDATA[<p>To JSON encode an array To JSON decode an array</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magentos-core-json-encoding-and-decoding-functions/">Magento&#8217;s Core JSON Encoding and Decoding Functions</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>To JSON encode an array</p>
<pre class="brush: php; title: ; notranslate">
$jsonData = Mage::helper('core')-&gt;jsonEncode($array);
</pre>
<p>To JSON decode an array</p>
<pre class="brush: php; title: ; notranslate">
$array = Mage::helper('core')-&gt;jsonDecode($jsonData);
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magentos-core-json-encoding-and-decoding-functions/">Magento&#8217;s Core JSON Encoding and Decoding Functions</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magentos-core-json-encoding-and-decoding-functions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; How to Check if a Module is Installed and is Active</title>
		<link>http://kathirvel.co.uk/magento-check-if-an-extension-is-installed-and-is-enabled/</link>
		<comments>http://kathirvel.co.uk/magento-check-if-an-extension-is-installed-and-is-enabled/#comments</comments>
		<pubDate>Tue, 29 Jan 2013 15:11:17 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=909</guid>
		<description><![CDATA[<p>While developing Magento websites, you might wish to ch [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-check-if-an-extension-is-installed-and-is-enabled/">Magento &#8211; How to Check if a Module is Installed and is Active</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>While developing Magento websites, you might wish to check to find out if a module is installed before proceeding to use that module&#8217;s functions. You can do so by using the following bit of code.</p>
<pre class="brush: php; title: ; notranslate">
/* Returns boolean true or false */
Mage::getConfig()-&gt;getModuleConfig('Namespace_Modulename')-&gt;is('active', 'true');
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-check-if-an-extension-is-installed-and-is-enabled/">Magento &#8211; How to Check if a Module is Installed and is Active</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-check-if-an-extension-is-installed-and-is-enabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Magento &#8211; Product Attributes of Products in the Cart</title>
		<link>http://kathirvel.co.uk/magento-custom-attributes-of-products-in-the-cart/</link>
		<comments>http://kathirvel.co.uk/magento-custom-attributes-of-products-in-the-cart/#comments</comments>
		<pubDate>Mon, 28 Jan 2013 23:49:57 +0000</pubDate>
		<dc:creator><![CDATA[Kathir Vel]]></dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[Snippets]]></category>

		<guid isPermaLink="false">http://kathirvel.co.uk/?p=904</guid>
		<description><![CDATA[<p>The following piece of code can pull any attribute of t [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-custom-attributes-of-products-in-the-cart/">Magento &#8211; Product Attributes of Products in the Cart</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>The following piece of code can pull any attribute of the products in the shopping basket. This code can be used anywhere on the website.</p>
<pre class="brush: php; title: ; notranslate">
/* Get all the items in the cart */
$cartItems = Mage::getSingleton('checkout/session')-&gt;getQuote()-&gt;getAllItems();
/* Iterate through the items */
foreach ($cartItems as $item) {
    /* Load the product and get the custom attribute */
    Zend_Debug::dump(Mage::getModel('catalog/product')-&gt;load($item-&gt;getProduct()-&gt;getId())-&gt;getMyCustomAttribute());
}
</pre>
<p>The post <a rel="nofollow" href="http://kathirvel.co.uk/magento-custom-attributes-of-products-in-the-cart/">Magento &#8211; Product Attributes of Products in the Cart</a> appeared first on <a rel="nofollow" href="http://kathirvel.co.uk">Kathir Vel</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathirvel.co.uk/magento-custom-attributes-of-products-in-the-cart/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
