Zen Cart Logo
Forums / General Questions / Editing order confirmation email

Editing order confirmation email

Locked

Views: 1,701

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
14 Jan 2008, 3:07 PM
#1
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Editing order confirmation email

I searched the forum but didn't quite find what I'm looking for.

I have several attributes for products, and I would like the order confirmation emails to include a : after the attribute name.

Before:

1 xMall Pass for WAHMs
Mall Pass Quarter Jan-Mar 2008 Mall Pass
Discount code and coupon amount xyz
Store name My Store
Store URL http://mystore.com

After:

1 xMall Pass for WAHMs
Mall Pass Quarter: Jan-Mar 2008 Mall Pass
Discount code and coupon amount*:** xyz*
Store name*:** My Store*
Store URL*:** http://mystore.com*

Thanks!

8 Feb 2008, 9:10 PM
#2
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Editing order confirmation email

Bump. I use the confirmation email to copy/paste a lot of info, so this would make it easier to read for me. Thanks!

10 Feb 2008, 3:21 AM
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Editing order confirmation email

You would need to edit the order class for how the attributes are managed on the emails ...

Around line 844 you will find:

          $this->products_ordered_attributes .= "\n\t" . $attributes_values->fields['products_options_name'] . ' ' . zen_decode_specialchars($this->products[$i]['attributes'][$j]['value']);
10 Feb 2008, 3:39 AM
#4
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Editing order confirmation email

? Is there supposed to be a "replace with" code? I have the same exact line... Where would I add a colon?

10 Feb 2008, 3:45 AM
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Editing order confirmation email

Where would you like the colon in your emails?

If you want it after the products_options_name ... then I would add it there ... :cool:

10 Feb 2008, 3:52 AM
#6
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
Location:
Ohio
Posts:
196
Plugin Contributions:
0

Re: Editing order confirmation email

So is it going to look like this? I don't know PHP too well, especially with all the brackets and stuff... :blush:

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

10 Feb 2008, 3:57 AM
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Editing order confirmation email

Very good ... you are learning well ... :smile:

I tend to like you to struggle a bit so that next time you know a little bit more than you did the last time ... others say I have an evil streak as well ... :eek: