LEARNING MAGENTO – CREATING A DIFFERENT HEADER ON THE HOME PAGE

Share
Posted on January 23rd, 2015 | Posted by admin

Learning to use Magento have a steep curve (and I really hate walking up hill) but I’ll get there.

To add an image to your home page only…

  1. Upload the image
  2. Create a static block that contains the html link to the image
  3. Duplicate app/design/…/template/page/html/header.phtml
  4. In Magento admin edit the Home Page (CMS > Manage Pages > Custom Pages)
  5. Update the Layout Update XML field as per

Common Issues / Mistake / Practices in Magento Production Development

Share
Posted on January 21st, 2015 | Posted by admin

Development mistakes

1. HTTP/HTTPS, be carefully when you are developing an extension related to secured section. Always check secure mode and generate correct URL

2. Don’t copy/paste standard XML file from Internet, you will meet a number of random issues. For example, if your module don’t need admin router then don’t leave an admin router there, it will lead to some random issue for example auto redirect HTTP to HTTPS on your module.

3. Never get data from _GET or _POST, always get data from magento input data. If you don’t follow this rule, you will make ricks for the client site who using your extensions.

7up-Supershop-Premium-Responsive-Magento-Theme

Share
Posted on January 20th, 2015 | Posted by admin

Supershop, the newest design from 7Up, has been created as a mega store Magento eCommerce solution for online stores. This magento theme shows a sophisticated look, well-structured layout and most powerful features of a ecommerce store.

Supershop is a responsive magento theme. Responsive feature allows web layout change from normal to mobile version automatically which makes customers purchase and view products and website effectively and usefully. Besides that, Supershop supports multi-lingual, multi-store, compatible with most of popular browsers IE 8,9,10, Chrome, Firefox, Safari, iPhone, iPad, SamSung devices.

Set application root absolute path in magento

Share
Posted on January 19th, 2015 | Posted by admin

If you want to change the path of magento core application folder, then you can set it as:

Mage::setRoot(‘/path/to/your/app’);

If you look into app/Mage.php you will find that function.

    /**
     * Set application root absolute path
     *
     * @param string $appRoot
     * @throws Mage_Core_Exception
     */
    public static function setRoot($appRoot = '')

Display product count in top menu

Share
Posted on January 16th, 2015 | Posted by admin

Magento categories marked as ‘Include in menu’ are added by  page_block_html_topmenu_gethtml_before event observer function addCatalogToTopmenuItems located in app/code/core/Mage/Catalog/Model/Observer.php. Lets overwrite it:

1
2
cp app/code/core/Mage/Catalog/Model/Observer.php \
app/code/local/Mage/Catalog/Model/Observer.php

edit the function _addCategoriesToMenu:

Page 1 of 17112345»102030...Last »