Magento Themes and Magento Extensions

How to disable Admin Notifications in Magento

Posted on July 15th, 2014 | Posted by admin

If you find the Notifications pop-up message as annoying as we do, here at PSD to Magento UK, then you might want to disable it. If you didn’t figure it out by now how to get rid of them we will tell you how.

Navigate into you back-end of Magento, and under SYSTEM > CONFIGURATION > ADVANCED, where you got listed all the modules, select DISABLE for the Mage_AdminNotification module.

How to enable payment methods for admin only in Magento

Posted on July 2nd, 2014 | Posted by admin

How to enable payment methods for admin only in Magento

One of our customers wanted to enable a payment method to display in the admin area only.

To solve this we edited the core files found in


for the Check/Money Order option as the client didn’t want to actually take payments.

First we created a back-up for the Checkmo.php file and then after the following code:

Magento Enterprise Tabs – How to select specific tab?

Posted on May 18th, 2013 | Posted by admin

Magento Enterprise Tabs – How to select specific tab?

This is how tab config looks in - catalog.xml

01 <block type="catalog/product_view_description" name="product.description"as="description" template="catalog/product/view/description.phtml">
02 <action method="addToParentGroup"><group>detailed_info</group></action>
03 <action method="setTitle" translate="value"><value>Product Details</value></action>
04 </block>
05 <block type="catalog/product_view_attributes" name="product.attributes"as="additional" template="catalog/product/view/attributes.phtml">
06 <action method="addToParentGroup"><group>detailed_info</group></action>
07 <action method="addToParentGroup"><group>detailed_info</group></action>
08 <action method="setTitle" translate="value"><value>Additional Information</value></action>
09 </block>
10 <block type="cms/block" name="payment_options_tab" as="payment_options_tab"template="catalog/product/view/custom_tab_content.phtml">
11 <action method="setBlockId"><block_id>payment_options_tab</block_id></action>
12 <action method="addToParentGroup"><group>detailed_info</group></action>
13 <action method="setTitle" translate="value"><value>Payment Options</value></action>
14 </block>
15 <block type="cms/block" name="shipping_calculator_tab"as="shipping_calculator_tab"template="catalog/product/view/custom_tab_content.phtml">
16 <action method="setBlockId"><block_id>shipping_calculator_tab</block_id></action>
17 <action method="addToParentGroup"><group>detailed_info</group></action>
18 <action method="setTitle" translate="value"><value>Shipping Calculator</value></action>
19 </block>

content of - custom_tab_content.phtml

How to create a sub-query on Magento Way?

Posted on May 11th, 2013 | Posted by admin

How to create a sub-query on Magento Way?
You can use the next examples:

public function getActiveCustomers($date)
    $orderTable = Mage::getResourceModel('sales/order_collection')
        ->addFieldToFilter('created_at', array('gt' => $date));
        ->joinLeft(array('order_table' => new Zend_Db_Expr( '(' . $orderTable->getSelect() . ')')),
'e.entity_id = order_table.customer_id')
        ->where('order_table.entity_id', 'notnull');
    return $this;

How to Debug Magento

Posted on May 9th, 2013 | Posted by admin

You can add your own debugging code pool in addition to core, community and local. This is what Magento team uses foe debugging.

require_once $mageFilename;
$debuPath = BP . DS. ‘app’ . DS . ‘code’ . DS . ‘debug’;
set_include_path($debugPath . PS . get_include_path());

Page 2 of 22«12345»1020...Last »