<?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>The Magento Expert</title>
	<atom:link href="http://www.the-mage-expert.com/tag/category/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.the-mage-expert.com</link>
	<description>Your Magento Commerce Expert</description>
	<lastBuildDate>Tue, 24 Jan 2023 09:37:24 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.8.6</generator>
	<item>
		<title>Getting child categories with flat categories enabled</title>
		<link>http://www.the-mage-expert.com/1110/magento-getting-child-categories-with-flat-categories-enabled/</link>
		<comments>http://www.the-mage-expert.com/1110/magento-getting-child-categories-with-flat-categories-enabled/#comments</comments>
		<pubDate>Tue, 15 Nov 2016 09:50:23 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[category]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=1110</guid>
		<description><![CDATA[If you enable the flat categories in your Magento store, some code that gets children of a given category might stop working. The following code can be used to get all the cildren of a given category with enabled flat&#8230;]]></description>
				<content:encoded><![CDATA[<p>If you enable the flat categories in your Magento store, some code that gets children of a given category might stop working. The following code can be used to get all the cildren of a given category with enabled flat categories:</p>
<p></p><pre class="crayon-plain-tag">$category = Mage::getModel('catalog/category')-&gt;load($id);    
$childCategories = $category
                    -&gt;getCollection()
                    -&gt;addAttributeToSelect(array('name', 'image', 'description'))
                    -&gt;addIdFilter($category-&gt;getChildren());</pre><p></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/1110/magento-getting-child-categories-with-flat-categories-enabled/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting products from a category</title>
		<link>http://www.the-mage-expert.com/614/magento-getting-products-from-category/</link>
		<comments>http://www.the-mage-expert.com/614/magento-getting-products-from-category/#comments</comments>
		<pubDate>Mon, 10 Mar 2014 13:38:28 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[category]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=614</guid>
		<description><![CDATA[The following code returns all products from within a certain category in a collection. [crayon-6a687416d05f1/]]]></description>
				<content:encoded><![CDATA[<p>The following code returns all products from within a certain category in a collection.</p>
<p></p><pre class="crayon-plain-tag">// category id = 5
// addAttributeToSelect is optional
$products = Mage::getModel('catalog/category')-&gt;load(5)-&gt;getProductCollection()-&gt;addAttributeToSelect('*');</pre><p></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/614/magento-getting-products-from-category/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the parent category of a category</title>
		<link>http://www.the-mage-expert.com/479/magento-getting-parent-category-of-category/</link>
		<comments>http://www.the-mage-expert.com/479/magento-getting-parent-category-of-category/#comments</comments>
		<pubDate>Mon, 28 Oct 2013 15:28:35 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[category]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=479</guid>
		<description><![CDATA[Use the following code to get a Magento categories parent category. [crayon-6a687416d0c59/]]]></description>
				<content:encoded><![CDATA[<p>Use the following code to get a Magento categories parent category.</p>
<p></p><pre class="crayon-plain-tag">Mage::getSingleton('catalog/layer')-&gt;getCurrentCategory()-&gt;getParentCategory();</pre><p></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/479/magento-getting-parent-category-of-category/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the name of the current category</title>
		<link>http://www.the-mage-expert.com/474/magento-getting-name-of-current-category/</link>
		<comments>http://www.the-mage-expert.com/474/magento-getting-name-of-current-category/#comments</comments>
		<pubDate>Mon, 28 Oct 2013 15:05:59 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[category]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=474</guid>
		<description><![CDATA[While being on the Magento category page, it might be useful to display the category name. Use the following code to do so. [crayon-6a687416d1120/]]]></description>
				<content:encoded><![CDATA[<p>While being on the Magento category page, it might be useful to display the category name. Use the following code to do so.</p>
<p></p><pre class="crayon-plain-tag">Mage::getSingleton('catalog/layer')-&gt;getCurrentCategory()-&gt;getName();</pre><p></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/474/magento-getting-name-of-current-category/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting a category URL using the category id</title>
		<link>http://www.the-mage-expert.com/378/magento-getting-category-url-with-category-id/</link>
		<comments>http://www.the-mage-expert.com/378/magento-getting-category-url-with-category-id/#comments</comments>
		<pubDate>Thu, 25 Jul 2013 08:57:08 +0000</pubDate>
		<dc:creator><![CDATA[Mex]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[category]]></category>
		<category><![CDATA[url]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=378</guid>
		<description><![CDATA[To get a categories URL by category id, use the following code: [crayon-6a687416d190a/]]]></description>
				<content:encoded><![CDATA[<p>To get a categories URL by category id, use the following code:</p>
<p></p><pre class="crayon-plain-tag">$categoryId = 55;
$url = Mage::getModel(&quot;catalog/category&quot;)-&gt;load($categoryId)-&gt;getUrl();</pre><p></p>]]></content:encoded>
			<wfw:commentRss>http://www.the-mage-expert.com/378/magento-getting-category-url-with-category-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
