Magento Themes and Magento Extensions

Getting currently logged in admin Details in magento.

Posted on March 20th, 2013 | Posted by admin

Getting currently logged in admin Details in magento.

Usind that we can get currently logged in admin details.

$d = Mage::getSingleton('admin/session')->getData();
$dm = $d['user']->getData();

For getting currently logged in admin email id.

$adminEmail = $dm['email'];

Explain how Magento loads and manipulates configuration information

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

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

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

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

Page 3 of 6«12345»...Last »