Tell me more ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I'm trying to modify the format and text of the confirmation email in Ubercart and I don't know from where....can anyone give me hint? for example including some images or custom links in some parts of the email, quit the horrible yellow background of the site name , etc, etc... I'm using Drupal 6

Here's what I'm receiving at the moment... enter image description here

share|improve this question

migrated from stackoverflow.com Mar 6 '12 at 18:33

2 Answers

up vote 6 down vote accepted

You'll want to override the file 'uc_order-customer.tpl.php' found in the ubercart module. The way you do this is:

You need to copy two files from sites/all/modules/ubercart/uc_order/templates The files to copy are uc_order.tpl.php and uc_order-customer.tpl.php

Then just edit uc_order-customer.tpl.php to your liking.

share|improve this answer
Thanks! I just copied uc_order-customer.tpl.php file to my template and wondered why it didn't worked. – 3oheme Aug 31 '11 at 7:37
1  
Glad to help ;) – Houen Sep 1 '11 at 9:44

Additionally if you want to build multiple templates you can copy the uc_order.tpl.php to your theme's templates directory and create a new template called something like uc_order-customer2.tpl.php where customer2 can be any name you choose.

Then implement a hook to identify the new templates:

function hook_uc_invoice_templates() {
  return array('customer2');
}

Make sure the 'customer2' is the same as that part of the template file name.

This way you can make unlimited e-mail templates and keep the original customer template intact.

Also note that you can choose the template you want sent in the conditional actions predicate.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.