Results 1 to 4 of 4

Hybrid View

  1. #1
    Join Date
    Nov 2008
    Posts
    15
    Plugin Contributions
    0

    Default change order confirmation email product details

    Hi,

    I'm using Zen Cart 1.3.8a and wanting to change the order confirmation emails so that instead of looking like this:

    Products
    ------------------------------------------------------
    1 x Kaisercraft Album This Year 2008 (SB172) = $5.00
    1 x Kaisercraft Beyond the Page - Desk Calendar (SB2019) = $4.95
    1 x Zig Writer - Pure Blue (ZW883) = $3.85
    ------------------------------------------------------

    they look like this:

    Products
    ------------------------------------------------------
    (SB172) 1 x Kaisercraft Album This Year 2008 = $5.00
    (SB2019) 1 x Kaisercraft Beyond the Page - Desk Calendar = $4.95
    (ZW883) 1 x Zig Writer - Pure Blue = $3.85
    ------------------------------------------------------

    i.e. the model number comes first.

    If anyone could point me in the right direction, I would much appreciate it,

    Thanks,
    stormieau

  2. #2
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: change order confirmation email product details

    Quote Originally Posted by stormieau View Post
    Hi,

    I'm using Zen Cart 1.3.8a and wanting to change the order confirmation emails so that instead of looking like this:

    Products
    ------------------------------------------------------
    1 x Kaisercraft Album This Year 2008 (SB172) = $5.00
    1 x Kaisercraft Beyond the Page - Desk Calendar (SB2019) = $4.95
    1 x Zig Writer - Pure Blue (ZW883) = $3.85
    ------------------------------------------------------

    they look like this:

    Products
    ------------------------------------------------------
    (SB172) 1 x Kaisercraft Album This Year 2008 = $5.00
    (SB2019) 1 x Kaisercraft Beyond the Page - Desk Calendar = $4.95
    (ZW883) 1 x Zig Writer - Pure Blue = $3.85
    ------------------------------------------------------

    i.e. the model number comes first.

    If anyone could point me in the right direction, I would much appreciate it,

    Thanks,
    stormieau
    St,
    includes/ classes/ order.php

    1. there is no override here.
    2. Make sure you have a copy of the original so if this does not work you can replace it
    3. Make good notes so when you upgrade, this is a core file, so you can make changes easily

    Find this:
    // build output for email notification
    $this->products_ordered .= $this->products[$i]['qty'] . ' x ' . $this->products[$i]['name'] . ($this->products[$i]['model'] != '' ? ' (' . $this->products[$i]['model'] . ') ' : '') . ' = ' .
    $currencies->display_price($this->products[$i]['final_price'], $this->products[$i]['tax'], $this->products[$i]['qty']) .
    ($this->products[$i]['onetime_charges'] !=0 ? "\n" . TEXT_ONETIME_CHARGES_EMAIL . $currencies->display_price($this->products[$i]['onetime_charges'], $this->products[$i]['tax'], 1) : '') .
    $this->products_ordered_attributes . "\n";
    $this->products_ordered_html .=
    Change to this:
    // build output for email notification
    ($this->products[$i]['model'] != '' ? ' (' . $this->products[$i]['model'] . ') ' : '') . ' = ' . $this->products_ordered .= $this->products[$i]['qty'] . ' x ' . $this->products[$i]['name'] . $currencies->display_price($this->products[$i]['final_price'], $this->products[$i]['tax'], $this->products[$i]['qty']) .
    ($this->products[$i]['onetime_charges'] !=0 ? "\n" . TEXT_ONETIME_CHARGES_EMAIL . $currencies->display_price($this->products[$i]['onetime_charges'], $this->products[$i]['tax'], 1) : '') .
    $this->products_ordered_attributes . "\n";
    $this->products_ordered_html .=

  3. #3
    Join Date
    Nov 2008
    Posts
    15
    Plugin Contributions
    0

    Default Re: change order confirmation email product details

    Thank you so much :)

  4. #4
    Join Date
    Apr 2006
    Location
    Texas
    Posts
    6,196
    Plugin Contributions
    0

    Default Re: change order confirmation email product details

    St,
    Your Welcome, have you been sleeping for 20 days.. LOL

 

 

Similar Threads

  1. v138a Modify Product Details in order confirmation email
    By WilpackPackaging in forum General Questions
    Replies: 3
    Last Post: 6 Jan 2015, 10:57 PM
  2. Order processed, but no confirmation email & no details on admin (Paypal IPN)
    By garou in forum Built-in Shipping and Payment Modules
    Replies: 2
    Last Post: 26 Feb 2010, 09:36 AM
  3. Order Confirmation Email - I want to add more details
    By shaza in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Aug 2009, 02:52 AM
  4. Bank Details on Order Confirmation Email
    By Mike_Dean in forum Built-in Shipping and Payment Modules
    Replies: 6
    Last Post: 19 Sep 2008, 04:54 PM
  5. Can I change product details in order confirmation email?
    By ducksigns in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 27 Oct 2007, 11:29 PM

Posting Permissions

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