Drupal 7 – Customize Ubercart invoice email template

You can find the Ubercart invoice email template files @ sites/all/modules/ubercart/uc_order/templates. You could copy and edit the uc-order–customer.tpl.php to fit your needs but you could not select it @ E-mail customer checkout notification > Email an order invoice in Rules. This is because you have to implement the hook_uc_invoice_templates() before the new template is selectable.

Luckily, there is a module called Ubercart Register Invoice Templates which simplifies the setup.

1. Download and install the module.

2. Copy the /sites/all/modules/ubercart/uc_order/templates/uc-order–customer.tpl.php to your theme templates directory. Rename it to uc-order–<template-name>.tpl.php and make any changes.

3. Edit the Email an order invoice rule and you could find the new template now. (uc-order–rc.tpl.php)

Done =)



One thought on “Drupal 7 – Customize Ubercart invoice email template”

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.