Magento themes and extensions

Desire to change the admin panel theme on Magento ?

Posted on December 31st, 2012 | Posted by admin

Magento do not provide any easy way to change its admin theme or template. Some time back I had a task to change size of an image displaying for category in admin panel of magento. I could not just overwrite or change the default core admin theme. After some searches I got a fine solution. That goes with Magento quite well.
Here is a step by step tutorial to be able to change the theme of admin panel or say backend of Magento.

Step 1
Create a new module. Yes, you have to create a new module for that.
So go into your local folder of code and create the following folders. App/code/local/Packagename/AdminHtml/etc
Create config.xml in etc folder. In this file write the following code.

How to decide between using an existing eCommerce solution and building your own?

Posted on December 29th, 2012 | Posted by admin

There are a number of both open and close source off the shelf solutions. For example Magento has an impressive list of sites that use them for eCommerce. There are also stories such as this(only link to last section) where an eCommerce site is developed from scratch with great success.

I’m wondering if there’s an objective way to approach the build vs customize decision?

Magento Export products in custom XML [script]

Posted on December 27th, 2012 | Posted by admin

If you have to export all or a part of your Magento products you can try this simple script which creates a products collection and writes a simple and custom XML file per product (but you can simply change it to write a single long XML file).

Hope you enjoy it!

002.// Magento XML products exporter
003.// Version 0.1
004.// by Michele Marcucci
007.require_once 'app/Mage.php';
008.umask( 0 );
009.Mage::app( "default" );
012.$_magentoPath= "CHANGETHISTOYOURMAGENTOPATH ex: /var/virtual/magento"
013.$_urlPath = "";
014.$_imagePath = $_urlPath . "media";
015.$_logFileName = "export_products.log";
016.$_xmlPath = $_magentoPath . "/var/export";
018.Mage::log( "Export start", null, $_logFileName );


Posted on December 26th, 2012 | Posted by admin

When a customer views their cart, each product that they have added will be listed. By default, Magento provides info for each product, e.g. name, image, quantity, price. Customers can change the quantity in the text box and submit the “Update Shopping Cart” button. That is a lot of effort for the user, we want to make this process as smooth as possible.

We can make it easier by adding +1 and -1 links to change the quantity of each item. We will do this with some very simple JavaScript which takes the current value and adjusts it. Once this has been done, we submit the form through JavaScript to reduce customer effort.

In my implementation I have used images for the links, but obviously you could use text, e.g (↑ ↓). The following two code snippets should surround the input quantity box on the shopping cart/basket page:

Get Static Block in Magento

Posted on December 25th, 2012 | Posted by admin

Magento has made it really easy to get Static Content from within a CMS page with the use of widgets, but say you’re developing a custom theme, you may want to call a static block programmatically in a Magento theme in which case there are a few methods of doing so…

The first is quick and easy to drop into a Magento theme, but only gets the static block content:

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('indentifer')->toHtml() ?>

Where, by calling the static block model, you can then get all fields associated with that block such as the static block title

Page 1 of 612345»...Last »