I have a new range of hen night/wedding badges and cards. My etsy shop is growing with new additions of hen party badges for bridesmaids. The new badges for Bridesmaids come in pink and white to match the team bride badges that are currently available. These badges also come on cards for the bride to give out as either a thank you or to ask for her be her bridesmaid.

Shocking pink tacky hen party accessories don’t really go with a stylish hens afternoon in London or your local town. My new range of Spring/Summer hen party badges are designed for sunny hen weekends away, classy afternoon teas and sophisticated activities. They are available in pale pink and duck egg blue. So whether you are organising a vintage hen celebration or a relaxing hens weekend in the sun. Adorn your fellow ladies with these beautiful pastel coloured badges.

Quirky new baby badge cards for proud new parents. Each card comes with a “new dad” and a “new mum” badge for the happy parents to wear with pride. Now available in my etsy shop:https://www.etsy.com/uk/shop/MakeLoops

As part of a recent project customising Magento emails I discovered a few useful bits and pieces that make creating custom transactional emails a little easier.

Static Blocks

I am not sure why I hadn’t thought of this but you can use static blocks in your emails in the same way as you would a CMS page. This is great because it allows you to make blocks that you can include in every email such as:
- Header
- Footer
- Promotional Content Area
- Social Links
etc and centrally manage it or allow the client to manage it rather than editing every email individually. The code you need is as follows:

You can place this code either in the emails you have setup within “system/transactional emails” or within your site directory “app/locale/en-us/template/email/email-file-name.html” with en-us being whatever locale you happen to be using.

Another cool thing about this is that you can easily upload images and include them within the static block admin screen rather than including the images in your theme. This makes it easy for clients to refresh certain sections themselves or write promotional content.

Referencing Store Information

Magento as standard references a few of the fields in the admin to populate the email eg. Store Name. However it is useful to also know that you can reference a lot more of the store information. For example if you are creating an email footer to state the stores name, address, telephone number, vat number etc you can pull all this information in dynamically so that your emails are kept up to date. The code required is:

and if you require anything else the easiest way to see how the field would be called is to browse to the section in the admin and inspect the field for its “name”. You would then write the code as follows:

I have literally spent hours trying to set up mail on my localhost so that I can send test emails from Magento, and finally its working. So I thought I would share my solution in case it saves others wasted hours too

Firstly I needed to download the most recent release of sendmail. This can be found here: http://glob.com.au/sendmail/. Once downloaded browse to c:/xampp/sendmail (assuming your installation is on your c:/ drive) and delete and replace with the newly downloaded files.

Then in c:/xampp/sendmail/sendmail.ini comment everything out but the following lines and modify to be your own email address and password.

Then in c:/xampp/php/php.ini search for “mail” and comment out everything but sendmail_path and mail.add_x_header lines.

; For Win32 only.
; http://php.net/smtp
;SMTP = localhost
; http://php.net/smtp-port
;smtp_port = 25
; For Win32 only.
; http://php.net/sendmail-from
;sendmail_from = postmaster@localhost
; For Unix only. You may supply arguments as well (default: "sendmail -t -i").
; http://php.net/sendmail-path
sendmail_path = "\"C:\xampp\sendmail\sendmail.exe\" -t"
; Force the addition of the specified parameters to be passed as extra parameters
; to the sendmail binary. These parameters will always replace the value of
; the 5th parameter to mail(), even in safe mode.
;mail.force_extra_parameters =
; Add X-PHP-Originating-Script: that will include uid of the script followed by the filename
mail.add_x_header = Off
; Log all mail() calls including the full path of the script, line #, to address and headers
;mail.log = "C:\xampp\apache\logs\php_mail.log"

Then restart Apache and it should work!!
To test you can place this script in your htdocs change the $to field and browse to it.

The below code will create a menu that shows the siblings of an active category as well as showing its grandchildren. This will allow a user to jump between categories easily. Active classes are provided and the parent category is used to create a title. Again I am not a PHP developer so any bug fixes or tips are welcome.

The below code snippet/instructions will display images and links for each sub category on a category landing page. Feel free to use this code as a reference, however not being a PHP developer there may well be errors so I welcome any tips or improvements!

1. Create a new file called “categoryblocks.phtml” in app/design/frontend/YOUR THEME/default/template/catalog/navigation

I had been looking for matching number and letter knobs for ages. The only ones I could seem to find either didn’t go up to a high enough number to cover all my drawers or a high enough letter. So I took matters into my own hands and made my own. It worked out cheaper too! I bought some plain ceramic knobs off ebay and a ceramic painter pen. This is the final result.