Forums / General Questions / Order Confirmation Email - How to Customize the format?

Order Confirmation Email - How to Customize the format?

Locked
Results 1 to 3 of 3
This thread is locked. New replies are disabled.
30 Dec 2008, 22:03
#1
daffy avatar

daffy

Zen Follower

Join Date:
Jul 2008
Posts:
114
Plugin Contributions:
0

Order Confirmation Email - How to Customize the format?

We use the content of the Admin's order confirmation email to setup our own invoices. Copy and paste. (That's ok, I don't mind a little manual labor.)

What I would like to customize is the line for Attributes. At this time, all the products and their attributes are flush left aligned, so, visually it all runs together into one square box of text along the left side.

I would like the ATTRIBUTES line to be indented a few spaces. Or, if that's not possible, to insert some dashes or special characters to move the Attributes to the right a bit and visually break up the block of text.

We are using TEXT emails throughout.

I've spent quite a bit of time searching through lots of files but I can't find any bit of code that resembles the emails we're getting. So I can't figure out where to start working on this. I would think the customizing should be simple, if I knew where to start.

Cyndy
30 Dec 2008, 22:10
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,506
Plugin Contributions:
173

Re: Order Confirmation Email - How to Customize the format?

Around line 752 of /includes/classes/order.php, you'll see this:
      //------ bof: insert customer-chosen options to order--------
      $attributes_exist = '0';
      $this->products_ordered_attributes = '';
Change this line as desired:
      $this->products_ordered_attributes = ' - ';
31 Dec 2008, 00:10
#3
daffy avatar

daffy

Zen Follower

Join Date:
Jul 2008
Posts:
114
Plugin Contributions:
0

Re: Order Confirmation Email - How to Customize the format?

Thank you! That's the place I was looking for. However, the special characters appeared at the end of the product line, ... rather than the beginning of the attributes line.

I was able to insert my special characters on line 844 instead. I changed this line of code:

$this->products_ordered_attributes .= "\n\t" . $attributes_values->fields['products_options_name'] . ' ' . zen_decode_specialchars($this->products[$i]['attributes'][$j]['value']);


TO THIS:

$this->products_ordered_attributes .= "\n\t" . ' - - -  ' . $attributes_values->fields['products_options_name'] . ' ' . zen_decode_specialchars($this->products[$i]['attributes'][$j]['value']);


So, now the special characters are in front of the attributes where I wanted them.

I appreciate your help. I needed a push in the right direction. Thank you!


Cyndy