300+ TOP MAGENTO Interview Questions and Answers

Magento Interview Questions for freshers experienced :-

1. What is Magento?
Magento is an e-commerce platform written in PHP and released under the open source license. It was released by Varien, Inc. on March, 31 2008. It provides flexibility and control to the On-line merchants over the look and content.

2. What was the initial release date of Magento?
Magento was initially released on 31st March, 2008.

3. Explain various versions of Magento.
Following are the different versions of Magento:

  • Magento Enterprise Edition
  • Magento Community Edition
  • Magento Professional Edition
  • Magento .go Edition

4. What is the architecture of Magento.
Magento is a typical MVC application where controller remains at one place while the models at the other.

5. What is the technology used by Magento?
In Magento, PHP is used as a scripting language while MySQL is used as the database.

6. Explain some features of Magento?
Magento has following basic features.

  1. SEO Friendly
  2. Google sitemap support
  3. Accounts of Customers
  4. Managing orders
  5. Report and analysis
  6. Site management
  7. Payment
  8. Marketing promotion and tools
  9. International support
  10. Extremely modular architecture

7. What are the limitations of Magento?
There are the following limitations of Magento.

  • Due to the fact that it is written in PHP, it is slower in performance as compare to other platforms.
  • It consumes more space in the memory. It can consume gigabytes of RAM during heavy processes.
  • In the absence of Object oriented programming, it can become complex.

8. How can you improve performance of Magento?
There are various ways to improve Magento performance.

  • Disable any unused modules
  • Magento Caching
  • Optimize your Server
  • Use a Content Delivery Network (CDN)
  • Put Stylesheets at the Top
  • Put Scripts at the Bottom
  • Avoid CSS Expressions
  • Disabling Magento Log
  • improve the image

9. How can you make Magento more secure for client.
You can use following instructions to improve the security of magneto.

  • Have some complex passwords and change them time to time.
  • Do not let the Magento Content Manager remotely accessed.
  • Don’t provide the download facilities on production sites.

10. What type of web applications are created in Magento.
Magento is mainly used for shopping cart software.

MAGENTO Interview Questions
MAGENTO Interview Questions

11. What is EAV in Magento?
EAV stands for Entity Attribute Value. It is a technique that facilitates users to add unlimited columns to their table virtually.

12. How many tables will be created in EAV module in Magento? Name them.
EAV module will create 6 tables in database.

They are as follows:

  • module
  • module_datetime
  • module_decimal
  • module_int
  • module_text
  • module_varchar

13. Explain the difference between EAV and flat model..
EAV database model is fully in normalized form. Each column’s value is stored in their respective data type table which makes it more complex as they have to join 5-6 tables even if you need only one detail. In EAV, columns are called attributes.

Flat model uses just one table. It is not normalized and uses more database space. It is not good for dynamic requirements where you may have to add some more columns in future. Its performance is fast as it needs only one query instead of joining 5-6 tables. In flat model, columns are called fields.

14. What are Magento product types?

  • Magento simple product: It is used for a single item without any specific selectable variations. For example, a pen, copy, etc.
  • Magento grouped product: It is used for a combination of Magento simple product. For example, a pen and copy together.
  • Magento configurable product: It is used for a single item with specific selectable variations. For example, a pen with different color options.
  • Magento virtual product: It is used for a virtual item i.e: non touchable item. For example, reservation, insurance, etc.
  • Magento bundle product: It is used for a bundle of simple products. For example, laptop with various items such as processor, hard disk, RAM, etc.
  • Magento downloadable product: It is used for online software items. For example, PowerPoint presentation, MP3 files, servers, etc.

15. Explain the difference between Mage::getModel() and Mage::getSingletone() in Magento.
Mage::getModel(): It creates a new object.
Mage::getSingletone(): It first checks the existence of object and if object doesn?t exist, then it creates a new one.

16. What is ORM in Magento.
ORM stands for Object Relational Mapping. It is a programming technique used to convert different types of data into objects and vice versa.

There are two types of ORM:

  1. Converts different types of data into objects.
  2. Converts objects to various types of data.

17. Explain different modules in Magento.

  • Core modules
  • Commercial modules
  • Community modules

18. How to change theme for login users?
To change theme for login users,


19. How can you add an external JavaScript/ CSS file to Magento?

skin_jsjs/ yourfile.js
skin_csscss/yourstyle. css

20. State the syntax to call a CMS page in your module’s PHTML file.

