Monday, 21 July 2014

How to Remove WordPress Logo and menu From Admin Bar

Using the code below will remove the WordPress logo and wordpress Related sub menu from the Admin top Bar. The only thing you need to do is paste this code into the wp-content/thems/yourthems/function.php file of your theme.


add_action('admin_bar_menu', 'remove_wp_logo', 999);
function remove_wp_logo( $wp_admin_bar ) {
$wp_admin_bar->remove_node('wp-logo');
}

Sunday, 6 July 2014

How To Add Product Images In Magento Order details Pages in Backend

Find Out

app/design/adminhtml/default/default/template/sales/order/view/items.phtml
Suppose we want to add product images then we have to add with an extra table head with the current haead
<th><?php echo $this->helper('sales')->__('Images') ?></th> // line No 39

And Next Step 


Again find out
app/design/adminhtml/default/default/template/sales/order/view/items/renderer/default.phtml

<td>
   <?php
    $obj = Mage::getModel('catalog/product');
     
    $_product = $obj->load($_item->getProductId());?>
    <img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(150); ?>" alt="images" />
</td>