Magento Themes and Magento Extensions

Magento: Create multi shipment for an order programmatically

Posted on November 11th, 2012 | Posted by admin

This is another post for Magento programmer who needs to work with an extension for creating shipment for Magento order. You will need to use this when you have a module which connects Magento store with a vendor store. Basically, you need to program a script to create shipment for Magento automatically.

First, you will need to load an order using order increment id:

$order = Mage::getModel('sales/order')->loadByIncrementId($orderId);

Securing Magento File & Directory Permissions

Posted on November 10th, 2012 | Posted by admin

By default most software packages are installed with the most lenient file/directory permissions and ownership. This is normally done for the sake of the software developer given that their software must be installed on a range of diverse systems with varying configurations. This article is meant to give you an overview of how to setup your Magento installation with the strictest of permissions for overall security’s sake.

When running Linux there are two main environments that you will find:

1) PHP scripts run via mod_php or equivalent and are executed as the webserver user. 2) PHP scripts execute as the user who owns the files themselves via an intermediate construct such as suPHP, PHP suEXEC, PHP-FPM etc.

Sending newsletters in Magento

Posted on November 9th, 2012 | Posted by admin

Here’s a simple guide regarding how to send newsletters from your magneto store.

The first thing you need to do is go to System => Configuration => Newsletter. Next, click on Subscription. Now, in this tab you can select some options for newsletters, like the ones mentioned below –

  • Success Email Template– From this select field, you can select template for success.
  • Unsubscription Email Sender– When a customer wants to unsubscribe for newsletter, this email system is used.
  • Unsubscription Email Template –Use this template for body in Unsubscription email.
  • Success Email Sender– This one is for identification, use for “From” field in email.
  • Confirmation Email Template – The system uses this template for body in confirmation email.
  • Need to Confirm – In case you want you customer to confirm that he/she wants to get newsletter, mention “Yes” in this field.
  • Confirmation Email Sender – It is for identification, use for “From” field in email.
  • Allow Guest Subscription – A great option as you don’t need to force your customer to register in case they want a newsletter.


Posted on November 8th, 2012 | Posted by admin


There are some instances that you want to offer a coupon code or private sales in your site. In order to for you to do that you need to check if the user logged in using the following code:

<?php if(Mage::getSingleton('customer/session')->isLoggedIn()): ?>

 //paste your coupon code or private information here. 

<?php endif; ?>

Also you can use this helper method. It does exactly the same as abov

Adding your custom module to Magento’s Admin Global Search

Posted on November 7th, 2012 | Posted by admin

When creating a custom module in Magento, have you ever wanted to add custom search functionality to the Magento admin area, allowing users to search your module? Today I will attempt to show you in the most simple of terms how you can achieve this and add to Magento’s global search.

For this example I will be using a custom module called Matt_Car, a fictitious module that may contain information on a car and output on the store front. We will be adding functionality to search by car name or brand within Magento’s admin area global search box.

I will assume you’ve already created a custom module, as this will be the module you are searching, but your module declaration should look something like…