Setting new orders to Complete (or any other status) in Magento

Aug 4, 2011

Magento brilliantly provides a configuration option for each of the built-in payment methods to allow you to set the orders status – unfortunately by default the only option you can pick is pending. Each of Magento’s payment methods are created by the core payment module or as their own modules such as paypal – you can find the core methods in the folder app/code/core/Mage/Payment. If you take a look in the system.xml configuration file – inside the etc folder then you will find some way down the field definition for the new order status field that you see in the admin.

Setting Up Tax In Magento

Jul 19, 2011

As with most things in Magento the configuration of tax is extremely thorough and flexible – but you do have to think a little bit to set it all up, here is a quick guide to doing just that. Configuration First take a look at the System->Configuration options for VAT under the sales section. Here we have loads of options for how the tax should be applied to order and defaults to use before we actually know where the customer is ordering from or delivering to.

Using Layout Update XML in Magento

Jun 19, 2011

The Magento Designer’s Guide has the following short intro about layout XML and I think it explains it quite well, although I will go through some more detail with examples afterwards. Layout is a virtual component of the Magento application. By modifying the components of layout, you can build your store page in an upgrade-compatible way. Layout is comprised of default layout and layout updates that are made up of easy-to-learn XML tags.

Loc8tor Multi-Region Multi-Language Magento eCommerce Website

Jun 14, 2011

This new site follows a design I was provided and is built using Magento and a number of specialist plugins. The core Magento functionality for different websites and stores was used to create versions of the site in multiple languages and with slightly different product ranges and pricing. All of this was done with the minimum of repetition within the admin portion of the site. I used an Advanced Currency plugin by Retail Evolved to allow for prices to be set in one currency but billed in another – allowing the site owners to keep a single currency merchant account.

Catherine Best Magento eCommerce Website

Jun 10, 2011

This Magento site had a really fast turn-around and I think everyone has been really pleased by the results. We are aiming for a high-end market and trying to make the most of the Jewellery. From a technical point of view the site uses Magento under the hood, but the product lists have been heavily customised to show large product images and use some flashy javascript to scroll through the product photos.

Magento: Remove the “Customer Login” page title when using a form_login on your homepage

Jun 7, 2011

Magento provides a very nice way of placing a login form directly onto your page design, instead of the user having to click a login button, the only problem is that the login form inadvertently sets the page title to “Customer Login” for any page it is placed on. The fix is fairly simple, if a little bit of a hack. What you need to do is override the module that you use when placing the login form into your template.

Display your Magento store address (from the configuration)

Jun 6, 2011

Magento lets you enter your store address directly into the configuration settings – here is the code snippet to display that in one of your Magento Templates. First of all the setting is found in the system-Configuration page under General – Shop Information. Obviously you can vary this for different Store Views etc. Here is a quick screenshot to make sure you are in the right place… Configuration General-Shop->Information” src=“/wp-content/uploads/2011/06/Mageno-System-Configuration-General-Shop-Information-575x212.png” alt=“Magento System->Configuration General-Shop->Information” width=“575” height=“212” /> the code to then display this in one of your templates is then a one line snippet of PHP… echo Mage::getStoreConfig('general/store_information/address'); You probably want to display on multiple lines – by default this will just include line breaks that will then be ignored in HTML.

Adding Debug Messages to a Magento Module

Jun 4, 2011

When you start building your own Magento modules/plugins, or even just resort to looking at the code to try to work out how to things need to be in your templates it is often useful to output debugging information. Magento helpfully provides such a facility but it is a bit tricky to find. Buried away in the depths of the System->Configuration menu under Advanced – Develop and then Log Settings you can turn on logging.

Order product list on your homepage in Magento

Jun 3, 2011

I recently found that having worked out how to place a cateogry of products on the homepage of my Magento site I wanted to specify the order that those products were listed in. Mainly this was because I was hiding the standard Magento toolbars, so the customer could not do this themselves. The first place I started looking was the system configuration menu, see below. This seemed like a promising place to start with the dropdown for “Product Listing Sort by”.

How to Reorder your Magento Footer Links and A Walkthrough the Magento Layout/Template System

May 25, 2011

I have built a number of Magento sites and have managed to avoid the awkward question of setting the order of the footer links, here I describe how it can be done with some extra explanation into how Magento makes it all happen. First let me explain where the links are in the Magento structure, so you can add, edit or remove them from the footer links. The links are added into the page in the template/page/html/footer.phtml file, where there are two links – usually your template will have one called footer_links and a second one called something like cms_footer_links.