Magento Interview Questions – Set 02

Explain some features of Magento?

Magento has following basic features.

  • SEO Friendly
  • Google sitemap support
  • Accounts of Customers
  • Managing orders
  • Report and analysis
  • Site management
  • Payment
  • Marketing promotion and tools
  • International support
  • Extremely modular architecture

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”.

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.

CodePools:

_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:

_app

_code

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

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.

How will you get first and last item from the collection in Magento?

$collection->getFirstItem() and $collection->getLastItem();

Define 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.

How to change theme for login users?

To change theme for login users,

if(Mage::getSingleton(‘customer/session’)->isLoggedIn()):
Mage::getDesign()->setPackageName(‘package_name’)->setTheme(‘themename’);
endif;

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.

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.

State whether namespace is mandatory while creating a custom module in Magento?

No, namespace is not mandatory while creating custom module.