Magento: Send Transactional Email

In Magento, Transactional Email Templates can be created from System -> Transactional Emails. This article shows how we can send transactional emails programmatically. There are few necessary things for any transactional email in Magento. They are:- Template ID = ID of your transactional email template Sender Name Sender Email Recepient Name Recepient Email Store ID … Read more

Magento: How to create extension package? [IMAGES]

You have built a custom magento extension (magento module) and you want to package it and submit it to magento connect (magento extension directory). This article shows how to create Magento extension package. I have included images for every step which I followed while creating extension package for my module (Auto Currency Switcher). Auto Currency … Read more

Magento: Payment method not displayed in Multiple Shipping Adresses Checkout

Problem: I have a payment method which is displayed well in general Magento checkout. But it is not displayed in Multiple Addresses Checkout. Solution: Please see the Model class of your payment module. The following variable should be set as true. /** * available for multi shipping checkouts */ protected $_canUseForMultishipping = true; Write the … Read more

Magento: Send email easily using Zend_Mail

Here is a quick function code to send email in Magento. I am using the Zend_Mail class. /** * Send email */ public function sendEmail() { $fromEmail = "from@example.com"; // sender email address $fromName = "John Doe"; // sender name $toEmail = "to@example.com"; // recipient email address $toName = "Mark Doe"; // recipient name $body … Read more

Magento: Different shipping rate for different country and region

Here, I will show you how you can assign different shipping rate for different country in Magento. Like, there might be different shipping rate for US and Canada. Moreover, there might be different shipping rate for various regions within US as well. Like, there might be different shipping rate for Florida and California. In Magento, … Read more

Magento: Add default value to System Configuration Option fields

This article shows how to add default value to any system configuration option fields. System configuration option fields means those options under System -> Configuration. Suppose, you have the following system.xml file. System.xml file is necessary to add admin configuration options. system.xml <?xml version="1.0" encoding="UTF-8"?> <config> <sections> <mysection translate="label" module="mymodule"> <label>My Section</label> <tab>catalog</tab> <frontend_type>text</frontend_type> <sort_order>110</sort_order> … Read more

Magento: Fatal error: Call to a member function getTable() on a non-object

Scenario:- I am getting the fatal error saying:- Fatal error: Call to a member function getTable() on a non-object in /var/www/magento/app/code/core/Mage/Core/Model/Mysql4/Collection/Abstract.php on line 456 This error occurs when I try to browse Configurable product in frontend. Or, when I try to add Configurable product in backend. I am using Magento version 1.5.0.1 Cause & Solution:- … Read more