21. When you need to clear the cache to see the changes made in Magento?
When you have added or modified XML, CSS or JS files.

22. How to run custom query in Magento?
To run custom query,

$db = Mage::getSingleton(‘core/resource’)->getConnection(‘core_write’);
$result=$db->query(‘SELECT * FROM users where id=4’);

23. How to enable product’s custom attribute visibility in frontend?
In Manage Attributes section under custom attribute, select Yes for “Visible on Product View Page on Frontend” and “Used in Product Listing”.

24. State whether namespace is mandatory while creating a custom module in Magento?
No, namespace is not mandatory while creating custom module.

25. Is it possible to have more than one grid in Magento?
Yes it is possible.

26. List the magic methods in Magento?
Magic methods in Magento:


27. How many types of sessions are there? Why we use different sessions in Magento?
There are namely three sessions in Magento:

  1. customer session
  2. checkout session
  3. core session

All these sessions are stored in one session only. We use different sessions because sometimes we need to clear only a particular session data and not all session data.

28. How can you reset Magento Files and Directory permissions?
Change the directory to the directory where Magento is installed and execute the following commands.

find. -type d -exec chmod 755
chmod+x magento

29. How to make Magento working with another domain?
To let the Magento working with another domain, URL option of Magento base can be changed.

Follow these steps:

  • select Magento admin -? System ? configuration and then click Web.
  • Choose unsecure option
  • Replace the base URL filed

30. How will you get first and last item from the collection in Magento?
$collection->getFirstItem() and $collection->getLastItem();

31. What is the use of namespace in Magento?
Magento core modules are placed in mage namespace, core/Mage/Catalog and all custom modules are placed in local/CustomModule.

You can have more than one module with same name but they need to be placed in different namespaces.

32. Explain handles in Magento?
Handles control the structure of the page to be displayed. It decides which block will be placed where in the page. Handle is called for every page and every page request can have several unique handles.

33. What is compilation feature in Magento?
Compilation feature allows us to compile all Magento files to create a single include path to increase performance.

34. How to enable Maintenance mode in Magento?
Create a file named as maintenance.flag and upload it to Magento home directory containing following code.

$maintenanceFile = ‘maintenance.flag’;

if (file_exists($maintenanceFile)) {
include_once dirname(__FILE__) . ‘/errors/503.php’;

35. How to convert default currency to others in Magento?
To convert default currency to others, select the currency and import currency rates from System-> Manage currency-> Rates.


$convertedPrice = Mage::helper(‘directory’)->currencyConvert($price, currentCurrency, newCurrency);

36. Explain Google checkout in Magento.
Magento allows the integration of online stores with Google checkout. Google checkout is the online payments service provided by the Google. It works like PayPal.

37. How to change Magento core API setting?
You have to follow these steps to change Magento core API setting.

  • Go to Admin menu, choose System -> Configuration
  • Select Magento Core API on the left side of the Configuration Panel, under Services
  • Click on to expand the General Settings section
  • Type name of the Default Response Charset that you want to use
  • Determine the Client Session Timeout in seconds
  • Click the Save Config button when completed

38. Can all billing information be managed through Magento?
You can do the following things through client Magento account:

  1. You can update your billing address.
  2. You can add a credit card.
  3. You can view your billing history.
  4. You can add a PayPal account.
  5. You can produce a print ready receipt.

39. What are the advantages of applying Connect Patches in Magento?
In Magento, applying Connect Patches provides following features:

  • Enable easy installation of packages with installation and overwrite any existing translations for the same time
  • Enhance security, by default Magento Connect uses HTTP to download extensions instead of FTP
  • Facilitate the extension developers to create new extensions with a dash character in the name
  • Magento administrators will be informed now who tries to install an extension with insufficient file system privileges.

40. How to fetch 5 bestsellers products programmatically in Magento?
->setPage(1, 5)

41. What is codePool?
Code pool is a concept to pull the code in Magento structured format. It is specified when you register new module in app/etc/modules/Company_Module.xml

There are 3 codePools in Magento: core, community and local, which reside at app/code/ directory.


_community: It is generally used by 3rd party extensions.

_core: It is used by Magento core team.

_local: Local codePool should be used for in-hour module development and overriding of core and community modules for custom requirement.

Residing directory:



So in short, you can say that codePool helps Magento to locate module inside app/code/ for processing

Magento Questions and Answers Pdf Download

Leave a Reply

Your email address will not be published. Required fields are marked *