Archive for the ‘code’ Category

Using magento configuration data (2009-6-21)

The previous post looked at how to add configuration variables to Magento. This Post will show how to set and use the variables.
The naming convention for variables is the path through the xml, section/group/form. So the url variable from the previous post is shipping/mydispatch/url.
The function to retireve the value of the variable is
Mage::getStoreConfig(’shipping/mydispatch/url’)
for a specific [...]

Adding configuration variables to Magento (2009-6-21)

Configuration variables in Magento control the setup an operation of your store, through the configuration settings in the admin portal. Creating new configuration variables and sections for your own modules is very straight forward.
Looking at the configuration for an existing configuration section, the Locale options in the General section.

So we can write the location of [...]

Magento Modules (2009-6-18)

Magento is built using the MVC  model, this provides for clear sepperation of the logic and display. Each part of Magento is constructed as a module which adhears to this convention. When developing new modules you must also adhear to the convention.
Initially the structure can be a little hard to understand, however once over the [...]

Custom API – two approaches (2009-6-14)

Creating custom API interface can be done in two very different ways. This can make it very difficult to follow some of the online examples. The two common approaches are:

Create a custom module and implement the Zend Framework Soap method
Extend the core API

Sucessful email with IIS SMTP and Magento (2009-6-11)

When running Magento under IIS most people will want to use the built in SMTP server. Unfortunately this doesn’t work out of the box as Magento sends both the to address and a from name in the email message, which is not correctly handled in the IIS smtp service. Emails will apear to send but [...]