Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2006
    Location
    Ohio
    Posts
    198
    Plugin Contributions
    0

    Default 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!

  2. #2
    Join Date
    Dec 2006
    Location
    Ohio
    Posts
    198
    Plugin Contributions
    0

    Default 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!

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,671
    Plugin Contributions
    6

    Default 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']); 
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  4. #4
    Join Date
    Dec 2006
    Location
    Ohio
    Posts
    198
    Plugin Contributions
    0

    Default 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?

  5. #5
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,671
    Plugin Contributions
    6

    Default 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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  6. #6
    Join Date
    Dec 2006
    Location
    Ohio
    Posts
    198
    Plugin Contributions
    0

    Default 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... [/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]

  7. #7
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    64,671
    Plugin Contributions
    6

    Default Re: Editing order confirmation email

    Very good ... you are learning well ...

    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 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.1]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

 

 

Similar Threads

  1. Customer's Email in Order Confirmation Email
    By Jinn in forum General Questions
    Replies: 1
    Last Post: 8 Dec 2007, 12:29 AM
  2. Editing email order confirmation
    By chronister in forum Templates, Stylesheets, Page Layout
    Replies: 5
    Last Post: 30 Nov 2007, 03:43 AM
  3. Editing the Order Confirmation Page
    By neil1979 in forum Managing Customers and Orders
    Replies: 3
    Last Post: 25 Jun 2006, 07:06 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •