Total Pageviews

Showing posts with label Magento. Show all posts
Showing posts with label Magento. Show all posts

Thursday, May 9, 2013

Magento's theme hierarchy

Magento's theme hierarchy
1. If a custom theme is specified, the application looks for the requested file in:
  • 1. app/design/frontend/custom_package/custom_theme
  • 2. skin/frontend/custom_package/custom_theme
2. If the file is not found in the custom theme, the application moves up a level and
looks for it in:
  • 1. app/design/frontend/custom_package/default
  • 2. skin/frontend/custom_package/default
3. If not found in the default , the application looks for the requested file in:
  • 1. app/design/frontend/base/default
  • 2. skin/frontend/base/default
4. If not found, a rendering error will occur.

Thursday, October 11, 2012

Magento DataBase configuration file


Magento DataBase configuration file location for simple changes, you find that information into the file:
/app/etc/local.xml
<default_setup>
                <connection>
                    <host><![CDATA[localhost]]></host>
                    <username><![CDATA[root]]></username>
                    <password><![CDATA[]]></password>
                    <dbname><![CDATA[magento]]></dbname>
                    <initStatements><![CDATA[SET NAMES utf8]]></initStatements>
                    <model><![CDATA[mysql4]]></model>
                    <type><![CDATA[pdo_mysql]]></type>
                    <pdoType><![CDATA[]]></pdoType>
                    <active>1</active>
                </connection>
            </default_setup>

Monday, March 12, 2012

Magento How to add a static CMS block to the side bar


In Magento Go to
CMS > Static Blocks.
Create a new block

Open app/design/frontend/xxxxxx/xxxxxx/layout/catalog.xml
Add your static block to the left or right section in

<!-- Mage_Catalog -->

For example to add to the left sidebar..
<reference name="left">
<block type="cms/block" name="Block Title" >
<action method="setBlockId"><block_id>Identifier</block_id></action>
</block>
</reference>


OR

Open the file app/design/frontend/default/[your-theme]/template/page/Xcolumns-left.phtml by your favorite text editor
Find the line of code
<?php echo $this->getChildHtml('left') ?>
Add the following code line
<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId(' Identifier ')->toHtml() ?>