<?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="https://www.the-mage-expert.com/author/admin/feed/" rel="self" type="application/rss+xml" />
	<link>https://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>Making custom options available in quote in admin area</title>
		<link>https://www.the-mage-expert.com/122/magento-making-custom-options-available-in-quote-admin/</link>
		<comments>https://www.the-mage-expert.com/122/magento-making-custom-options-available-in-quote-admin/#comments</comments>
		<pubDate>Mon, 25 Mar 2013 12:27:18 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[Admin]]></category>
		<category><![CDATA[custom options]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=122</guid>
		<description><![CDATA[Sometimes, when adding custom options to a quote in ther admin area, the custom options are not available. To avoid that problem, simply add the custom options to your modules config.xml, like this: [crayon-69eb4388251ed/]]]></description>
				<content:encoded><![CDATA[<p>Sometimes, when adding custom options to a quote in ther admin area, the custom options are not available. To avoid that problem, simply add the custom options to your modules config.xml, like this:</p>
<p></p><pre class="crayon-plain-tag">&lt;global&gt;
    &lt;sales&gt;
        &lt;quote&gt;
            &lt;item&gt;
                &lt;product_attributes&gt;
                    &lt;custom_product_attribute1/&gt;
                    &lt;custom_product_attribute2/&gt;
                &lt;/product_attributes&gt;
            &lt;/item&gt;
        &lt;/quote&gt;
    &lt;/sales&gt;
&lt;/global&gt;</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/122/magento-making-custom-options-available-in-quote-admin/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting region name by id</title>
		<link>https://www.the-mage-expert.com/107/magento-getting-region-name-by-id/</link>
		<comments>https://www.the-mage-expert.com/107/magento-getting-region-name-by-id/#comments</comments>
		<pubDate>Mon, 25 Mar 2013 12:21:36 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[region]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=107</guid>
		<description><![CDATA[The following code returns a regions name by its id: [crayon-69eb4388300ae/]]]></description>
				<content:encoded><![CDATA[<p>The following code returns a regions name by its id:</p>
<p></p><pre class="crayon-plain-tag">$regionModel = Mage::getModel('directory/region')-&gt;load('region_id'); 
$region = $regionModel-&gt;getName();</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/107/magento-getting-region-name-by-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the front name of a route programmatically</title>
		<link>https://www.the-mage-expert.com/58/magento-getting-frontname-of-route-programmatically/</link>
		<comments>https://www.the-mage-expert.com/58/magento-getting-frontname-of-route-programmatically/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 11:47:08 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[config.xml]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[XML]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=58</guid>
		<description><![CDATA[Use the ollowing code to get a routes front name: [crayon-69eb4388305b8/] The code will return &#8220;config&#8221;, if you add the following XML to your modules config.xml: [crayon-69eb438830604/]]]></description>
				<content:encoded><![CDATA[<p>Use the ollowing code to get a routes front name:</p>
<p></p><pre class="crayon-plain-tag">// will display &quot;config&quot;
$frontName = (string)Mage::getConfig()-&gt;getNode('frontend/routers/whatever/args/frontName');</pre><p></p>
<p>The code will return &#8220;config&#8221;, if you add the following XML to your modules config.xml:</p><pre class="crayon-plain-tag">&lt;frontend&gt;
        &lt;routers&gt;
            &lt;whatever&gt;
                &lt;use&gt;standard&lt;/use&gt;
                &lt;args&gt;
                    &lt;module&gt;Company_Module&lt;/module&gt;
                    &lt;frontName&gt;config&lt;/frontName&gt;
                &lt;/args&gt;
            &lt;/whatever&gt;
        &lt;/routers&gt;
&lt;/frontend&gt;</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/58/magento-getting-frontname-of-route-programmatically/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting the full country name by country code</title>
		<link>https://www.the-mage-expert.com/55/magento-getting-full-country-by-country-code/</link>
		<comments>https://www.the-mage-expert.com/55/magento-getting-full-country-by-country-code/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 11:45:40 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[address]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=55</guid>
		<description><![CDATA[See the following example on how to get the long country name by its short code: [crayon-69eb438830bd7/]]]></description>
				<content:encoded><![CDATA[<p>See the following example on how to get the long country name by its short code:</p>
<p></p><pre class="crayon-plain-tag">$address = Mage::getModel('customer/address')-&gt;load($addressId);

// DE, AT ...
$countryCode = $address-&gt;getCountryId();

// Deutschland, ...
$country = Mage::app()-&gt;getLocale()-&gt;getCountryTranslation($countryCode);</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/55/magento-getting-full-country-by-country-code/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Loading a mail template by its name</title>
		<link>https://www.the-mage-expert.com/52/magento-loading-mail-template-by-name/</link>
		<comments>https://www.the-mage-expert.com/52/magento-loading-mail-template-by-name/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 11:44:47 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[e-mail]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=52</guid>
		<description><![CDATA[Use the below code to load a Magento transaction mail template by its name: [crayon-69eb438830f35/]]]></description>
				<content:encoded><![CDATA[<p>Use the below code to load a Magento transaction mail template by its name:</p>
<p></p><pre class="crayon-plain-tag">$templateId = Mage::getModel('core/email_template')-&gt;loadByCode('&lt;name&gt;')-&gt;getTemplateId();
$template = Mage::getModel('core/email_template')-&gt;load($templateId);</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/52/magento-loading-mail-template-by-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting mail template content by name</title>
		<link>https://www.the-mage-expert.com/48/magento-getting-mail-template-content-by-name/</link>
		<comments>https://www.the-mage-expert.com/48/magento-getting-mail-template-content-by-name/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 11:42:58 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[e-mail]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=48</guid>
		<description><![CDATA[Use the following code to get a mail templates content by its name: [crayon-69eb43883137f/]]]></description>
				<content:encoded><![CDATA[<p>Use the following code to get a mail templates content by its name:</p>
<p></p><pre class="crayon-plain-tag">$mailTemplate = Mage::getModel('core/email_template');
$templateByName = $mailTemplate-&gt;loadbyCode($templateName);
$text = $templateByName -&gt;getData('template_text');</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/48/magento-getting-mail-template-content-by-name/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting mail template content by id</title>
		<link>https://www.the-mage-expert.com/44/magento-getting-mail-template-content-by-id/</link>
		<comments>https://www.the-mage-expert.com/44/magento-getting-mail-template-content-by-id/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 11:41:41 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[e-mail]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=44</guid>
		<description><![CDATA[Use the following code to get a mail templates content by its id: [crayon-69eb43883181a/]]]></description>
				<content:encoded><![CDATA[<p>Use the following code to get a mail templates content by its id:</p>
<p></p><pre class="crayon-plain-tag">$mailTemplate = Mage::getModel('core/email_template');
$template = $mailTemplate-&gt;load($templateId);
$text = $template-&gt;getData('template_text');</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/44/magento-getting-mail-template-content-by-id/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding the message block to a template (phtml)</title>
		<link>https://www.the-mage-expert.com/35/magento-adding-message-block-to-template-phtml/</link>
		<comments>https://www.the-mage-expert.com/35/magento-adding-message-block-to-template-phtml/#comments</comments>
		<pubDate>Mon, 25 Feb 2013 11:39:22 +0000</pubDate>
		<dc:creator><![CDATA[admin]]></dc:creator>
				<category><![CDATA[Magento Solutions]]></category>
		<category><![CDATA[template (phtml)]]></category>

		<guid isPermaLink="false">http://www.the-mage-expert.com/?p=35</guid>
		<description><![CDATA[If you want to show the Magento messages (success, error, &#8230;) in your template file, add the following code the top of your template: [crayon-69eb438831c69/]]]></description>
				<content:encoded><![CDATA[<p>If you want to show the Magento messages (success, error, &#8230;) in your template file, add the following code the top of your template:</p>
<p></p><pre class="crayon-plain-tag">&lt;?php echo $this-&gt;getMessagesBlock()-&gt;getGroupedHtml() ?&gt;</pre><p></p>]]></content:encoded>
			<wfw:commentRss>https://www.the-mage-expert.com/35/magento-adding-message-block-to-template-phtml/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
