<?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>onestic &#187; magento</title>
	<atom:link href="http://onestic.com/tag/magento/feed/" rel="self" type="application/rss+xml" />
	<link>http://onestic.com</link>
	<description>blog de onestic</description>
	<lastBuildDate>Wed, 30 Jun 2010 10:37:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Quelovendan.com &#8211; Nueva tienda E-commerce desarrollada en Magento</title>
		<link>http://onestic.com/quelovendan-com-nueva-tienda-e-commerce-desarrollada-en-magento/</link>
		<comments>http://onestic.com/quelovendan-com-nueva-tienda-e-commerce-desarrollada-en-magento/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 11:23:42 +0000</pubDate>
		<dc:creator>Sergio Baixauli</dc:creator>
				<category><![CDATA[Destacado]]></category>
		<category><![CDATA[Magento]]></category>
		<category><![CDATA[Proyectos]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[tienda en magento]]></category>

		<guid isPermaLink="false">http://onestic.com/?p=904</guid>
		<description><![CDATA[
Hoy por fin hemos publicado nuestro último trabajo, quelovendan.com. La tienda oficial de nopuedocreer.com. Lo nuestro nos ha costado. Una vez más tenemos que dar la gracias a @Danitroy (nopuedocreer.com) y @jlhortelano (tecnorantes.com).
Esta nueva tienda desarrollada con Magento lleva muchas mejoras y alguna que otra extensión a medida. Integración con la pasarela de pago de [...]]]></description>
			<content:encoded><![CDATA[
<p>Hoy por fin hemos publicado nuestro último trabajo, <a href="http://quelovendan.com">quelovendan.com</a>. La tienda oficial de <a href="http://nopuedocreer.com">nopuedocreer.com</a>. Lo nuestro nos ha costado. Una vez más tenemos que dar la gracias a @Danitroy (<a href="http://nopuedocreer.com/">nopuedocreer.com</a>) y @jlhortelano (<a href="http://www.tecnorantes.com/">tecnorantes.com</a>).</p>
<p>Esta nueva <strong>tienda desarrollada con Magento</strong> lleva muchas mejoras y alguna que otra extensión a medida. Integración con la pasarela de pago de <strong>La Caixa para Magento</strong>, <strong>LiveChat</strong> para atención personalizada, notificaciones, módulo de SEO para Magento, canonical urls, optimización y performance específicos en el Core de Magento para esta tienda, la integración con el <strong>sistema de envío de Magento para MRW</strong>, etc.</p>
<p>Como veréis hemos tenido en cuenta el publico objetivo, y por tanto, la estética. Los colores y la navegación están hechos a medida. ¡Esperamos que os guste y que compréis mucho!</p>
]]></content:encoded>
			<wfw:commentRss>http://onestic.com/quelovendan-com-nueva-tienda-e-commerce-desarrollada-en-magento/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Tienda en Magento multiidioma. Botas Sendra en japonés</title>
		<link>http://onestic.com/tienda-en-magento-multiidioma-botas-sendra-en-japones/</link>
		<comments>http://onestic.com/tienda-en-magento-multiidioma-botas-sendra-en-japones/#comments</comments>
		<pubDate>Mon, 15 Mar 2010 11:39:13 +0000</pubDate>
		<dc:creator>Sergio Baixauli</dc:creator>
				<category><![CDATA[Destacado]]></category>
		<category><![CDATA[Proyectos]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[magento japan]]></category>
		<category><![CDATA[magento multiidioma]]></category>
		<category><![CDATA[tienda en magento]]></category>

		<guid isPermaLink="false">http://onestic.com/?p=834</guid>
		<description><![CDATA[Hemos ido liados estas semanas con el lanzamiento de un nuevo proyecto realizado con Magento. En este caso se trata de una versión de la actual tienda en Magento de Sendra Boots. (www.sendra.jp)
Para esta nueva tienda online además de los problemas con el idioma como es normal, hemos tenido que llevar a cabo una personalización [...]]]></description>
			<content:encoded><![CDATA[Hemos ido liados estas semanas con el lanzamiento de un nuevo proyecto realizado con Magento. En este caso se trata de una versión de la <a href="http://sendravalencia.com">actual tienda</a> en Magento de Sendra Boots. (www.sendra.jp)
Para esta <strong>nueva tienda</strong> online además de los problemas con el idioma como es normal, hemos tenido que llevar a cabo una personalización de Magento muy intensa, mucho más de lo que en un principio analizamos. No sólo cambia el idioma, cambian los requisitos del usuario y el trato con la moneda (los japoneses no usan decimales). Además, el registro de usuarios y pedidos (junto con los correos electrónicos de notificación) requiere sobrescribir alguna de las funciones del Core de Magento.
Para llevar a cabo esta tarea nos hemos seguido los pasos para configurar una tienda de <a href="http://onestic.com/configurar-multiples-tiendas-con-magento/">Magento en múltiples dominios</a> y hemos aprovechado la potencia de la multitienda en Magento. 
Esperamos que os guste. <a href="http://sendra.jp">Sendra Boots Japan</a>]]></content:encoded>
			<wfw:commentRss>http://onestic.com/tienda-en-magento-multiidioma-botas-sendra-en-japones/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Configuración de Magento. System Config</title>
		<link>http://onestic.com/configuracion-de-magento-system-config/</link>
		<comments>http://onestic.com/configuracion-de-magento-system-config/#comments</comments>
		<pubDate>Wed, 03 Mar 2010 09:32:20 +0000</pubDate>
		<dc:creator>Sergio Baixauli</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[Onestic]]></category>
		<category><![CDATA[configuración magento]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[system config]]></category>

		<guid isPermaLink="false">http://onestic.com/?p=804</guid>
		<description><![CDATA[Hacía mucho tiempo que no escribía nada, hemos ido un poco liados con el lanzamiento/creación de dos nuevas tiendas en Magento.
Para estas dos nuevas tiendas en Magento hemos tenido que desarrollar varios módulos y tocar la configuración de Magento, así que hoy vamos a intentar explicar de forma resumida cómo se podemos crear menus de [...]]]></description>
			<content:encoded><![CDATA[<p>Hacía mucho tiempo que no escribía nada, hemos ido un poco liados con el lanzamiento/creación de dos nuevas tiendas en Magento.
Para estas dos nuevas <strong>tiendas en Magento</strong> hemos tenido que desarrollar varios módulos y tocar la configuración de Magento, así que hoy vamos a intentar explicar de forma resumida cómo se podemos crear menus de configuración para el administrador de Magento. Todo esto gracias a <a href="http://alanstorm.com">Alanstorm</a>.
</p>
La primera vez que desarrolléis algo para Magento os parecerá un mundo (la verdad es que si no habéis usado un framework alguna vez se hace complicado, hasta que lo entiendes claro <img src='http://onestic.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  )
El "módulo" que vamos a desarrollar no tiene ninguna funcionalidad, pero si explica parte por parte los elementos necesarios para su creación. Lo único que no vamos a hacer es una nueva entrada en el administrador con un par de campos.
Vamos por partes:
<h3>Creación del fichero de configuración</h3>
Lo primero que vamos a necesitar es un fichero para la configuración del sistema llamado system.xml (no confundir con config.xml)
<div class="igBar"><span id="lcode-32"><a href="#" onclick="javascript:showPlainTxt('code-32'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-32">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">app/code/local/Alanstormdotcom/Helloworld/etc/system.<span style="">xml</span> </div></li></ol></div>
</div></div><br />
Un pequeño truco si necesitamos ver el contenido de la configuración es ejecutar desde cualquier página el siguiente código en PHP:
<div class="igBar"><span id="lphp-33"><a href="#" onclick="javascript:showPlainTxt('php-33'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-33">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">//header('Content-Type: text/xml');&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/header"><span style="color:#000066;">header</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Content-Type: text/plain'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#0000FF;">$config</span> = Mage::<span style="color:#006600;">getConfig</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-&gt;<span style="color:#006600;">loadModulesConfiguration</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'system.xml'</span><span style="color:#006600; font-weight:bold;">&#41;</span>&nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-&gt;<span style="color:#006600;">getNode</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-&gt;<span style="color:#006600;">asXML</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/exit"><span style="color:#000066;">exit</span></a>; </div></li></ol></div>
</div></div><br />
El método <strong>loadModulesConfiguration</strong> buscará en todos los módulos configurados el fichero <strong>system.xml</strong>. Magento dispone de otros ficheros además de este (api.xml, convert.xml, wsdl.xml, compilation.xml, install.xml).

<h3>Añadir una solapa en el administrador de Magento</h3>
La siguiente operación que vamos a realizar es añadir un "Tab" o solapa en el administrador de Magento (System->Configuration). Como solapas generales podemos encontrar la de General, Catálogo, Ventas, Servicios y Avanzado.
Ahora vamos a crear una nuevo llamada "Hello Config".
<div class="igBar"><span id="lphp-34"><a href="#" onclick="javascript:showPlainTxt('php-34'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-34">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Ubicación: app/code/local/Alanstormdotcom/Helloworld/etc/<a href="http://www.php.net/system"><span style="color:#000066;">system</span></a>.xml</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;config&gt;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;tabs&gt;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;helloconfig translate=<span style="color:#FF0000;">"label"</span> module=<span style="color:#FF0000;">"helloworld"</span>&gt;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;label&gt;Hello Config&lt;/label&gt;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &lt;sort_order&gt;<span style="color:#CC66CC;color:#800000;">99999</span>&lt;/sort_order&gt;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &lt;/helloconfig&gt;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &lt;/tabs&gt; </div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&lt;/config&gt; </div></li></ol></div>
</div></div><br />

Algunas aclaraciones sobre el código del xml. El nombre <strong>helloconfig</strong> es totalmente arbitrario, pero debe ser único entre todos los tabs que tenemos en el sistema. Nos servirá como identificador. Es mejor utilizar nombres que referencien lo que hace nuestro "módulo" para no liarse después.
El atributo module="helloworld" identifica del módulo al que pertenece, <label> indica el nombre del Tab y  determina el orden de aparicion con respecto a los demás tabs en la columna de la izquierda del administrador.
<h3>Breve ayuda sobre las Helper Classes</h3>
Magento cuenta como muchos otros sistemas MVC con Helper classes, las cuales son usadas para una gran variedad de tareas que no encajan ni el Modelo, ni en la vista ni el controlador. Como desarrolladores de módulos podemos utilizar las Helper Classes del sistema o las nuestras propias (en el caso de nuestro módulo Helloworld).
Lo primero será añadirlo en el fichero config.xml (ojo, no el system.xml)
<div class="igBar"><span id="lxml-35"><a href="#" onclick="javascript:showPlainTxt('xml-35'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">XML:</span><br /><div id="xml-35">
<div class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Fichero: app/code/local/Alanstormdotcom/Helloworld/etc/config.xml</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;global<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;helpers<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;helloworld<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;class<span style="font-weight: bold; color: black;">&gt;</span></span></span>Alanstormdotcom_Helloworld_Helper<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/class<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/helloworld<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/helpers<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; </div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/global<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span> </div></li></ol></div>
</div></div><br />

La única parte "rara" que podemos encontrar aquí es la que hace referencia al nombre de la clase. Como sabréis la notación para esto debe seguir la siguiente estructura:
<div class="igBar"><span id="lcode-36"><a href="#" onclick="javascript:showPlainTxt('code-36'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-36">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Nombredelpaquete_Nombredelmodulo_Helper </div></li></ol></div>
</div></div><br />

Los Helpers se cargaran en el global Mage. La siguiente llamada servirá (teniendo en cuenta la configuración que hemos ido dando)
<div class="igBar"><span id="lcode-37"><a href="#" onclick="javascript:showPlainTxt('code-37'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-37">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="">helper</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'helloworld/foo'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />

...cargará la siguiente clase
<div class="igBar"><span id="lcode-38"><a href="#" onclick="javascript:showPlainTxt('code-38'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-38">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">app/code/local/Alanstormdorcom/Helper/Foo.<span style="">php</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">class Alanstormdotcom_Helloworld_Helper_Foo </div></li></ol></div>
</div></div><br />

Magento también permite el concepto de "Helper por defecto" para un módulo, lo que significa que podíamos haber usado esta llamada:
<div class="igBar"><span id="lcode-39"><a href="#" onclick="javascript:showPlainTxt('code-39'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-39">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="">helper</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'helloworld'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />

lo que hubiera provocado que se hubiera buscado en:
<div class="igBar"><span id="lcode-40"><a href="#" onclick="javascript:showPlainTxt('code-40'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-40">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">app/code/local/Alanstormdorcom/Helper/Data.<span style="">php</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">class Alanstormdotcom_Helloworld_Helper_Dara </div></li></ol></div>
</div></div><br />

Con esto llegamos a la conclusión de que es lo mismo poner estas dos líneas:
<div class="igBar"><span id="lcode-41"><a href="#" onclick="javascript:showPlainTxt('code-41'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-41">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="">helper</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'helloworld'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="">helper</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'helloworld/data'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />

Supongo que estas líneas os habrán aclarado más de una duda (o eso espero)
Por último tenemos que añadir el Helper class actual.
<div class="igBar"><span id="lcode-42"><a href="#" onclick="javascript:showPlainTxt('code-42'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-42">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Fichero: app/code/local/Alanstormdorcom/Helper/Data.<span style="">php</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">class Alanstormdotcom_Helloworld_Helper_Data extends Mage_Core_Helper_Abstract</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div></li></ol></div>
</div></div><br />

Si hemos seguido los pasos y hemos borrado la cache, ya no deberíamos tener ningún error en el administrador. Eso si, todavía no podremos ver nuestro nuevo Tab.

<h3>Añadir una Nueva Sección</h3>
El siguiente paso es saber por qué nuestra ficha no aparece todavía en el administrador. Cada Tab/ficha dispone de una serie de secciones. Por ejemplo, el Tab "Avanzado" por defecto tiene una de Administrador, Sistema, Avanzado y Desarrollador.
Si creamos un Tab sin secciones no se mostrará, por eso vamos a añadir un nodo llamado :
<div class="igBar"><span id="lxml-43"><a href="#" onclick="javascript:showPlainTxt('xml-43'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">XML:</span><br /><div id="xml-43">
<div class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Ubicación: app/code/local/Alanstormdotcom/Helloworld/etc/system.xml</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;config<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;tabs<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;helloconfig</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">"label"</span> <span style="color: #000066;">module</span>=<span style="color: #ff0000;">"helloworld"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Hello Config<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span>99999<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/helloconfig<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/tabs<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sections<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;helloworld_options</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">"label"</span> <span style="color: #000066;">module</span>=<span style="color: #ff0000;">"helloworld"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Hello World Config Options<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;tab<span style="font-weight: bold; color: black;">&gt;</span></span></span>helloconfig<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/tab<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span>text<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span>1000<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/helloworld_options<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sections<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/config<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div></li></ol></div>
</div></div><br />

<strong>helloworld_options</strong>, como antes, un nombre arbitrario, usado para identificar nuestra nueva sección.
<strong>label</strong> , define lo que se mostrará en la interfaz. Es decir, la etiqueta.
<strong>tab</strong> , identifica bajo que Tab estará agrupada nuestra nueva sección.
<strong>frontend_type</strong> , esta no está muy clara. Parece que no sirve para nada (corregirme si me equivoco), yo la pongo por si las moscas <img src='http://onestic.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> 
<strong>sort_order</strong> , determina el orden de aparición (vertical) con respecto a las otras secciones.
<strong>show_in_default</strong> , <show_in_website />, <show_in_store />, determina el nivel la granularidad que tiene esta sección. Los valores son 0 y 1.
Con todo esto claro ya deberíamos ver la nueva Ficha con su sección. Si queremos añadir nuevas secciones únicamente tenemos que introducir nuecas .

<h3>Control de Acceso</h3>
Si pulsamos en la nueva sección que acabamos de crear obtendremos una página en blanco. Esto se debe a que el Adminhtml no puede encontrar la entrarda de nuestra nueva sección en el ACL (Access Control List) - Lista de control de acceso.
La gente de Magento decidió en su momento que las secciones de configuración de Sistema deberían tener porotección ACL.
Los recursos son definidos mendiante URI's. Por ejemplo, la sección de configuración "web" se define de la siguiente forma:
<div class="igBar"><span id="lcode-44"><a href="#" onclick="javascript:showPlainTxt('code-44'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-44">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">admin/system/config/web </div></li></ol></div>
</div></div><br />

en nuestro caso...
<div class="igBar"><span id="lcode-45"><a href="#" onclick="javascript:showPlainTxt('code-45'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-45">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">admin/system/config/helloworld_options </div></li></ol></div>
</div></div><br />

La sección del administrador (conocida como Adminhtml) está desarrollada con el mismo framework que la tienda. Cada vez que un usuario accede a un recurso del admin, el adminhtml debe:
<ul>
	<li>Deducir la URI donde el usuario quiere acceder</li>
	<li>Comprobar la URI contra el sistema ACL y determinar si el usuario tiene permisos sobre este recurso</li>
	<li>Si el usuario no tiene privilegios informar</li>
</ul>
Para los que estéis interesados en esta parte el método usado es _isSectionAllowed que podemos encontrar en el siguiente controlador:
<div class="igBar"><span id="lcode-46"><a href="#" onclick="javascript:showPlainTxt('code-46'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-46">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">app/code/core/Mage/Adminhtml/controllers/System/ConfigController.<span style="">php</span> </div></li></ol></div>
</div></div><br />

Como todos sabréis, una forma de ver los Roles asignados en el administrador es desde Sistema-> Permisos -> Roles

<h3>Añadir Roles. ACL</h3>
Para entender esta sección hay que leer la anterior. Para los despistados <img src='http://onestic.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> 
Editamos el fichero que controla los permisos necesarios para acceder a nuestra nueva sección:
<div class="igBar"><span id="lxml-47"><a href="#" onclick="javascript:showPlainTxt('xml-47'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">XML:</span><br /><div id="xml-47">
<div class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Fichero: app/code/local/Alanstormdotcom/Helloworld/etc/config.xml</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;config<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; </div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;adminhtml<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;acl<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;resources<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;admin<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;children<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;system<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;children<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;config<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;children<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;helloworld_options<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;title<span style="font-weight: bold; color: black;">&gt;</span></span></span>Store Hello World Module Section<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/title<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/helloworld_options<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/children<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/config<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/children<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/system<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/children<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/admin<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/resources<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/acl<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/adminhtml<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/config<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div></li></ol></div>
</div></div><br />

Resumiendo:
<div class="igBar"><span id="lxml-48"><a href="#" onclick="javascript:showPlainTxt('xml-48'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">XML:</span><br /><div id="xml-48">
<div class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;adminhtml<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;acl<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;resources<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/resource<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/acl<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/adminhtml<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div></li></ol></div>
</div></div><br />

Dentro del recurso, cada nodo hijo representa una porción de la URI. Por ejemplo:
<div class="igBar"><span id="lxml-49"><a href="#" onclick="javascript:showPlainTxt('xml-49'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">XML:</span><br /><div id="xml-49">
<div class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">admin/system </div></li></ol></div>
</div></div><br />

nos devuelve la siguiente URI
<div class="igBar"><span id="lxml-50"><a href="#" onclick="javascript:showPlainTxt('xml-50'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">XML:</span><br /><div id="xml-50">
<div class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">admin/system </div></li></ol></div>
</div></div><br />

Si has seguido todos los pasos, tenemos las siguiente configuración:
<div class="igBar"><span id="lxml-51"><a href="#" onclick="javascript:showPlainTxt('xml-51'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">XML:</span><br /><div id="xml-51">
<div class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;helloworld_options<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;title<span style="font-weight: bold; color: black;">&gt;</span></span></span>Store Hello World Module Section<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/title<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/helloworld_options<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div></li></ol></div>
</div></div><br />

Para ver todos estos cambios desde el administrador, como siempre, borrar la cache, cerrar sesión y volver a iniciarla. Si todo ha ido bien, deberíamos ver una nueva página de llamada “Hello World Config Options”.
<h3>Añadir Grupos</h3>
Ya tenemos nuestra página de configuración (en blanco) con los permisos adecuados. Vamos a crear grupos para las secciones.
<div class="igBar"><span id="lxml-52"><a href="#" onclick="javascript:showPlainTxt('xml-52'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">XML:</span><br /><div id="xml-52">
<div class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Ubicación: app/code/local/Alanstormdotcom/Helloworld/etc/system.xml</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;config<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;tabs<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;helloconfig</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">"label"</span> <span style="color: #000066;">module</span>=<span style="color: #ff0000;">"helloworld"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Hello Config<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span>99999<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/helloconfig<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/tabs<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sections<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;helloworld_options</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">"label"</span> <span style="color: #000066;">module</span>=<span style="color: #ff0000;">"helloworld"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Hello World Config Options<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;tab<span style="font-weight: bold; color: black;">&gt;</span></span></span>helloconfig<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/tab<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span>text<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span>1000<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;groups<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;messages</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">"label"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Demo Of Config Fields<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span>text<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/messages<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/groups<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/helloworld_options<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sections<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/config<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div></li></ol></div>
</div></div><br />

Guardamos y recargamos la página. ¿Veís la caja con el título “Demo Of Config Fields”. ? (espero que si, sino mal vamos....)

<h3>Añadir campos de configuración. Config fields</h3>
Y ya por último, vamos a introducir los campos necesarios para la configuración de nuestro módulo. Esto se hace con el nodo
Por ejemplo, un campo con el nombre "hello_message".
<div class="igBar"><span id="lxml-53"><a href="#" onclick="javascript:showPlainTxt('xml-53'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">XML:</span><br /><div id="xml-53">
<div class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;messages</span> <span style="color: #000066;">translate</span>=<span style="color: #ff0000;">"label"</span><span style="font-weight: bold; color: black;">&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Demo Of Config Fields<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span>text<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;fields<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;hello_message<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Message<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span>text<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/hello_message<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/fields<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/messages<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span> </div></li></ol></div>
</div></div><br />

Os acordáis que antes comentábamos la finalidad del campo <strong>frontend_type</strong>, bueno, pues aquí tenéis la explicación.  En esta sección si tiene sentido. Si recargamos la página deberíamos ver un text field.
Vamos ahora con otro tipo de campo, uno de tipo time.
<div class="igBar"><span id="lxml-54"><a href="#" onclick="javascript:showPlainTxt('xml-54'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">XML:</span><br /><div id="xml-54">
<div class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ...--&gt;</span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;fields<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;hello_message<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Message<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span>text<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/hello_message<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;hello_time<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Time to Say Hello<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span>time<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/hello_time<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp; &nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/fields<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span> </div></li></ol></div>
</div></div><br />

La única diferencia entre ambos nodos es el tipo. <strong>time</strong>
Para ver los tipos soportados por Magento podemos ir a lib/Varien/Data/Form/Element. No están todos, pero si la mayoría...
Ahora vamos a cambiar el text de hello_message por un combo.
<div class="igBar"><span id="lxml-55"><a href="#" onclick="javascript:showPlainTxt('xml-55'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">XML:</span><br /><div id="xml-55">
<div class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;hello_message<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Message<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span>select<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/hello_message<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span> </div></li></ol></div>
</div></div><br />

pero... el combo no tiene datos, no hay problema, tenemos que indicarle el origen de datos:
<div class="igBar"><span id="lxml-56"><a href="#" onclick="javascript:showPlainTxt('xml-56'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">XML:</span><br /><div id="xml-56">
<div class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;hello_message<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;label<span style="font-weight: bold; color: black;">&gt;</span></span></span>Message<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/label<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span>select<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/frontend_type<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- adding a source model --&gt;</span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;source_model<span style="font-weight: bold; color: black;">&gt;</span></span></span>helloworld/words<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/source_model<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/sort_order<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_default<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_website<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>1<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/show_in_store<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; </div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/hello_message<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div></li></ol></div>
</div></div><br />

El elemento <strong>source_model</strong> define el URI de un Model class que usaremos para meter datos en el combo. Como siempre, este cambio lo metemos en el config.xml (dentro de la sección de models):
<div class="igBar"><span id="lxml-57"><a href="#" onclick="javascript:showPlainTxt('xml-57'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">XML:</span><br /><div id="xml-57">
<div class="xml"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Ubicación: app/code/local/Alanstormdotcom/Helloworld/etc/config.xml</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;config<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp; </div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;global<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;models<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;helloworld<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;class<span style="font-weight: bold; color: black;">&gt;</span></span></span>Alanstormdotcom_Helloworld_Model<span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/class<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/helloworld<span style="font-weight: bold; color: black;">&gt;</span></span></span>&nbsp; &nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="color: #808080; font-style: italic;">&lt;!-- ... --&gt;</span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/models<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/global<span style="font-weight: bold; color: black;">&gt;</span></span></span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color: #009900;"><span style="font-weight: bold; color: black;">&lt;/config<span style="font-weight: bold; color: black;">&gt;</span></span></span> </div></li></ol></div>
</div></div><br />

Si recargamos la página nos dará un error, claro, no hemos definido la fuente de nuestro Model class.
<div class="igBar"><span id="lcode-58"><a href="#" onclick="javascript:showPlainTxt('code-58'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-58">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Warning: include<span style="color:#006600; font-weight:bold;">&#40;</span>Alanstormdotcom/Helloworld/Model/Words.<span style="">php</span><span style="color:#006600; font-weight:bold;">&#41;</span> </div></li></ol></div>
</div></div><br />

Nota: si en el error vemos algo parecido a "Mage/Helloworld/..." significa que no hemos creado bien la sección de <strong>models</strong>. Revisar el config.xml
Para definir la fuente del Modelo:
<div class="igBar"><span id="lphp-59"><a href="#" onclick="javascript:showPlainTxt('php-59'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-59">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/file"><span style="color:#000066;">File</span></a>: app/code/local/Alanstormdotcom/Helloworld/Model/Words.php</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">class</span> Alanstormdotcom_Helloworld_Model_Words</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">public <span style="color:#000000; font-weight:bold;">function</span> toOptionArray<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">return</span> <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'value'</span>=&gt;<span style="color:#CC66CC;color:#800000;">1</span>, <span style="color:#FF0000;">'label'</span>=&gt;Mage::<span style="color:#006600;">helper</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'helloworld'</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;__<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Hello'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>,</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'value'</span>=&gt;<span style="color:#CC66CC;color:#800000;">2</span>, <span style="color:#FF0000;">'label'</span>=&gt;Mage::<span style="color:#006600;">helper</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'helloworld'</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;__<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Goodbye'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>,</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'value'</span>=&gt;<span style="color:#CC66CC;color:#800000;">3</span>, <span style="color:#FF0000;">'label'</span>=&gt;Mage::<span style="color:#006600;">helper</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'helloworld'</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;__<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Yes'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>,</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'value'</span>=&gt;<span style="color:#CC66CC;color:#800000;">4</span>, <span style="color:#FF0000;">'label'</span>=&gt;Mage::<span style="color:#006600;">helper</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'helloworld'</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;__<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'No'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>,</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div></li></ol></div>
</div></div><br />

El método devuelve un array con los valores que usaremos posteriormente. Al recargar la página veremos el combo con nuestros datos. Fijaros que hemos usaros el método (__) para las traducciones. Ya que lo hacemos lo hacemos bien, no?

<h3>Recogiendo valores</h3>
Hemos visto cómo desarrollar formularios para crear valores de configuración. Para obtenerlos desde nuestro código y poder utilizarlos tenemos que usar un método llamado getStoreConfig. Por ejemplo:
<div class="igBar"><span id="lphp-60"><a href="#" onclick="javascript:showPlainTxt('php-60'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-60">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="color:#006600;">getStoreConfig</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'helloworld_options/messages/hello_message'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />

El método getStoreConfig acepta como parámetro la URI:
<div class="igBar"><span id="lphp-61"><a href="#" onclick="javascript:showPlainTxt('php-61'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-61">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">section_name/group_name/field_name</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="color:#006600;">getStoreConfig</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'helloworld_options/messages'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="color:#006600;">getStoreConfig</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'helloworld_options'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />

Por útlimo, si quieremos grabar un valor para una tienda en concreto, getStoreConfig acepta un segundo valor, el storeID:
<div class="igBar"><span id="lphp-62"><a href="#" onclick="javascript:showPlainTxt('php-62'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-62">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="color:#006600;">getStoreConfig</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'helloworld_options'</span>,<span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />

Y para los que no tengáis ganas de estar copiando y pegando, como siempre, os dejamos directamente el código. <img src='http://onestic.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> 
<a href='http://onestic.com/wp-content/uploads/2010/03/HelloworldSystemconfig.tar'>Descargar</a>]]></content:encoded>
			<wfw:commentRss>http://onestic.com/configuracion-de-magento-system-config/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Top 10 extensiones para Magento</title>
		<link>http://onestic.com/top-10-extensiones-para-magento/</link>
		<comments>http://onestic.com/top-10-extensiones-para-magento/#comments</comments>
		<pubDate>Mon, 01 Feb 2010 12:32:35 +0000</pubDate>
		<dc:creator>Sergio Baixauli</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[extensiones]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://onestic.com/?p=783</guid>
		<description><![CDATA[A continuación una relación de las extensiones que a mi juicio son imprescindibles en una integración de Magento. Luego evindentemente hay una personalización y modificación de cada uno de ellos para que realicen exactamente  lo que necesitamos en nuestra tienda de compercio electrónico.

También dependerá del tipo de tienda y el público objetivo al que queremos [...]]]></description>
			<content:encoded><![CDATA[<p>A continuación una relación de las extensiones que a mi juicio son imprescindibles en una integración de Magento. Luego evindentemente hay una personalización y modificación de cada uno de ellos para que realicen exactamente  lo que necesitamos en nuestra tienda de compercio electrónico.
</p>
<p>También dependerá del tipo de tienda y el público objetivo al que queremos llegar. Os animo a completar la lista de extensiones, nosotros usamos unas cuantas más, pero tampoco las vamos a poner todas, no tendría sentido. Con estas por lo menos cubrimos alguna de las carencias que tiene Magento por defecto.
</p>
<br/>
<h3>1.- <a href="http://www.magentocommerce.com/extension/518/blank-theme">Blank Theme</a></h3>
Fundamental. Usado como base de todas nuestras tiendas. Resetea todos los estilos y te permite empezar desde cero. Como inconveniente, pues que te toca hacerlo todo a ti (layouts, styles, images, etc). Como ventaja, que lo dejas como quieres <img src='http://onestic.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> 
<br/>
<a href="http://www.magentocommerce.com/extension/518/blank-theme"><img class="alignnone size-full wp-image-784" title="download" src="http://onestic.com/wp-content/uploads/2010/02/download.png" alt="" width="228" height="146" /></a>
<br/>
<h3>2.- Actualizaciones de Magento</h3>
Antes de seguir, vamos a comprobar que realmente tenemos la úlitma versión estable de Magento con todos sus parches de seguridad aplicados. Desde el Magento connect poner "<em>magento-core/Mage_All_Latest</em>".
<br/>
<br/>
<h3>3.- <a href="http://www.magentocommerce.com/extension/reviews/module/1426">TinyMCE para Magento</a></h3>
Nos permite meter un Tiny en los campos del administrador que nos hagan falta. Cuando salga la versión estable de Magento 1.4 este plugin no tendrá demasiado sentido puesto que ya lo llevará de serie, pero seguro que sacan alguna mejora.
<br/>
<a href="http://www.magentocommerce.com/extension/reviews/module/1426"><img class="alignnone size-full wp-image-785" title="146" src="http://onestic.com/wp-content/uploads/2010/02/146.png" alt="" width="228" height="146" /></a>
<br/>
<h3>4.- <a href="http://www.magentocommerce.com/extension/reviews/module/171">Fooman Google Analytics Plus</a></h3>
Importante si queremos controlar lo que pasa en nuestros carritos de la compra. Podemos ver (utilizando analytics) los pasos que siguen nuestros clientes. Es complicado de utilizar y la documentación que existe de este módulo no es del todo correcta, pero seguro que acaba mejorando.

<a href="http://www.magentocommerce.com/extension/reviews/module/171"><img class="alignnone size-full wp-image-786" title="fooman google analytics" src="http://onestic.com/wp-content/uploads/2010/02/fooman-google-analytics.png" alt="" width="228" height="146" /></a>
<h3>5.- <a href="http://www.magentocommerce.com/module/2333/magento-social-bookmarking">Compartir con redes sociales</a></h3>
Para compartir contenidos en las diferentes redes sociales que actualmente están de moda (twitter, facebook, etc.) contamos con esta estupenda extensión de la gente de Magentix.

<a href="http://www.magentocommerce.com/module/2333/magento-social-bookmarking"><img class="alignnone size-full wp-image-794" title="magento social bookmarking" src="http://onestic.com/wp-content/uploads/2010/02/magento-social-bookmarking.jpg" alt="" width="228" height="146" /></a>
<h3>6.- <a href="http://www.magentocommerce.com/extension/1468/order-status">Diferentes estados para cada pedido</a></h3>
Nos permite cambiar los estados de un pedido. Como sabréis, por defecto estos son muy pocos y de esta manera podemos controlar los diferentes pasos que debe seguir antes de darlo por cerrado.

<a href="http://www.magentocommerce.com/extension/1468/order-status"><img class="alignnone size-full wp-image-788" title="magento order status" src="http://onestic.com/wp-content/uploads/2010/02/magento-order-status.jpg" alt="" width="228" height="146" /></a>
<h3>7.- <a href="http://www.magentocommerce.com/extension/reviews/module/1447">Comentarios desde el CMS</a></h3>
Mediante esta extensión podemos incluir una porción con los últimos comentarios y valoraciones de nuestros clientes en cualquier parte de la web. Muy útil y muy configurable.

<a href="http://www.magentocommerce.com/extension/reviews/module/1447"><img class="alignnone size-full wp-image-789" title="magento latest reviews" src="http://onestic.com/wp-content/uploads/2010/02/magento-latest-reviews1.jpg" alt="" width="228" height="146" /></a>
<h3>8.- <a href="http://www.magentocommerce.com/extension/873/delete-orders">Borrar pedidos en Magento</a></h3>
Inclreible pero cierto, magento no dispone (por lo menos en esta versión) de ninguna opción para borrar sus pedidos. Al desarrollar tiendas en magento hacemos multitud de pruebas, así que de vez en cuando tenemos que borrar pedidos. Para ello utilizaremos la extensión de Delete Orders. Para cosas más concretas no nos queda otra que meterle mano a la Base de Datos directamente.

<a href="http://www.magentocommerce.com/extension/873/delete-orders"><img class="alignnone size-full wp-image-793" title="magento delete orders" src="http://onestic.com/wp-content/uploads/2010/02/magento-delete-orders.png" alt="" width="228" height="146" /></a>
<h3>9.- <a href="http://www.magentocommerce.com/extension/748/enhanced-product-grid">Listado de productos con imagenes en el administrador</a></h3>
Muy útilo sobretodo cuando tenemos que modificar nuestros productos desde el administrador y no queremos entrar en el detalle para ver su imágen. Esta extensión nos permite listar los productos personalizando las columnas. Lo malo es que no coge el thumb y carga la img redimensionada. Veremos si mejoran esta parte.

<a href="http://www.magentocommerce.com/extension/748/enhanced-product-grid"><img class="alignnone size-full wp-image-790" title="magento enhanced admin prodcuts" src="http://onestic.com/wp-content/uploads/2010/02/magento-enhanced-admin-prodcuts.png" alt="" width="228" height="146" /></a>
<h3>10.- <a href="http://www.magentocommerce.com/extension/763/vertical-navigation-with-css-classes">Categorías en vertical</a></h3>
Posiblemente uno de los dilemas que nos encontraremos cuando montamos una tienda online es la disposición de las categorías. Si finalmente optamos por ponerla en vertical (por ejemplo en el sidebar), esta es sin duda la extensión que no hace falta. Se trata de Vertical Navigation CSS.

<a href="http://www.magentocommerce.com/extension/763/vertical-navigation-with-css-classes"><img class="alignnone size-full wp-image-792" title="vertical navigation" src="http://onestic.com/wp-content/uploads/2010/02/vertical-navigation.png" alt="" width="228" height="146" /></a>]]></content:encoded>
			<wfw:commentRss>http://onestic.com/top-10-extensiones-para-magento/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Resúmen Barcamp E-commerce. El estado del comercio electrónico en España.</title>
		<link>http://onestic.com/el-estado-del-comercio-electronico-en-espana-resumen-barcamp-e-commerce/</link>
		<comments>http://onestic.com/el-estado-del-comercio-electronico-en-espana-resumen-barcamp-e-commerce/#comments</comments>
		<pubDate>Fri, 29 Jan 2010 11:43:00 +0000</pubDate>
		<dc:creator>Sergio Baixauli</dc:creator>
				<category><![CDATA[Opinión]]></category>
		<category><![CDATA[barcamp e-commerce]]></category>
		<category><![CDATA[comercio electrónico]]></category>
		<category><![CDATA[e-commerce]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[tiendas on-line]]></category>

		<guid isPermaLink="false">http://onestic.com/?p=775</guid>
		<description><![CDATA[Ayer estuvimos en Barcelona en las jornadas de la Barcamp E-commerce. Como empresa dedicada al desarrollo de tiendas en Magento en España teniamos que estar presentes para conocer de primera mano cuál es la situación en nuestro país sobre el comercio electrónico.
Algunas "conclusiones" hemos sacado de todo lo que se habló, la mayoría positivas. Esperamos [...]]]></description>
			<content:encoded><![CDATA[Ayer estuvimos en Barcelona en las jornadas de la <strong><a href="http://barcamp-ecommerce.es/">Barcamp E-commerce</a></strong>. Como empresa dedicada al <strong>desarrollo de tiendas en Magento en España</strong> teniamos que estar presentes para conocer de primera mano cuál es la situación en nuestro país sobre el <strong>comercio electrónico</strong>.
Algunas "conclusiones" hemos sacado de todo lo que se habló, la mayoría positivas. Esperamos que las pequeñas anotaciones mentales que hicimos os sirvan de ayuda si estáis pensando en montar una <strong>tienda de comercio electrónico</strong> con Magento (u otras alternativas) en España.
<ol>
	<li>El mercado Español está "virgen". Llevamos un retraso de 4 años con respecto a países como UK y 2 con respecto a países más cercanos (Francia). Esto significa que todavía <strong>queda mucho negocio</strong>.</li>
	<li>Hay <strong>oportunidades</strong>, y si conseguimos encontrar nuestro nicho de mercado podemos sacar muy buenos rendimientos.</li>
	<li>Los principales problemas que tenemos son tres: <strong>la logística</strong> (que hasta el momento no ha sabido adaptarse a los tiempos que corren), la confianza y los métodos de pago (muchos de ellos intrusivos e incómodos). <strong><a href="http://www.mrw.es/se/MRW_logistica_e_commerce.asp?menu=5">MRW </a></strong>ha lanzado una solución (todavía no sé si muy novedoso) específico para este tipo de negocios.</li>
	<li>Gracias a tiendas como <a href="http://es.vente-privee.com">vente-privee</a> o <a href="http://es.buyvip.com/index.jsp">buy-vip</a> los usuarios están perdiendo el miedo a comprar en internet, cosa que por otra parte nos beneficia a todos. Cuanta más gente compre en internet más oportunidad de negocio tendremos.</li>
	<li>El perfil del comprador está cambiando. Pasamos del típico hombre de mediana edad (25-35 años), "experto" en tecnología, a mujeres de cualquier edad que van de compras y buscan ofertas desde la web. Si el ahorro merece la pena, cualquiera está dispuesto a perder 5 minutos delante del ordenador para comprar.</li>
	<li>Los métodos de <strong>captación de tráfico</strong> para tiendas como el <strong>SEO </strong>75%, <strong>SEM </strong>(el que mejor ROI tiene, en teoría), <strong>publicidad </strong>en portales, presencia en <strong>Market places </strong>locales/nacionales,  directorios, <strong>email-marketing </strong>(los datos que ofrecieron dan que pensar), relaciones públicas con otros <strong>Blogs</strong>, <strong>notas de prensa</strong> y la utilización <strong>herramientas 2.0</strong>) son cada vez más efectivas a la hora de sectorizar nuestro público objetivo.</li>
	<li><strong>Analítica web</strong>. Imprescindible. Se estima que los ratios de conversión oscilan, en general, entre el 1% y el 3%. Con estas cifras, las datos proporcionados por herramientas como Analytics deberían bastar. Si conseguimos alcanzar un 3% deberíamos plantearnos la utilización de herramientas que completarán estos datos y nos ofrecerán nuevos puntos de vista.</li>
	<li><strong>Microsegmentación</strong>. Tener claro cuál es nuestro público objetivo y cómo podemos llegar al él de la forma más rápida.</li>
	<li><strong>Fidelización de usuarios</strong>, leads y retorno de la inversión. Planes de marketing, campañas online/offline y la famosa figura del <strong>Community Manager</strong>.</li>
</ol>
En fin, conceptos que todos tenemos claros y pocos aplican (aplicamos...). Esto no es más que una tormenta de ideas que escuchamos ayer y que - ciertas o no - deberían hacernos recapacitar. ¿Estamos haciendo las cosas realmente bien?]]></content:encoded>
			<wfw:commentRss>http://onestic.com/el-estado-del-comercio-electronico-en-espana-resumen-barcamp-e-commerce/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Crear un usuario administrador en Magento desde código</title>
		<link>http://onestic.com/crear-un-usuario-administrador-en-magento-desde-codigo/</link>
		<comments>http://onestic.com/crear-un-usuario-administrador-en-magento-desde-codigo/#comments</comments>
		<pubDate>Tue, 26 Jan 2010 12:36:50 +0000</pubDate>
		<dc:creator>Sergio Baixauli</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[admin]]></category>
		<category><![CDATA[creación de usuarios]]></category>
		<category><![CDATA[magento]]></category>

		<guid isPermaLink="false">http://onestic.com/?p=766</guid>
		<description><![CDATA[¿Cómo podemos crear un nuevo usuario administrador si perdemos la contraseña? Bueno, existe una "técnica" en la que modificando un fichero podemos crear un usuario administrador de una manera sencilla y rápida. Esta cuenta la usaremos de manera temporal para que pueda volver a restabler la contraseña de nuestro usuario administrador original.

Para ello debemos tocar [...]]]></description>
			<content:encoded><![CDATA[¿Cómo podemos crear un nuevo <strong>usuario administrador</strong> si perdemos la contraseña? Bueno, existe una "técnica" en la que modificando un fichero podemos crear un usuario administrador de una manera sencilla y rápida. Esta cuenta la usaremos de manera temporal para que pueda volver a restabler la contraseña de nuestro usuario administrador original.

Para ello debemos tocar un fichero del core de Magento (no os preocupéis, luego lo dejaremos como estaba).

<strong>/app/code/core/Mage/Adminhtml/controllers/indexController.php</strong>

Buscamos <strong>function loginAction </strong>y la dejamos así (hacer una copia de seguridad para dejar el fichero como estaba cuando terminemos):

<div class="igBar"><span id="lphp-64"><a href="#" onclick="javascript:showPlainTxt('php-64'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-64">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">public <span style="color:#000000; font-weight:bold;">function</span> loginAction<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//Zend_Debug::dump(Mage::getSingleton('admin/session'));</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span> <span style="color:#006600; font-weight:bold;">&#40;</span>Mage::<span style="color:#006600;">getSingleton</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'admin/session'</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="color:#006600;">isLoggedIn</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;_redirect<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'*'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$loginData</span> = <span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">getRequest</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="color:#006600;">getParam</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'login'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span> = <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#616100;">if</span><span style="color:#006600; font-weight:bold;">&#40;</span> <a href="http://www.php.net/is_array"><span style="color:#000066;">is_array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$loginData</span><span style="color:#006600; font-weight:bold;">&#41;</span> &amp;&amp; <a href="http://www.php.net/array_key_exists"><span style="color:#000066;">array_key_exists</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'username'</span>, <span style="color:#0000FF;">$loginData</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'username'</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#0000FF;">$loginData</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'username'</span><span style="color:#006600; font-weight:bold;">&#93;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> <span style="color:#616100;">else</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'username'</span><span style="color:#006600; font-weight:bold;">&#93;</span> = <span style="color:#000000; font-weight:bold;">null</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; try</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$user</span> = Mage::<span style="color:#006600;">getModel</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"admin/user"</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;<span style="color:#006600;">setUsername</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'tempadmin'</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;<span style="color:#006600;">setFirstname</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Firstname'</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;<span style="color:#006600;">setLastname</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'Lastname'</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;<span style="color:#006600;">setEmail</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'tempadmin@tempadmin.com'</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;<span style="color:#006600;">setPassword</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'tempadmin123'</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; -&gt;<span style="color:#006600;">save</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$role</span> = Mage::<span style="color:#006600;">getModel</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"admin/role"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$role</span>-&gt;<span style="color:#006600;">setParent_id</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$role</span>-&gt;<span style="color:#006600;">setTree_level</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$role</span>-&gt;<span style="color:#006600;">setRole_type</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'U'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$role</span>-&gt;<span style="color:#006600;">setUser_id</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$user</span>-&gt;<span style="color:#006600;">getId</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$role</span>-&gt;<span style="color:#006600;">save</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <a href="http://www.php.net/echo"><span style="color:#000066;">echo</span></a> <span style="color:#FF0000;">"Special user created"</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; catch <span style="color:#006600; font-weight:bold;">&#40;</span>Exception <span style="color:#0000FF;">$ex</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#008000; font-style:italic;">#print_r($data);</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; <span style="color:#0000FF;">$this</span>-&gt;_outTemplate<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'login'</span>, <span style="color:#0000FF;">$data</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> </div></li></ol></div>
</div></div><br />

Ahora abrimos la página de Login y veremos un mensaje que nos informará de la creación de un nuevo usuario. Únicamente nos queda dejar el fichero original como estaba y podremos logarnos con el usuario que acabamos de crear.
<strong> IMPORTANTE</strong>: una vez restablecida la contraseña o el <strong>usuario administrador original</strong>, tenemos que borrar todos los elementos que hemos creado y dejar los ficheros originales para no dejar ningún agujero de seguridad.
Gracias por el aporte de <a href="http://blog.magentomagik.com/how-to-create-an-admin-account-from-magento-code/">magentomagik</a>.]]></content:encoded>
			<wfw:commentRss>http://onestic.com/crear-un-usuario-administrador-en-magento-desde-codigo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configurar múltiples tiendas con Magento</title>
		<link>http://onestic.com/configurar-multiples-tiendas-con-magento/</link>
		<comments>http://onestic.com/configurar-multiples-tiendas-con-magento/#comments</comments>
		<pubDate>Mon, 18 Jan 2010 11:19:06 +0000</pubDate>
		<dc:creator>Sergio Baixauli</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[multiples tiendas]]></category>
		<category><![CDATA[tiendas con magento]]></category>

		<guid isPermaLink="false">http://onestic.com/?p=707</guid>
		<description><![CDATA[El problema del día es la configuración de múltiples tiendas en Magento. No me refiero a la creación de "vistas de tienda", ni a "nombres de tienda",  esto ya lo contaremos otro día, me refiero a la creación de múltiples sitios gestionados desde el mismo administrador. Nos hemos encontrado con este problema en una [...]]]></description>
			<content:encoded><![CDATA[El problema del día es la configuración de múltiples<strong> tiendas en Magento</strong>. No me refiero a la creación de "<strong>vistas de tienda</strong>", ni a "<strong>nombres de tienda</strong>",  esto ya lo contaremos otro día, me refiero a la creación de múltiples sitios gestionados desde el mismo administrador. Nos hemos encontrado con este problema en una de nuestras tiendas de Magento, así que voy a aprovechar para hacer algo de documentación. Como veréis a lo largo del post se ofrecen múltiples posibilidades, que cada uno coja la que mejor le venga.

Vamos a tratar los siguientes puntos:
<ol>
	<li>Estructura URL</li>
	<li>Alojamiento compartido</li>
	<li>Añadir una nueva tienda en Magento</li>
	<li>Metodo de dominio aparcado</li>
	<li>Añadir una tienda a un dominio</li>
	<li>Método de subdominio</li>
	<li>Tienda en subdirectorio</li>
	<li>Administración de varias tiendas</li>
</ol>
<h3>Estructura URL</h3>
La estructura de tu dominio es algo muy personal. Puedes tener por ejemplo dos tiendas que se ejecuten en el mismo dominio y que a su vez comparten la misma instancia de Magento. Por ejemplo:

<div class="igBar"><span id="lcode-81"><a href="#" onclick="javascript:showPlainTxt('code-81'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-81">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http:<span style="color:#FF9933; font-style:italic;">//tienda.com/zapatos</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http:<span style="color:#FF9933; font-style:italic;">//tienda.com/camisetas </span></div></li></ol></div>
</div></div><br />

Estas tiendas podrían configurarse sin problemas en dos dominios por separado y seguir manteniendo la misma instancia de Magento:

<div class="igBar"><span id="lcode-82"><a href="#" onclick="javascript:showPlainTxt('code-82'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-82">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http:<span style="color:#FF9933; font-style:italic;">//zapatos.com</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http:<span style="color:#FF9933; font-style:italic;">//camisetas.com </span></div></li></ol></div>
</div></div><br />

Otra forma de hacerlo podría ser una pagina principal que distribuye las tiendas en dos:

<div class="igBar"><span id="lcode-83"><a href="#" onclick="javascript:showPlainTxt('code-83'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-83">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http:<span style="color:#FF9933; font-style:italic;">//tienda.com</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http:<span style="color:#FF9933; font-style:italic;">//zapatos.tienda.com</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http:<span style="color:#FF9933; font-style:italic;">//camisetas.tienda.com </span></div></li></ol></div>
</div></div><br />

Independientemente de la estrucutura elegida lo que se pretende es tener la misma base de código para todas las tiendas y un mismo administrador desde el que gestionaremos todo el catálogo, intentando que la gestión se lo más cómoda posible. Muchos de vosotros os preguntaréis qué necesidad tenemos de hacer esto,  pero cuando llevas muchas tiendas y cada una de ellas tiene sus peculiaridades os será muy útil (o por lo menos eso espero).
<h3>Alojamiento compartido.</h3>
El problems que nos encontramos en este tipo de alojamientos es que si queremos utilizar certificados SSL independientes para cada tienda (es decir, no queremos compartirlos entre las tiendas durante el proceso de compra), por ejemplo: los usuarios de zapatos.com serían redirigidos al camistas.com para terminar el proceso de compra y poder usar así el certificado SSL, no podremos optar por esta opción.

Esto ocurre por algo muy sencillo, los certificados SSL requieren direcciones IP dedicadas. Y en un alojamiento compartido esto lo tenemos complicado <img src='http://onestic.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> 

Así que si necesitas tu certificado SSL tendrás que buscar algún servidor dedicado. No te queda otra.
<h3>Añadir una nueva tienda en Magento</h3>
Lo primero que tenemos que hacer es añadir una nueva tienda para poder empezar con nuestras pruebas. (Asumimos que ya tienes una versión de Magento instalada...) por ejemplo en zapatos.com. Ahora ajustaremos los siguientes parametros:

1.- Nos autenticamos en el admin

2.- Nos vamos a <strong>Catálogo -&gt; Administrar categorías</strong>

3.- Pulsamos en Añadir categoría padre

4.- En la parte de la derecha podemos poner zapatos.com y activamos la categoría

5.- Ahora vamos a la solapa de <strong>Configuración </strong>y seleccionamos <strong>Administrar tiendas</strong>

6.- Creamos un nuevo Website (Create Website), por ejemplo camisetas.com. En el código ponemos zapatos (después usaremos este código)

7.- Guardamos y <strong>creamos una Tienda</strong> (Create Store)

8.- Seleccionamos del desplegable camisetas.com. Para el nombre seleccionaremos "Main Store" y para el root Category elegiremos camisetas.com del desplegable.

9.- Guardamos y creamos por último una <strong>vista de tienda</strong> (Create store view).

10.- Para la vista seleccionaremos "Main store" del desplegable, nos aseguramos que es para zapatos.com. Para el nombre podemos poner spanish y para el código camisetas_es. El estado será "activo".

11.- Guardamos la vista (en realidad los pasos parecen un poco confusos, pero es pura  lógica). Creamos un website, luego una tienda y luego una vista para la tienda.

12- Ahora desde el administrador pulsamos <strong>Configuración</strong>

13.- Cambiamos el ámbito de la tienda desde la parte superior izquierda de <strong>Default config</strong> a <strong>Camisetas.com</strong>

14.- Seleccionamos Web en el sidebar. En las opciones <strong>Unsecure </strong>y <strong>Secure</strong>. Desmarcar Use Default en Base URL e introducir http://camisetas.com/

15. Guardamos.

Ahora que hemos configurado nuestra segunda tienda tenemos que elegir uno de los métodos que vamos a explicar para la URL.
<h3>Dominio aparcado</h3>
Para utilizar este método vamos a suponer que disponemos de dos dominios comprados (zapatos.com y camisetas.com). El dominio principal será zapatos.com y la instancia de Magento estará instalada ahí. Así que lo vamos a hacer es configurar el dominio secundario (camisetas.com) para que tire del primero.
Los dos dominios estarán activos y en uno de ellos tendremos la instalación de Magento.

Editamos el fichero index.php y buscamos la siguiente línea:

<div class="igBar"><span id="lphp-84"><a href="#" onclick="javascript:showPlainTxt('php-84'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-84">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="color:#006600;">run</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />
Ahora la sustituimos por estas:

<div class="igBar"><span id="lphp-85"><a href="#" onclick="javascript:showPlainTxt('php-85'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-85">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">switch</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$_SERVER</span><span style="color:#006600; font-weight:bold;">&#91;</span><span style="color:#FF0000;">'HTTP_HOST'</span><span style="color:#006600; font-weight:bold;">&#93;</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// zapatos.com</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">case</span> <span style="color:#FF0000;">'zapatos.com'</span>:</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">case</span> <span style="color:#FF0000;">'www.zapatos.com'</span>:</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="color:#006600;">run</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'zapatos'</span>, <span style="color:#FF0000;">'website'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">break</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#FF9933; font-style:italic;">// camisetas.com (default store)</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#000000; font-weight:bold;">default</span>:</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="color:#006600;">run</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#616100;">break</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> </div></li></ol></div>
</div></div><br />
Lo importante no es el código, sino la idea de que configurando el index.php y haciendo un pequeño switch podemos controlar y rediccionar tantas instancias y tiendas de Magento como queramos (en teoría).
<h3>Añadir una tienda a un dominio. Addon domain</h3>
Este método es muy parecido al anterior. Dos tiendas, con una única instalación de Magento pero que operan de manera distinta. Imaginemos que además de la tienda, en uno de los dominios queremos tener un Blog. Con la opción anterior esto no es posible ya que directamente tenemos una redireción hecha desde el mismo cPanel.

Para usar esta opción entraremos en nuestro cpanel y pulsaremos "Addon domains". Para los que no sepan que es un Addon domain copio-pego "<em>te permite añadir otro domi nio a tu plan de alojamiento y ver la misma web pero desde otro dominio diferente, para esto el plan de alojamiento que has contratado debe permitir añadir más dominios, esto tiene otras ventajas como es la posiblidad de tener correos o subdominios bajo ese dominio. Lo único que debes hacer es agregarlo en el panel de control y en el panel de gestión del dominio poner las dns del servidor en donde está tu plan de alojamiento (las mismas que el dominio principal</em>)".

La idea es compartir Magento mediante enlaces simbólicos y cada uno con sus carpetas de contenido adicional

1.- Suponemos que ya tenemos la primera instalación de la tienda en Magento en uno de nuestros dominios.

2.- El segundo dominio donde vamos a hacer la "instalación" es zapatos.com

3.- Lo creamos desde nuestro cPanel (tal y como hemos comentado antes) y entramos via ssh a configurarlos. Deberíamos estar en la carpeta cd zapatos.com/

4.- Durante la creación del dominio zapatos.com, el cpanel nos dió a elegir el Document Root, que por defecto es public_html, hay que quitarlo y dejar el que nos pone por defecto (zapatos.com). No me voy a extender mucho en estos pasos.

5.- Copiamos el index.php y el .htaccess de la instalación que ya tenemos funcionando
<div class="igBar"><span id="lcode-86"><a href="#" onclick="javascript:showPlainTxt('code-86'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-86">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cp ../public_html/index.<span style="">php</span> ../public_html/.<span style="">htaccess</span> . </div></li></ol></div>
</div></div><br />

6.- Editamos el index.php que acabamos de copiar y cambiamos esto:
<div class="igBar"><span id="lphp-87"><a href="#" onclick="javascript:showPlainTxt('php-87'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-87">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="color:#006600;">run</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />
por esto otro
<div class="igBar"><span id="lphp-88"><a href="#" onclick="javascript:showPlainTxt('php-88'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-88">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="color:#006600;">run</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'zapatos'</span>, <span style="color:#FF0000;">'website'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;&nbsp; <span style="color:#FF9933; font-style:italic;">//zapatos es el nombre del website creado en Magento </span></div></li></ol></div>
</div></div><br />

7.- Y por último creamos los enlaces simbólicos de aquellos directorios que nos harán falta:
<div class="igBar"><span id="lcode-89"><a href="#" onclick="javascript:showPlainTxt('code-89'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-89">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ln -s ../public_html/<span style="color:#800000;color:#800000;">404</span>/ ./<span style="color:#800000;color:#800000;">404</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ln -s ../public_html/app/ ./app</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ln -s ../public_html/includes/ ./includes</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ln -s ../public_html/js/ ./js</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ln -s ../public_html/media/ ./media</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ln -s ../public_html/report/ ./report</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ln -s ../public_html/skin/ ./skin</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">ln -s ../public_html/var/ ./var </div></li></ol></div>
</div></div><br />
<h3>Método de subdominio</h3>
Para este método la idea es que las tiendas nos queden de esta forma:
<div class="igBar"><span id="lcode-90"><a href="#" onclick="javascript:showPlainTxt('code-90'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-90">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">http:<span style="color:#FF9933; font-style:italic;">//tienda.com/zapatos</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">htto:<span style="color:#FF9933; font-style:italic;">//tienda.com/camisetas </span></div></li></ol></div>
</div></div><br />

1.- Entramos via SSH a nuestro dominio y creamos la carpeta para una de las tiendas
<div class="igBar"><span id="lcode-91"><a href="#" onclick="javascript:showPlainTxt('code-91'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-91">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cd public_html</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">mkdir zapatos/</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cd zapatos/ </div></li></ol></div>
</div></div><br />

2.- Copiamos los ficheros de la tienda que ya tenemos instalada
<div class="igBar"><span id="lcode-92"><a href="#" onclick="javascript:showPlainTxt('code-92'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-92">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">cp ../public_html/index.<span style="">php</span> ../public_html/.<span style="">htaccess</span> . </div></li></ol></div>
</div></div><br />

3.- Editamos el index.php y cambiamos esto:
<div class="igBar"><span id="lcode-93"><a href="#" onclick="javascript:showPlainTxt('code-93'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-93">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$mageFilename = <span style="color:#CC0000;">'app/Mage.php'</span>; </div></li></ol></div>
</div></div><br />

por esto otro

<div class="igBar"><span id="lcode-94"><a href="#" onclick="javascript:showPlainTxt('code-94'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-94">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">$mageFilename = <span style="color:#CC0000;">'../public_html/app/Mage.php'</span>; </div></li></ol></div>
</div></div><br />

luego cambiar esto:
<div class="igBar"><span id="lcode-95"><a href="#" onclick="javascript:showPlainTxt('code-95'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-95">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="">run</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />

por esto otro

<div class="igBar"><span id="lcode-96"><a href="#" onclick="javascript:showPlainTxt('code-96'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">CODE:</span><br /><div id="code-96">
<div class="code"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Mage::<span style="">run</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#CC0000;">'zapatos'</span>, <span style="color:#CC0000;">'website'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />
<h3>Administración de varias tiendas</h3>
Es importante recordar que en la administración de múltiples tiendas en magento usaremos siempre el mismo admin y habrá que tener especial cuidado cuando cambiemos el alcance de nuestras acciones (para todas las tiendas, para una sola, para cada vista, etc.). Recodar que para cada opción de configuración de la tienda pordemos usar los valores por defecto o aplicar unos en concreto para esa tienda/vista.

Toda esta información la he sacado de un post (muy bueno por cierto) que encontré en el Blog de <a href="http://www.crucialwebhost.com/blog/how-to-setup-multiple-magento-stores/">Crucial</a>. He cambiado / añadido algunas cosas que me han parecido interesantes para completarlo.]]></content:encoded>
			<wfw:commentRss>http://onestic.com/configurar-multiples-tiendas-con-magento/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>SendraValencia. Tienda de botas en Magento</title>
		<link>http://onestic.com/sendravalencia-tienda-de-botas-en-magento/</link>
		<comments>http://onestic.com/sendravalencia-tienda-de-botas-en-magento/#comments</comments>
		<pubDate>Wed, 13 Jan 2010 10:46:59 +0000</pubDate>
		<dc:creator>Sergio Baixauli</dc:creator>
				<category><![CDATA[Destacado]]></category>
		<category><![CDATA[Proyectos]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[tienda de botas]]></category>
		<category><![CDATA[tienda en magento]]></category>

		<guid isPermaLink="false">http://onestic.com/?p=674</guid>
		<description><![CDATA[Por fin terminamos la nueva versión de la tienda de botas SendraValencia. Esta tienda ya ha pasado por varias versiones y tecnologías. Desde sus comienzos en ASP, pasando por oscommerce, zencart y finalmente por Magento. Durante todos estos años hemos probado multitud de plataformas y sin duda Magento es actualmente la mejor opción. Sigue teniendo [...]]]></description>
			<content:encoded><![CDATA[Por fin terminamos la nueva versión de la tienda de botas <a href="http://sendravalencia.com">SendraValencia</a>. Esta tienda ya ha pasado por varias versiones y tecnologías. Desde sus comienzos en ASP, pasando por <a href="http://www.oscommerce.com/">oscommerce</a>,<a href="http://www.zen-cart.com/"> zencart</a> y finalmente por <a href="http://www.magentocommerce.com">Magento</a>. Durante todos estos años hemos probado multitud de plataformas y sin duda <strong>Magento es actualmente la mejor opción</strong>. Sigue teniendo carencias y fallos incomprensibles a estas alturas que esperemos sean corregidos lo antes posible, pero brinda a los desarrolladores una plataforma muy flexible y organizada para crear tiendas de una manera relativamente rápida.

En esta versión como notas particulares hemos desarrollado una sincoronización de inventario y estamos pendientes de integrar la pasarela de pago con el Banco Santander. Para <strong>optimizar los procesos de compra</strong> se han reducido los pasos y se han incorporado <strong>herramientas sociales</strong> para dar mayor difusión a su catálogo.

Esperemos que os guste la nueva versión.]]></content:encoded>
			<wfw:commentRss>http://onestic.com/sendravalencia-tienda-de-botas-en-magento/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Nombre de las categorías en la URL. SEO sin duplicar contenido en Magento</title>
		<link>http://onestic.com/nombre-de-las-categorias-en-la-url-seo-sin-duplicar-contenido-en-magento/</link>
		<comments>http://onestic.com/nombre-de-las-categorias-en-la-url-seo-sin-duplicar-contenido-en-magento/#comments</comments>
		<pubDate>Tue, 12 Jan 2010 16:15:23 +0000</pubDate>
		<dc:creator>Sergio Baixauli</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[seo]]></category>

		<guid isPermaLink="false">http://onestic.com/?p=663</guid>
		<description><![CDATA[Una vez terminada una de nuestras tiendas, hemos detectado un problema que complica la indexación de la tienda. Me refiero a la forma que tiene Magento de montar las urls para cada producto. Se trata de contenido duplicado.
Voy a poner un par de ejemplos para intentar explicar el problema.
 http://midominio/producto-1

http://midominio/mi-categoria/sug-categoria/producto-1

¿Cuál de las dos es la [...]]]></description>
			<content:encoded><![CDATA[Una vez terminada una de nuestras tiendas, hemos detectado un problema que complica la indexación de la tienda. Me refiero a la forma que tiene Magento de montar las urls para cada producto. Se trata de <a href="http://www.google.com/support/webmasters/bin/answer.py?answer=66359">contenido duplicado</a>.
Voy a poner un par de ejemplos para intentar explicar el problema.
<em> http://midominio/producto-1

http://midominio/mi-categoria/sug-categoria/producto-1</em>

¿Cuál de las dos es la buena? En realidad, <strong>Magento </strong>conoce este problema y como no es capaz de determinar la principal (<a href="http://vagabundia.blogspot.com/2009/02/canonical-url-lo-nuevo-las-dudas-y.html">canonical url</a>) deja las dos por buenas.

Buscando por google he encontrado un <a href="http://www.mikesmullin.com/development/use-categories-product-urls-magento-seo-without-duplicate-content/">artículo</a> bastante interesante que cuenta como solucionar (en parte) este problema.

Lo primero que tenemos que hacer es activar la opción de <a href="http://www.magentocommerce.com/wiki/welcome_to_the_magento_user_s_guide/chapter_3#search_engine_optimizations">Usar rutas de categorías para la URL de los productos</a>. Esto lo podemos encontrar en el <strong>Admin -&gt; Sistema -&gt; Configuración -&gt; Catálogo -&gt;</strong><strong>Optimizaciones para el motor de búsqueda.</strong>

La acticavión de esta opción determina como el URL Rewrites se autogenera. Si elegimos "si" la URL de los productos incluirá la categoría asociada. Si elegimos "No" la URL del producto únicamente incluirá el nombre del producto, independientemente del número de categorías al que esté asociado.

Una vez activada esta opción podemos usar cualquiera de estas URL's:
<ul>
	<li><strong>/catalog/producto/view/id/&lt;product_id&gt;</strong>
<small>ejemplo: http://www.midominio.com/catalog/producto/view/id/6</small>
Interna de Magento; nunca se ve.</li>
	<li><strong>/catalog/producto/view/id/&lt;product_id&gt;/category/&lt;category_id&gt;</strong>
<small>ejemplo: http://www.midominio.com/catalog/producto/view/id/6/category/10</small>
Interna de Magento; nunca se ve.</li>
	<li><strong>/nombre-del-producto</strong>
<small>ejemplo: http://www.midominio.com/super-dee-duper-tent-1000-olive</small>
Normalmente usada en el front de la página, en los bloque, etc.
Esto ocurre porque Magento no sabe en que <acronym title="Uniform Resource Locator">URL</acronym> debe mostrar el producto (ya que permite ubicar un mismo producto en varias categorías). Por lo tanto elige la opción de no mostrar en la URL ninguna.</li>
	<li><strong>/category-1/sub-category-1/nombre-del-producto</strong>
<small>ejemplo: http://www.midominio.com/sporting-goods/camping-hiking/super-dee-duper-tent-1000-olive</small>
Usado desde las páginas de categorías.</li>
	<li><strong>/category-2/nombre-del-producto</strong>
<small>ejemplo: http://www.midominio.com/affordable-housing/super-dee-duper-tent-1000-olive</small>
Usado desde las páginas de categorías.</li>
	<li><strong>etc.</strong>
Dependiendo del número de categorías.</li>
</ul>
Bueno, por lo que comenta el autor del artículo, la forma de solucionarlo (ojo, está tocando el Core de Magento) es aplicando el siguiente parche:

<div class="igBar"><span id="lphp-98"><a href="#" onclick="javascript:showPlainTxt('php-98'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-98">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">Index: app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Collection.php</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">===================================================================</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">--- app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Collection.php <span style="color:#006600; font-weight:bold;">&#40;</span>revision <span style="color:#CC66CC;color:#800000;">2102</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">+++ app/code/core/Mage/Catalog/Model/Resource/Eav/Mysql4/Product/Collection.php <span style="color:#006600; font-weight:bold;">&#40;</span>working <a href="http://www.php.net/copy"><span style="color:#000066;">copy</span></a><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">@@ -<span style="color:#CC66CC;color:#800000;">553</span>,<span style="color:#CC66CC;color:#800000;">7</span> +<span style="color:#CC66CC;color:#800000;">553</span>,<span style="color:#CC66CC;color:#800000;">11</span> @@</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-&gt;<span style="color:#006600;">from</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#0000FF;">$this</span>-&gt;<span style="color:#006600;">getTable</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'core/url_rewrite'</span><span style="color:#006600; font-weight:bold;">&#41;</span>, <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'product_id'</span>, <span style="color:#FF0000;">'request_path'</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-&gt;<span style="color:#006600;">where</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'store_id=?'</span>, Mage::<span style="color:#006600;">app</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="color:#006600;">getStore</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="color:#006600;">getId</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-&gt;<span style="color:#006600;">where</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'is_system=?'</span>, <span style="color:#CC66CC;color:#800000;">1</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">- -&gt;<span style="color:#006600;">where</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'category_id=? OR category_id is NULL'</span>, <span style="color:#0000FF;">$this</span>-&gt;_urlRewriteCategory<span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">+<span style="color:#FF9933; font-style:italic;">// excluding this clause to facilitate one URL per product, and one that includes the category</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">+<span style="color:#FF9933; font-style:italic;">// if a product has multiple categories, the first one (by category_id) will be used</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">+<span style="color:#FF9933; font-style:italic;">// in most cases you'll probably only have one category because you only want one page per product for SEO reasons</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">+<span style="color:#FF9933; font-style:italic;">// for maximum link juice, no possibility of duplicate content, and a less confusing store</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">+<span style="color:#FF9933; font-style:italic;">// -&gt;where('category_id=? OR category_id is NULL', $this-&gt;_urlRewriteCategory)</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-&gt;<span style="color:#006600;">where</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'product_id IN(?)'</span>, <span style="color:#0000FF;">$productIds</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">-&gt;<span style="color:#006600;">order</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'category_id DESC'</span><span style="color:#006600; font-weight:bold;">&#41;</span>; <span style="color:#FF9933; font-style:italic;">// more priority is data with category id</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#0000FF;">$urlRewrites</span> = <a href="http://www.php.net/array"><span style="color:#000066;">array</span></a><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>; </div></li></ol></div>
</div></div><br />

Resumiendo, edita el fichero y comenta esta línea (más o menos en la línea 829)

<em>-&gt;where('category_id=? OR category_id is NULL', $this-&gt;_urlRewriteCategory)</em>

<em></em>Con esto hacemos la consulta más flexible. Si un producto está en varias categorías tendrá varias URL, nosotros cogeremos la primera.
En teoría esto debería funcionar tanto para productos que están en una única categoría como para los que están asignados a varias.
NOTA: ya va siendo hora de que salga la v1.4, se supone que van a corregir los múltiples fallos en los temas principales en lo que concierne a SEO.]]></content:encoded>
			<wfw:commentRss>http://onestic.com/nombre-de-las-categorias-en-la-url-seo-sin-duplicar-contenido-en-magento/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cron en Magento. Problemas de actualización, reglas de precios del catálogo</title>
		<link>http://onestic.com/cron-en-magento-problemas-de-actualizacion/</link>
		<comments>http://onestic.com/cron-en-magento-problemas-de-actualizacion/#comments</comments>
		<pubDate>Thu, 07 Jan 2010 17:21:29 +0000</pubDate>
		<dc:creator>Sergio Baixauli</dc:creator>
				<category><![CDATA[Magento]]></category>
		<category><![CDATA[catalog rules]]></category>
		<category><![CDATA[cron]]></category>
		<category><![CDATA[magento]]></category>
		<category><![CDATA[reglas de catálogo]]></category>

		<guid isPermaLink="false">http://onestic.com/?p=644</guid>
		<description><![CDATA[Hoy hemos tenido que solucionar un problema (gran problema mejor dicho) con la ejecución del cron en Magento.
A continuación detallo los problemas detectados.

1.- Damos de alta un producto (con su precio)
2.- Creamos un regla ( Admin -> Promociones -> Reglas de precios del catálogo)
3.- Damos de alta una nueva regla. En nuestro caso, 20% de [...]]]></description>
			<content:encoded><![CDATA[Hoy hemos tenido que solucionar un problema (gran problema mejor dicho) con la ejecución del cron en Magento.
A continuación detallo los problemas detectados.
<ul>
<li>1.- Damos de alta un producto (con su precio)</li>
<li>2.- Creamos un regla ( Admin -> Promociones -> Reglas de precios del catálogo)</li>
<li>3.- Damos de alta una nueva regla. En nuestro caso, 20% de descuento para una categoría en concreto.</li>
<li>4.- Guardamos y aplicamos la regla.</li>
<li>5.- Comprobamos en el front que el precio está saliendo correctamente en la parte visible de la web.</li>
</ul>
<br/>

¿Cuál es el problema? Bien, ahora vamos a modifcar el precio del producto. En teoría el nuevo precio también debería tener aplicado esta regla, pero en la práctica esto no ocurre.
Se supone que el cron.php debería arreglar esto, pero la verdad es que esto no sucede, además, en el caso de hacerse habrá un intérvalo de tiempo donde el precio no será correcto.
¿Soluciones?
La más rápida que he encontrado es esta:

1.- Creamos un cron en el sistema (por ejemplo que se ejecute cada 5 minutos). En el Blog de magento tenemos más <a href="http://www.magentocommerce.com/wiki/how_to/how_to_setup_a_cron_job">detalles</a>.

<div class="igBar"><span id="lphp-102"><a href="#" onclick="javascript:showPlainTxt('php-102'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-102">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">*/<span style="color:#CC66CC;color:#800000;">5</span> * * * * wget -q http:<span style="color:#FF9933; font-style:italic;">//www.yoursite.com/absolute/path/to/magento/cron.php </span></div></li></ol></div>
</div></div><br />

2.- Editamos nuestro fichero cron.php situado en la raíz de nuestra instalación y lo dejamos así:

<div class="igBar"><span id="lphp-103"><a href="#" onclick="javascript:showPlainTxt('php-103'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-103">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">...</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">try <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Mage::<span style="color:#006600;">getConfig</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="color:#006600;">init</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="color:#006600;">loadEventObservers</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'crontab'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Mage::<span style="color:#006600;">app</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span>-&gt;<span style="color:#006600;">addEventArea</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'crontab'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; Mage::<span style="color:#006600;">dispatchEvent</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'default'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;</div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$ob</span> = Mage::<span style="color:#006600;">getModel</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">'catalogrule/observer'</span><span style="color:#006600; font-weight:bold;">&#41;</span>;&nbsp; <span style="color:#FF9933; font-style:italic;">//nueva línea</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#0000FF;">$ob</span>-&gt;<span style="color:#006600;">dailyCatalogUpdate</span><span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#FF0000;">"*/5 * * * *"</span><span style="color:#006600; font-weight:bold;">&#41;</span>;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color:#FF9933; font-style:italic;">//nueva línea</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;"><span style="color:#006600; font-weight:bold;">&#125;</span> catch <span style="color:#006600; font-weight:bold;">&#40;</span>Exception <span style="color:#0000FF;">$e</span><span style="color:#006600; font-weight:bold;">&#41;</span> <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">... </div></li></ol></div>
</div></div><br />

Con esto conseguimos la actualización de las reglas del catálogo cada vez que se ejecuta el cron.

Ahora nos encontramos con otro problema. Este no tiene nada que ver con el anterior pero en mi caso ha empezado a ocurrir a raíz de crear reglas para el catálogo.
Cada vez que editamos un producto e intentamos guardarlo el proceso demora 30-40 segundos... ¿por qué ocurre esto? Por que al guardar el producto aplicada los descuentos creados en las reglas del catálogo y esto es un proceso muy pesado (si tenemos muchos productos).
Por lo menos en la versión 1.3.2.4 ocurre.
El error está reportado en este <a href="http://www.magentocommerce.com/boards/viewthread/49599/">post</a>, y por lo visto ocurre siempre. Esperemos que lo corrijan en la 1.4.

La solución pasa por:

1.- Copiar este fichero app/code/core/Mage/Weee/Model/Mysql4/Tax.php y dejarlo en app/code/local/Mage/Weee/Model/Mysql4/Tax.php

2.- Si no estamos usando Weee, poner dentro del nuevo fichero la siguiente función:

<div class="igBar"><span id="lphp-104"><a href="#" onclick="javascript:showPlainTxt('php-104'); return false;">PLAIN TEXT</a></span></div><div class="syntax_hilite"><span class="langName">PHP:</span><br /><div id="php-104">
<div class="php"><ol><li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">public <span style="color:#000000; font-weight:bold;">function</span> updateDiscountPercents<span style="color:#006600; font-weight:bold;">&#40;</span><span style="color:#006600; font-weight:bold;">&#41;</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#123;</span></div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#FF9933; font-style:italic;">//Ignore this function</span></div></li>
<li style="font-weight: bold;color:#26536A;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color:#616100;">return</span>;</div></li>
<li style="font-family: 'Courier New', Courier, monospace; color: black; font-weight: normal; font-style: normal;color:#3A6A8B;"><div style="font-family: 'Courier New', Courier, monospace; font-weight: normal;">&nbsp; &nbsp; <span style="color:#006600; font-weight:bold;">&#125;</span> </div></li></ol></div>
</div></div><br />


En el caso de estar usando Weee, la solución es más compleja, así que pasar por la <a href="http://www.magentocommerce.com/boards/viewthread/49599/">fuente original</a> para resolver vuestras dudas. Supongo que al final encontrarán una solución fácil ]]></content:encoded>
			<wfw:commentRss>http://onestic.com/cron-en-magento-problemas-de-actualizacion/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>