:::: MENU ::::

Repositorio GIT bare vs non-bare

A menudo cuando se comienza a trabajar con GIT surge la duda de los dos tipos de repositorio. No encuentro muchas referencias en Internet que den información clara y simple para el programador que comienza a trabajar con GIT acerca de este punto, así que ahí va la clave fundamental para saber si lo que […]


Crear repositorio GIT con proyecto existente

Una situación común al inicio de cada proyecto es crear el repositorio de código para el control de versiones. Normalmente los proyectos en los que trabajo son de tamaño medio o grande por lo que disponemos de un servidor VPS o dedicado en el que instalar el servidor GIT, pero si no es el caso, […]


Magento Integrity constraint violation FK_CAT_PRD_FLAT_1_ENTT_ID CAT_PRD_ENTT_ENTT_ID

El error Integrity constraint violation FK_CAT_PRD_FLAT_1_ENTT_ID_CAT_PRD_ENTT_ENTT_ID se produce en ocasiones al reindexar el catálogo flat de productos y tiene que ver con algún error que se haya producido al importar o eliminar productos del catálogo y que ha hecho que alguna de las restricciones de tabla del catálogo flat no se cumpla. Magento no elimina […]


Magento certification: Describe various ways to add and customize JavaScript to specific request scopes

Which block is responsible for rendering JavaScript in Magento? Both, css and js files in Magento, are managed by the block Mage_Page_Block_Html_Head. This block has methods for adding files to the html head section of any page in a Magento store. The main method to add files is the following: function addItem($type, $name, $params=null, $if=null, […]


Magento certification: Create and add code to pages

How can code be modified or added to Magento pages using the following methods? Magento is known by its great flexibility to add custom code or modifying the existing one. For that you can explore multiple possibilities. The next sections shows some of them, but there are much more you can explore by yourself. Template […]



Magento certification: Register layout XML files

How can layout XML files be registered for the frontend and adminhtml areas? In Magento, you may register a new Layout XML file with layout updates by adding this piece of XML to your module config.xml <layout> <updates> <anyuniquename> <file>nv/homelayout.xml</file> </anyuniquename> </updates> </layout> If you need the layout file to apply to the Magento frontend, […]


Cambiar el símbolo de moneda en Magento

Parece que los chicos de Zend Framework no se terminan de enterar, y muchos años después de la publicación de la primera versión de esta plataforma, nos seguimos encontrando con que los textos con formato moneda siguen apareciendo con el símbolo delante del precio. Por supuesto, en Magento tenemos el mismo problema, así que ahí […]


Magento certification: Which layout nodes correspond to certain URL

The way Magento loads the layout starts when the controller serving the current request calls to: $this->loadLayout(); This call starts the process of compiling and generating all the blocks that will be used in a later phase to generate the current page contents. The process of geting the proper nodes from the layout requires the […]


Magento Certification: Describe the elements of Magento’s layout XML schema

The directive <update> in the Magento Layout The update tag is used to combine a particular layout handle into other. Let’s see an example: <my_custom_handle> <reference name="content"> <block type="core/template" name="myblock" template="myblock.phtml" /> </reference> </my_custom_handle> <other_hanlde> <update handle="my_custom_handle" /> <reference name="content"> <block type="core/template" name="otherblock" template="otherblock.phtml" /> </reference> </other_handle> The previous fragment would be in fact, as […]



Custom variable programmatically in Magento

This post continues the previous one about using Custom Variables in Magento. This time we will create a new Custom Variable programmatically, which is useful if you develop a custom extension and need to save some data. Some people ask me sometimes, why not use config data, which also provides a similar way of storing […]


Páginas:1...7...18