Forums / General Questions / Editing order confirmation email

Editing order confirmation email

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

ktnaturals

Zen Follower

Join Date:
Dec 2006
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!
08 Feb 2008, 21:10
#2
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
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, 03:21
#3
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
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:
[PHP] $this->products_ordered_attributes .= "\n\t" . $attributes_values->fields['products_options_name'] . ' ' . zen_decode_specialchars($this->products[$i]['attributes'][$j]['value']);
[/PHP]
10 Feb 2008, 03:39
#4
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
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, 03:45
#5
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
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, 03:52
#6
ktnaturals avatar

ktnaturals

Zen Follower

Join Date:
Dec 2006
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']);[/php]
10 Feb 2008, 03:57
#7
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
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: