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 | 3 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’.

Linux, Ubuntu »

[11 Nov 2013 | No Comment]

You can convert any video file to audio format (extract audio from video) with the help of FFmpeg tool.
FFmpeg is a complete, cross-platform solution to record, convert and stream audio and video. It includes libavcodec – the leading audio/video codec library.

Magento »

[28 Oct 2013 | No Comment]

While developing Magento modules/extensions, we often come up with a case where our module and some other module are rewriting/overriding the same core class. Hence, we get a conflict here and either our module or the other module will not function as expected.
There are some ways to avoid such conflicts. I will explain about two ways to do so.

Magento »

[21 Oct 2013 | 4 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:

Linux, Ubuntu, Xubuntu »

[14 Oct 2013 | No Comment]

I am using Xubuntu (lightweight version of Ubuntu) and I am unable to type in local language using iBus (an input method (IM) framework for multilingual input in Unix-like operating systems).
iBus is already installed. When I go to its ‘Preferences‘ and then click the ‘Input Method‘ tab, I could only see ‘Chinese‘ language option in the dropdown list of ‘Select an input method‘. I am from Nepal, so I would like to see Nepali/Devnagari language option there.

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

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