Magento – How to find if you are on homepage – getIsHomePage

Share
Posted on May 18th, 2013 | Posted by admin

Magento – How to find if you are on homepage – getIsHomePage
I needed to exclude hot products and recently viewed products block from homepage, so I needed to find if the current page is homepage. The first block of code worked on header.phtml template but not in main page template, so I ended up using 2nd option.

If you need to check this on header.phtml template then use this code:

1 <?php
2 if($this->getIsHomePage()) {
3 echo 'You are in Homepage!';
4 } else {
5 echo 'You are NOT in Homepage!';
6 }
7 ?>

If you want to check from other pages than do this:

Magento: How To Add The Target To Grid Url Actions

Share
Posted on May 16th, 2013 | Posted by admin

Magento, on administration side, has the concept of “grid”, a table with ability to filter, order, page a collection of data. For example the product list is a grid.

A grid is usually initialized on block implementation that “prepares columns” and when I needed to change the columns of a grid I overloaded the block implementation with a class of mine extending the original one.

The latest modification I made on Magento was on product list tab present on category detail. I found incredibly stupid in Magento the absence of a category filter on product management panel and an edit action on product list on category detail.

Since the simpler thing was to add an action to that table I overrided the

Adminhtml/Block/Catalog/Category/Tab/Product.php

Convert Magento Database to Innodb

Share
Posted on March 31st, 2013 | Posted by admin

Convert Magento Database to Innodb

ALTER TABLE `admin_assert` ENGINE=InnoDB;
ALTER TABLE `admin_role` ENGINE=InnoDB;
ALTER TABLE `admin_rule` ENGINE=InnoDB;
ALTER TABLE `admin_user` ENGINE=InnoDB;
ALTER TABLE `adminnotification_inbox` ENGINE=InnoDB;
ALTER TABLE `api_assert` ENGINE=InnoDB;
ALTER TABLE `api_role` ENGINE=InnoDB;
ALTER TABLE `api_rule` ENGINE=InnoDB;
ALTER TABLE `api_user` ENGINE=InnoDB;
ALTER TABLE `catalog_category_entity` ENGINE=InnoDB;
ALTER TABLE `catalog_category_entity_datetime` ENGINE=InnoDB;
ALTER TABLE `catalog_category_entity_decimal` ENGINE=InnoDB;
ALTER TABLE `catalog_category_entity_int` ENGINE=InnoDB;

Uniqueness of Magento Templates Found In Utter Comparison

Share
Posted on March 27th, 2013 | Posted by admin

Magento has already captured the mind and have catch the eye of website developers after it was launched as an Open Source web application in the field of e-commerce. On the fast growth of the e-commerce platform, Magento templates hold a major role on the market. Depicted as highly creative e-commerce application these templates are also easy to customize and configure as per the aspirations and needs of any user or individual. Offering an innovative vista of reflective horizon both to the administrators as well to the website owners, Magento templates are remarkably distinguishable and striking. Moreover the features are open and flexible as per the customized format of application before implementing those in a website. Solution to any great e-commerce site is primarily based on proper themes and appealing templates. These templates from Magento are already supporting the traits of beautiful, effective and impressive factors in various applications.

Page 1 of 8112345»102030...Last »