Get a product’s status for a store

March 5th, 2015

Retrieve Product(s) status for store

Mage::getModel('catalog/product_status')->getProductStatus($productIds, $storeId);

Return array where key is product, value – status.

For Magento version 1.7.2, 1.8.0 this method return wrong value -1 when $storeId == Mage_Catalog_Model_Abstract::DEFAULT_STORE_ID or not passed (null).

This bug has been fixed in 1.8.1. Catalog product website resource model, Fixed code for getProductStatus below Read the rest of this entry »

How to add Custom Column in admin grid in Magento

November 4th, 2014

Let’s use Magento order grid for example. If you want to add some column you have to rewrite “Mage_Adminhtml_Block_Sales_Order_Grid” class (block). This tutorial assumes that you are already familiar with creating your own Magento module and rewriting magento block.

My column will tracking number days off changing status (passed days after the status was changed). To insert this column into the order grid, add to _prepareColumns() function

$this->addColumn('status_days', array(
    'header' => Mage::helper('sales')->__('# Days'),
    'type' => 'text',
    'index' => 'status_days',
    'filter_index' => 'DATEDIFF(NOW(),order_history.created_at)',
    'width' => '40px'

Read the rest of this entry »

Magento custom ACL isAllowed by default

October 8th, 2014

You can define custom ACL rules to limiting access for some resources.
Add to config.xml

                            <title>Custom ACL</title>

After creating a new ACL You have to go to every role and save these role.

Get full cached image path for Magento product

November 15th, 2013

You can get full cached thumbnail path and cached image path for Magento products with following code

$productId = 1; // product ID
$product = Mage::getModel('catalog/product')->load($productId); // load the product
$imageUrl = $product->getImageUrl(); // get image path
$imageThumbnailUrl = $product->getThumbnailUrl(); // get thumbnail path

Read the rest of this entry »

Book Review: “Magento PHP Developer’s Guide”

May 31st, 2013

Magento PHP Developer’s Guide
by Allan MacGregor

ISBN 978-1-78216-306-0
Published by Packt Publishing Ltd. April 2013

The book consists of eight chapters.

The first chapter is about how set up development environment, which IDE to use and importance working with a version control system.

Chapter 2 focuses on the fundamental concepts for working with Magento such as its architecture, folder structure, routing system, MVC patterns, events and observers, and configuration scopes. Read the rest of this entry »

Book Review: “Instant Magento Performance Optimization How-to”

April 14th, 2013

Instant Magento Performance Optimization How-to
by Nayrolles Mathieu

ISBN 978-1-78216-542-2
Published by Packt Publishing Ltd. February 2013

I was given a copy of a book called “Instant Magento Performance Optimization How-to” to review, so here goes. This book written by Nayrolles Mathieu. It’s in English and it has 56 pages.

This books walks you through how to improve the performance of your Magento stores using practical, hands-on recipes. The recommended for Magento administrators who are familiar with the backend console but new to optimize their store for increasing performance. Read the rest of this entry »

Instant E-Commerce with Magento: Build a Shop

April 14th, 2013

by Branko Ajzele
ISBN 978-1-78216-486-9
Published by Packt Publishing Ltd. February 2013

Upon receiving my copy of the Instant E-Commerce with Magento: Build a Shop I had a chance on the weekend to absorb a book. As I’ve good expertise in Magento, the information in this book is familiar to me. A nice suited to reading on the couch.

This book is primarily intended for merchants starting their own new shop using Magento Community Edition (CE).
Read the rest of this entry »

Magento Community 1.7 now available!

May 4th, 2012

Magento Community 1.7 is the latest stable release of Magento eCommerce Platform (can be downloaded from Apr 24, 2012). The recent enhancements provide a more personalized shopping experience for customers and give merchants greater potential to boost consumer engagement, increase transaction size, and foster brand loyalty. Latest releases have lots in store for developers too.

Mobile HTML5, Auto-generation of Coupon Codes, Layered Navigation Pricing Enhancement, Customer Group Pricing, REST APIs Support, European Union VAT-ID Validation, EU Cookie Restriction, Backup and Rollback, CAPTCHA, read more

If you prefer not to upgrade it yourself, we can do it for you following the proper upgrade procedure. We have extensive experience in upgrade process from Magento 1.2.x, Magento 1.3.x, Magento 1.4.x, Magento 1.5.x to latest version. It will make the upgrade process simpler, faster and more predictable from start to finish. We will also upgrade any out of date extensions that are installed.

Good luck, and make even more backups!

Magento – How to add/remove link(s) in customer account dashboard?

May 4th, 2012

In this post you can see how to add a new link to customer account navigation menu from custommodule.xml. Layout XML files can be found in app/design/frontend/[package]/[theme]/layout. Each Magento module may define its own layout XML file. Add secure link for example.

	<reference name="customer_account_navigation">
            <action method="addLink" translate="label" module="custommodule" ifconfig="custommodule/configuration/enabled"><name>customname</name><path>custommodule/index/</path>
                <label>My Custome Label</label>

Uses the secure domain if allowed in configuration


Special values for <params> you can found here.

Tested on Magento 1.6.2.
Read the rest of this entry »

Magento Trusted Extension program

November 18th, 2011

Magento Connect is the most popular and the largest eCommerce application marketplace in the world. Over 4800 extensions are available, and these extensions have been downloaded more than 4 million times. Magento is great because, instead of having to write every module that we use, we can buy or just download.

There are a lot of serious issues facing the companies who have create eCommerce shop.
Quality control (there are a lot of modules that are not quality) includes a variety of tests

  • Security Checks
  • Memory usage
  • Performance impact

This partial list of areas where developers should verify.

Several extensions are similar so we can buy a modules that developed

  • Large agencies with no technical Magento skills
  • Small team with wizard Magento skills and work exclusively on magento projects.
  • Great companies who have earned our trust up to this point

Must analyze relationship between price and quality before the customer paying for the module.

Even though Magento has had explosive growth since the release of Magento 1.0, with eBay’s acquisition of Magento, its future looks even brighter. Just recently they announced “Trusted Extension“, new gold standard for extensions reliability, stability and support. Magento does not guarantee functional accuracy of specific extension behavior. The process of making your extension trusted includes a variety of tests as well as legal and technical resource commitment from the developer.

For the time being “Trusted Extension” only applies to the Magento GO platform, but how about Expert Consulting Group (ECG). This is a good idea for next post.