The Required parameter ‘theme_dir’ was not passed is most likely caused by an invalid theme table in your database. Solution: Open the theme table and delete all rows that refer to a theme that does not exist.
Changing the title tag of the home page or any CMS page (Magento 1)
Magento automatically adds the defined suffix to the title tag on every page. If you want to change that for lets say the home page, open the CMS page “home” and add the following XML to the layout section:
1 2 3 |
<reference name="head"> <action method="setData"><key>title</key><value>... Title Tag ...</value></action> </reference> |
Adding a static block to the sidebar (Magento 1)
Using the folowing layout update, you can add a static block to the left sidebar:
1 2 3 4 5 6 |
<!-- left --> <reference name="left"> <block type="cms/block" name="STATIC_BLOCK_NAME"> <action method="setBlockId"><block_id>STATIC_BLOCK_ID</block_id></action> </block> </reference> |
Removing the breadcrumb navigation on all pages (Magento 1)
Create a local copy of \app\design\frontend\base\default\layout\page.xml and remove or comment the following line:
1 |
<block type="page/html_breadcrumbs" name="breadcrumbs" as="breadcrumbs"/> |
Changing the column count for the upsell product area programmatically (Magento 1)
To change the Magento upsell product areas column count programmatically, use the following code:
1 |
$this->setColumnCount(4); |
Removing estimated shipping from cart (Magento 1)
To remove the estimated shipping block from the Magento cart, you have to add the below code, or, if the checkout_cart_index handle already exists, simply add the checkout.cart section to it.
1 2 3 4 5 6 7 |
<checkout_cart_index> <reference name="content"> <block name="checkout.cart"> <remove name="checkout.cart.shipping"/> </block> </reference> </checkout_cart_index> |