Home » Archive

Articles in the Magento Category

jQuery, Magento »

[9 Dec 2013 | 2 Comments]

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 | 2 Comments]

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 | 3 Comments]

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]

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)

Magento »

[16 Sep 2013 | One Comment]

I just upgraded a Magento shop and I had problem on ‘Shipping Methods‘ sections of onepage checkout. No shipping methods were displayed and I was getting the following message over there:
Sorry, no quotes are available for this order at this time magento

Magento »

[2 Sep 2013 | No Comment]

Here are solution to some errors that I faced while upgrade Magento.
Error 1:
Parse error: syntax error, unexpected T_OBJECT_OPERATOR in downloader/pearlib/php/System.php on line 400

Magento »

[20 Aug 2013 | 3 Comments]

Suppose, you have ID of some products and you want to load them at once in Magento, then here is a solution:-
Suppose, you have 5 products ID: 5, 22, 45, 75, 88

Magento »

[12 Aug 2013 | 2 Comments]

Here is a step-by-step guide on moving Magento site from one server to another. This can be from localhost to server or from server to localhost or from one server to another.
Step 1: Enable maintenance mode

Magento »

[4 Jun 2013 | One Comment]

I recently transferred a Magento website from one webhost to another. Frontend part is working fine. I am able to view products and cms pages. I am also able to view the admin login page. However, when try logging to admin, I get error page showing the following SQL query:

Magento »

[20 May 2013 | 4 Comments]

Magento has the feature to verify the authenticity of newly registered customers before activating their account.
When a user registers to your Magento shop, then he/she will get a confirmation email with a confirmation link. The customer’s account will be activated only after he/she clicks that confirmation link.

Magento »

[6 May 2013 | No Comment]

Problem: I am having the following error when I browse Layered Navigation on Magento.
You cannot define a correlation name ‘attribute_idx’ more than once

Magento »

[22 Apr 2013 | 3 Comments]

You might get this error when you go to Magento Connect Manager (System -> Magento Connect -> Magento Connect Manager) of your Magento installation. This means that Magento Connect is unable to write files to your server.
Warning: Your Magento folder does not have sufficient write permissions.

Magento »

[15 Apr 2013 | One Comment]

I had added a new product attribute. Suppose the attribute code is ‘test’. I have been trying to fetch/select that newly added product attribute. Here is my Magento collection code:-