Magento Themes and Magento Extensions

Explain how Magento loads and manipulates configuration information

Share
Posted on March 19th, 2013 | Posted by admin

Magento configuration is spread among dozens of .xml files. So this is a reasonable question – how does Magento operate all these files and find proper settings for each particular extension?

Let’s refresh some key points of the Magento structure

• Magento is a modular system, in which functionality is located in separate modules.

• There are 3 code pools in Magento – local, community and core.

• The structure of each module includes app/code/[codePool]/Namespace/Modulename/config.xml (this file contains all basic module settings) and app/etc/modules/Namespace_Modulename.xml (this file contains information about code pool and extension activation flag).

• Global settings for Magento installation, including database connection data and admin panel address, are stored in app/etc/config.xml и app/etc/local.xml.

Refer to our previously posted certification-related articles: Magento Codepools and Magento Module Structure

If we trace the code performance starting from index.php, we’ll get the following outcome:

Get store id and website id in magento

Share
Posted on March 18th, 2013 | Posted by admin

Get store id and website id in magento

echo Mage::app()->getStore().’
‘;

/*Store Id*/
echo Mage::app()->getStore()->getStoreId().’
‘;

echo Mage::app()->getStore()->getName().’
‘;
/*Store code*/

echo Mage::app()->getStore()->getCode().’

Magento Gift Options

Share
Posted on March 17th, 2013 | Posted by admin

Most of the online shopping stores adopt various initiatives to attract new customers retaining the existing ones. Different initiatives are available with shopping platforms. Apart from loyalty rewards, Magento allows many innovative gift options to the customers who shop at the online shopping stores. However, it is worth mentioning that these gifting options are available only with Magento Enterprise Edition and not with Magento Community version.
The following gifting options are available with this version of Magento:

  • Gift cards
  • Gift Wrap
  • Gift Messaging
  • Gift Receipts
  • Gift Registry
  • Printed Card, and

Batch Product Entity Updates in Magento

Share
Posted on March 16th, 2013 | Posted by admin

Batch Product Entity Updates in Magento
I’ve been writing scripts that interact directly with the database to modify products, etc., but today, I found a much better way to do things. Although direct DB modification is FAST, it’s also very unsafe, and I’m very wary of putting our clients’ sites at risk in order to do the updates they want. Magento, although very frustrating, offers some flexible functionality to alter its often immense database. Following is a PHP script I wrote to update products based on a CSV. The CSV contains product SKUs, but it can be easily modified to grab IDs from a CSV, and one can export their products and modify the fields they want, and then modify the script slightly to modify entities where needed, and grab the correct columns from the database. It will also resume if it needs to be terminated early (useful because it can take a long time for large updates), and reports percentage of completion. So, without further ado….

Shipping An Order From Magento In Five Simple Steps

Share
Posted on March 15th, 2013 | Posted by admin

Magento is such a brilliant e-commerce platform that it lets online store owners to ship products to multiple addresses from a single order. This software offers great features which the online store merchants had been waiting for since years.If you are an online store owner and facing problems in shipping an order from magento, here’s the solution for you.When order is created and invoiced, you must ship it to customer for its status to become complete. This is a very important step unless order contains only virtual products like downloadable goods or other items that do not need to be shipped to customer.The Invoiced order can be shipped by clicking on ‘Ship’ button on top left side of order edit form. New shipment form will appear.