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:
Quote:
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:
Quote:
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!
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!
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 Code:
$this->products_ordered_attributes .= "\n\t" . $attributes_values->fields['products_options_name'] . ' ' . zen_decode_specialchars($this->products[$i]['attributes'][$j]['value']);
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?
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:
Re: Editing order confirmation email
[FONT=Courier New]So is it going to look like this? I don't know PHP too well, especially with all the brackets and stuff... :blush:[/FONT]
[FONT=Courier New]
PHP Code:
$this->products_ordered_attributes .= "\n\t" . $attributes_values->fields['products_options_name'] . ': ' . zen_decode_specialchars($this->products[$i]['attributes'][$j]['value']);
[/FONT]
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: