Magento Interview Questions

Magento Interview Questions

1) Mention what is Magento?
Magento is an e-commerce platform created on open source technology, which provides online merchants with an exceptional flexibility and control over the content, look and functionality of their e-commerce store.

 2) Why to use Magento?
Magento is open source E-commerce software.
It is scalable and offers small companies to build business.
It provides the searching and sorting of products in several ways.
Easily integrates with many of the third-party sites which are needed to run effective E-commerce website.
Using this, customer can order or purchase number of products. There are no limits on number of purchasing products

3) Mention what is the architecture of Magento? What are the different versions of Magento? Magento architecture is a typical PHP MVC (Model-View-Controller) application, where all the Controllers will be in one folder and all the Models in another, etc. Based on their functionality files are grouped together, which are referred as modules in Magento.

4) Mention what technology does Magento use?
Magento use PHP as a web server scripting language and MySQL for database.

5) Mention what is the limitation of Magento?
Magento is supported by PHP, comparatively to other e-commerce solutions, Magento might be slow in performance
It becomes a complex system if it is not using object-oriented programming
Magento requires much space and memory

6) Difference between Mage::getSingleton() and Mage::getModel()
The difference between Mage:getSingleton() and Mage::getModel() is that the former one does not create an object if the object for same class is already created, while the later creates new objects every time for the class when it’s called.
Mage::getSingleton() uses the “singleton design pattern” of PHP. If the object is not created, it will create it.
Mage::getSingleton() is mostly used when you want to create an object once, modify it and later fetch from it. Popular example is session, you first create a session object, and then add/remove values from session across different pages, so that it retains your values (e.g. cart values, logged in customer details, etc.) and doesn’t create new session object losing your last changes.
Mage::getModel() is used when you want to have the fresh data from the database. Example is when you want to show records from database.

7) How will you call a CMS page in your module’s PHTML file?
$this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘blockidentifier’)->toHtml();

8) When will you need to clear cache to see the changes in Magento?
When you have added/modified XML, JS, CSS file(s).

9) How will you log current collection’s SQL query?
$collection->printLogQuery(true); OR $collection->getSelect()->__toString();

10) Where is the relation between configurable product and it’s simple product stored in database?
In the 2 tables:
catalog_product_relation
catalog_product_superlink_table

11) How to get first item or last item from the collection?
$collection->getFirstItem() and $collection->getLastItem();

12) Which factors affect performance of magento?
1.EAV structure of magento database, even for retrieving single entity the query becomes very complex .
2. Magento’s template system involves a lot of recursive rendering
3. Huge XML trees built up for layout configuration, application configuration settings

13) Mention what is the benefit of applying Connect Patches in Magento?
In Magento, applying connect patch
It enables easy installation of packages with installation; it overwrites any existing translations for the same time
For enhancing security, by default Magento Connect uses HTTP to download extensions instead of FTP
With a dash character in the name, extension developers can now create extensions
Magento administrators will be informed now who tries to install an extension with insufficient file system privileges

14) What is Payflow Pro?
The Payflow Pro option is customizable payment gateway which can be used with merchant account to process credit card transactions.

15) What is Payflow Link?
Payflow Link option often called as hosted payment gateway that keeps customer on your site by providing fast and easy way to add transaction processing to your site.

16) What is Magento Content Management System(CMS)?
Magento CMS (Content Management System) section is used to manage all web site pages. It is a way of promoting the products by providing valuable information to the customers and increases visibility to search engines.

17) What is WSDL?
It stands for Web Services Description Language. It is used for describing web services and how to access them.

18) How to optimize the Magento front-end performance?
Use the latest version of php, so that you can perform front-end operation much better and faster. The newest released version may cause the errors, so carefully read the release notes and check out the new version.
Use the clean database to improve the performance of magento. The database logs need to be clear regularly. The database stores the automatically created logs to keep track of record session and interaction.

19) What is E-commerce?
E-commerce (Electronic Commerce) is a type of business that involves the commercial transaction or purchasing or selling of goods and services through electronic channels known as internet.

20) What are the features of Magento?
Magento provides different payment methods such as credit cards, PayPal, cheques, money order, Google checkouts.
It provides shipping of products in one order to the multiple addresses.
Easy to manage the orders by using admin panel.
It filters the products and displays in grid or list format.






Pageviews from the past week