Page 2 of 2 FirstFirst 12
Results 11 to 14 of 14
  1. #11
    Join Date
    May 2006
    Posts
    9
    Plugin Contributions
    0

    Default Re: Adding Manufacture to Order Confirmation Email

    After much playing around, (I am very much an amateur programmer), I found that putting the function from Beau91324 (thanks Beau!) in: includes/classes/order.php here worked -

    $this->notify('NOTIFY_ORDER_PROCESSING_ONE_TIME_CHARGES_BEGIN');

    // build output for email notification
    $this->products_ordered .= $this->products[$i]['qty'] . ' x ' . zen_get_products_manufacturers_name($this->products[$i]['id']) . $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 .=

  2. #12
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Adding Manufacture to Order Confirmation Email

    Thanks for the update that you have this working and for posting the solution that worked for you ...
    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.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  3. #13
    Join Date
    May 2006
    Posts
    9
    Plugin Contributions
    0

    Default Re: Adding Manufacture to Order Confirmation Email

    Hi Ajeh,
    I have used this forum extensively over the years so it's great to be able to give a tiny bit back
    Should add that the function mentioned needed a space:
    .' '
    at the end. (Us novices need that basic info!)

  4. #14
    Join Date
    Nov 2011
    Location
    Brisbane, Australia
    Posts
    35
    Plugin Contributions
    0

    Default Re: Adding Manufacturer to Order Confirmation Email

    For those running 1.5.x, the following code worked a treat for me in bold below for the text message as well as HTML message. It puts the manufacturer first, followed by a hyphen, then the product name as per normal. This is done in the /httpdocs/includes/classes/order.php file around line 900:

    // build output for email notification
    $this->products_ordered .= $this->products[$i]['qty'] . ' x ' . zen_get_products_manufacturers_name($this->products[$i]['id']) . '-' . $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 .=
    '<tr>' . "\n" .
    '<td class="product-details" align="right" valign="top" width="30">' . $this->products[$i]['qty'] . '&nbsp;x</td>' . "\n" .
    '<td class="product-details" valign="top">' . zen_get_products_manufacturers_name($this->products[$i]['id']) . '&nbsp;-&nbsp;' . nl2br($this->products[$i]['name']) . ($this->products[$i]['model'] != '' ? ' (' . nl2br($this->products[$i]['model']) . ') ' : '') . "\n" .
    '<nobr>' .
    '<small><em> '. nl2br($this->products_ordered_attributes) .'</em></small>' .
    '</nobr>' .
    '</td>' . "\n" .
    '<td class="product-details-num" valign="top" align="right">' .
    $currencies->display_price($this->products[$i]['final_price'], $this->products[$i]['tax'], $this->products[$i]['qty']) .
    ($this->products[$i]['onetime_charges'] !=0 ?
    '</td></tr>' . "\n" . '<tr><td class="product-details">' . nl2br(TEXT_ONETIME_CHARGES_EMAIL) . '</td>' . "\n" .
    '<td>' . $currencies->display_price($this->products[$i]['onetime_charges'], $this->products[$i]['tax'], 1) : '') .
    '</td></tr>' . "\n";

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Adding Data To Order Confirmation Email
    By mikestaps in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 30 Aug 2012, 10:58 PM
  2. Adding Information to Order Confirmation Email
    By solarguy in forum General Questions
    Replies: 1
    Last Post: 24 Nov 2010, 04:52 AM
  3. Adding a part number to order email confirmation
    By PureEffort in forum General Questions
    Replies: 8
    Last Post: 7 Oct 2010, 06:02 AM
  4. Replies: 4
    Last Post: 9 Jun 2009, 08:17 PM
  5. Adding General Comments to Order Confirmation Email
    By sirluck in forum General Questions
    Replies: 3
    Last Post: 25 May 2008, 10:14 PM

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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR