Blog: Extra-ordinary

Common mistake in Magento

Create a custom theme  don’t modify core Magento theme files instead. Understand the package/theme relationship and how to make that work for you.  Sometimes, clever use of package/themes can allow for creative ways to handle subtle differences clients want among templates or pages. Don’t use the wrong starting theme (particularly in community).  When doing community projects, the blank theme saved …

Continue Reading

How to show SKU value in Magneto?

This is very simple. Please add below code. <?php $_productCollection=$this->getLoadedProductCollection(); $_helper = $this->helper(‘catalog/output’); ?> <?php echo $this->__(‘ Item Number: %s’, $this->escapeHtml($_product->getSku()));?> Hope it will work.

Continue Reading

How to speed up Magento?

Please follow the below step: 1. Enable cache    Just navigate to System > Cache Management and enable all cache types. 2. Re-index data Regularly indexing Magento data will also have some impact on performance. Under System > Index Management select all indexes and hit the “Reindex Data” submit button. 3. Enable JavaScript file merging Combining all JavaScript files into …

Continue Reading

How to add multi Select value save in Magento from CSV file.

It is Little bit complex. First of all review my code and then customize your own way. $csvFile = ‘./var/import/attribute.csv’; // This is csv file of attribute. you can save var/import/attribute.csv folder. $file_handle = fopen($csvFile, ‘r’); $skArray=  array(); $i= 0; while (($data = fgetcsv($file_handle, 1024, ‘,’)) !== FALSE) { if ($i == 0) { // removing header value of csv …

Continue Reading

Describe Magento codepools

Describe Magento Codepools Magento has three different codepools: Community Core Local Core pool First of all, this folder stores all the code that makes Magento so powerful, flexible and lovely. The chief rule of Magento development is that you should never make any changes in it. In other words, this folder belongs to Magento core developers only and if you …

Continue Reading

How to left Navigation Ascending order in Magento?

It is very simple. Please go to \app\design\frontend\default\<Your_theme>\template\catalog\navigation\left.phtml Just copy and paste. Hope it will work. If you have any query please comments.   <?php if (!Mage::registry(‘current_category’)) return ?> <?php $_categories = $this->getCurrentChildCategories() ?> <?php $_count = is_array($_categories)?count($_categories):$_categories->count(); ?> <?php if($_count): ?> <div> <div> <dl id=”narrow-by-list2″> <dt><?php echo $this->__(‘Category’) ?></dt> <dd> <?php    $temp = array(); $countVal = array(); ?> <?php …

Continue Reading

How to call all static page in Magento?

If you want to show all static pages in Magento Menu or any Landing Page. Just below Code copy and paste. Hope so it will work. If you have any query please comments.  <div> <?php $collection = Mage::getModel(‘cms/page’)->getCollection() ->addStoreFilter(Mage::app()->getStore()->getId());?> <?php  $collection->getSelect() ->where(‘is_active = 1’); ?> <ul> <?php foreach ($collection as $page): ?> <?php $PageData = $page->getData(); ?> <?php if($PageData‘identifier’!=’no-route’) { …

Continue Reading