Home » Archive

Articles in the Magento Category

Magento »

[19 Aug 2014 | No Comment]

By default, customers are redirected to ‘Customer Account Dashboard’ page after login. This feature can be easily changed from Magento configuration settings.
Configuration Settings

Magento »

[6 Aug 2014 | No Comment]

Here is a quick code to check if a Magento module is installed, enabled or active.
The functions isModuleEnabled and isModuleOutputEnabled are present in Mage_Core_Helper_Abstract class.

Guest Post, Magento »

[22 Jul 2014 | No Comment]

When people come to your shop and start purchasing, the feelings they will have after they’ve finished are most important for you as for a Magento store owner. Will they be happy about your service? Would they like to use it again? To make sure that customers’ satisfaction is high and they are glad about the purchase they have made, consider 5 points which will make your online store preferable among others.
What are easy ways to satisfy a customer?

Magento »

[2 Jun 2014 | One Comment]

Sometimes we might need to show a single static block in one or few specified categories only, rather than showing the static block on all pages.
The layout XML code below helps to achieve the above requirement. It will show the static block ‘my-sidebar-1′ on right sidebar of category with id ’10′. Similarly, static block ‘my-sidebar-2′ is displayed on the category page with id ’12′.

Guest Post, Magento »

[21 Feb 2014 | 2 Comments]

E-commerce has been developing rapidly since its emergence, especially in recent years. One of the important contributors to the development of e-commerce is Magento. According to the recent research conducted by Tom Robbert Shaw, over a quarter of online businesses selected Magento as the platform for their websites (including a number of famous companies such as Nike and Olympus), and annual transaction in these sites is more than 25 billion US dollars. The question is: why these companies have been choosing Magento as an e-commerce platform for their websites?

Magento »

[6 Jan 2014 | No Comment]

Problem:
I placed an order in Magento using Paypal payment method. Everything went fine. I was able to pay through Paypal. However, when I login to the shop as a customer, I see that ‘My Orders‘ section is empty. I could not find information of the order I recently placed.
Cause:

Magento »

[30 Dec 2013 | No Comment]

Event-Observer methodology is a very helpful way for customizing Magento. It’s an alternative to overriding Magento core classes/methods.
Magento has raised event at many useful places. However, there can be a situation where there is no event present in any particular method/function and we want an event to be raised there.

Magento »

[23 Dec 2013 | No Comment]

Here is a quick and complete code to load parent category from current category page and to get sub categories of parent category along with their product count.

Magento »

[16 Dec 2013 | One Comment]

Here is a code snippet to get sales quote and order data in both admin and frontend in Magento.
Get Sales Quote in Frontend

jQuery, Magento »

[9 Dec 2013 | One Comment]

You can add tabs in a CMS page in Magento. I have used jQueryUI tabs for this purpose. You can view the examples and source code of the tabs feature here: http://jqueryui.com/tabs/
Here is the step-by-step guide to create tabs on Magento CMS page:-

Magento »

[25 Nov 2013 | No Comment]

Here is a quick code to get / load product by its SKU in Magento.
Generally we load product by its ID. Assuming product id to be ’166′.

Magento »

[18 Nov 2013 | One Comment]

Here is a quick code to get add to cart url of any product.
Suppose that we are fetching add to cart url of a product with id ’166′.

Magento »

[28 Oct 2013 | No Comment]

You might come up with a situation when two of your custom Magento modules are rewriting the same core class.
Suppose, you have the following two custom module classes:

Magento »

[21 Oct 2013 | One Comment]

Function addExpressionAttributeToSelect as defined in Mage_Eav_Model_Entity_Collection_Abstract (/app/code/core/Mage/Eav/Model/Entity/Collection/Abstract.php) allows us to use MySQL functions in Magento collection.
Here is an example of using MySQL function CONCAT in Magento customer collection to concat customer’s firstname and lastname:

Magento »

[30 Sep 2013 | No Comment]

Problem:
You have a Magento website with Base URL = http://example.com/
Working: http://example.com/category-one.html
Not working: http://www.example.com/category-one.html (redirecting to homepage)