How to edit email template in magento

Posted on July 28th, 2011 | Posted by admin

You may tell me that it’s very simple to edit email templates in Magento. I agree . This post I just want to share with Magento beginners.
As you know, there are many emails which are sent to customers in Magento : order confirmation (guests, registered customers), order update, new account welcome email … First, let me tell you how to edit these email templates.
To do this, just go to your admin, then navigate to System => Transactional Emails

“How to add series” #1: Adding new layout template for Magento

Posted on July 28th, 2011 | Posted by admin

Hello everyone,
Today, Travis asked me to compete with him in sharing Magento knowledge in Magestore blog. Well, of course, I have no fear, and I want to start the competition with “How to add” series. And let’s start with How to add new layout template for Magento.
As we know, Magento provides some defined layouts: 1column, 2 columns (left and right), 3 columns. But I am sure that when working with Magento, sometimes you have to create a new layout for custom page, for example, 3 columns only for cms page.
You can make modification directly in app/code/core/Page/etc/config.xml but if you don’t want to touch core file, I recommend you to follow these steps:

Guide through Magento’s timezones

Posted on July 25th, 2011 | Posted by admin

I’ll guide you through Magento’s timezone behavior, as I’ve noticed that people tend to get confused in cases when they have 2 or more websites with different timezones. If this is what you are searching for, read on!

First of all, let’s start with the Web server – Magento relation, and their times.

Web server – Magento relation

Let’s look at the following scenario. You want an online store – ok, you’ll need a web hosting for it (on some web hosting providers server). With classic low-level PHP development people tend to overlook server’s settings, and each server has it’s own time and timezone set. If you overlook that, each time your script executes any of time functions, it will take server time as actual one. So first thing you need to look at, is server location, and its time zone.

In case of Magento, the situation is a bit different. Let’s take a look at index.php (first executed PHP file on server):

Mage::run($mageRunCode, $mageRunType);

And that line starts Magento initialization.

Magento CMS syntax – part2

Posted on July 25th, 2011 | Posted by admin

Every Magento user noticed that there is special {{magentocode}} syntax available in cms pages and static blocks. We traced a bit to find out which params are available and what exactly they do.
Magento CMS syntax – part1 is first part of this series. Please read before this.

Since the part1 article 4 new codes were introduced in newer Magento versions, so now there’s 10 of them total: skin, media, htmlescape, store, block, layout, config, customvar, protocol and widget.

They are currently handled by Mage_Widget_Model_Template_Filter processor class (which extends Mage_Cms_Model_Template_Filter which extends Mage_Core_Model_Email_Template_Filter).

How to create custom attribute source type?

Posted on July 25th, 2011 | Posted by admin

Have you ever need to create custom attribute source type? This is small example which will help you to create custom source type. I hope that it will be helpful.

Let’s go….
First of all you need to create sql setup file which will add attribute to your system with custom source type. Source type is defined in array : ‘source’ => ‘sourcetype/attribute_source_type’.

Page 1 of 612345»...Last »