Page 1 of 2 12 LastLast
Results 1 to 10 of 14
  1. #1
    Join Date
    Aug 2004
    Location
    Newport, Wales
    Posts
    283
    Plugin Contributions
    0

    Default Customer Comments on Invoice

    Hi

    In previous versions of ZenCart (1.2.6) I had the Invoice configured to show customer comments. I think Dr Byte gave me the info and was as follows

    <!--add comment starts-->
    <tr><td class="main"><?php echo '<b>Customer comments: </b>' . $orders_history->fields['comments']; ?></td>
    </tr>
    <!--add comment ends-->
    Having just upgraded to 1.3.7 this code no longer works. I have been playing with it for ages now and nothing is working so I thought I would throw this one out to the Community to see if anyone has an answer

    Cheers
    Brinley

  2. #2
    Join Date
    Aug 2004
    Location
    Newport, Wales
    Posts
    283
    Plugin Contributions
    0

    Default Re: Customer Comments on Invoice

    Worked it out!

    I fogot to add the select query to the page

    So for anyone else who wants to do this the below goes above the $order_check statement in Invoice.php in Admin


    //--Add comments starts--
    $orders_history = $db->Execute("select orders_status_id, date_added, customer_notified, comments
    from " . TABLE_ORDERS_STATUS_HISTORY . "
    where orders_id = '" . zen_db_input($oID) . "'
    order by date_added limit 1");
    //--Add comments ends--
    Also add the below code to the page -

    <!--add comment starts-->
    <tr><td class="main"><?php echo '<b>Customer comments: </b>' . $orders_history->fields['comments']; ?></td>
    </tr>
    <!--add comment ends-->
    Cheers
    Brinley

  3. #3
    Join Date
    Apr 2006
    Posts
    247
    Plugin Contributions
    0

    Default Re: Customer Comments on Invoice

    thank you : )

  4. #4
    Join Date
    May 2007
    Posts
    139
    Plugin Contributions
    0

    Default Re: Customer Comments on Invoice

    Update on your helpful suggestion, just in case someone's wondering, this is the first part of your code, but I added the <?php, ?> to it..

    <?php
    //--Add comments starts--
    $orders_history = $db->Execute("select orders_status_id, date_added, customer_notified, comments
    from " . TABLE_ORDERS_STATUS_HISTORY . "
    where orders_id = '" . zen_db_input($oID) . "'
    order by date_added limit 1");
    //--Add comments ends--
    ?>
    Haven't tried it out yet though, but looks helpful.

  5. #5
    Join Date
    Apr 2006
    Posts
    247
    Plugin Contributions
    0

    Default Re: Customer Comments on Invoice

    very helpfull for us because we ship off these.

  6. #6
    Join Date
    Jun 2007
    Posts
    119
    Plugin Contributions
    0

    Default Re: Customer Comments on Invoice

    This was one of the answers I came looking for. Thank you. Gonna go try it out.

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

    Default Re: Customer Comments on Invoice

    NOTE: this feature has been added as an option in the upcoming Zen Cart v1.3.8 ...
    Display Order Comments on Admin Invoice
    Do you want to display the Order Comments on the Admin Invoice?
    0= OFF
    1= First Comment by Customer only
    2= All Comment for the Order
    And of course for the Packing Slip 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!]
    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!

  8. #8
    Join Date
    Nov 2005
    Posts
    62
    Plugin Contributions
    0

    Default Re: Customer Comments on Invoice

    Quote Originally Posted by Ajeh View Post
    NOTE: this feature has been added as an option in the upcoming Zen Cart v1.3.8 ...


    And of course for the Packing Slip as well ...
    Awesome! Thank you! ^_^

  9. #9
    Join Date
    May 2006
    Posts
    84
    Plugin Contributions
    0

    Default Re: Customer Comments on Invoice

    Quick update on this one - remove the limit 1 from the SQL statement then add the following code to display all the customer comments on the packing slip - not just the first...

    Code:
    <?php
    	while (!$orders_history->EOF) {
    		echo(zen_date_long($orders_history->fields['date_added']) . ": " . $orders_history->fields['comments'] . "<br>"); 
    		$orders_history->MoveNext();
    	}
    
    ?>
    Hope this helps someone...

  10. #10
    Join Date
    Aug 2007
    Posts
    15
    Plugin Contributions
    0

    Default Re: Customer Comments on Invoice

    Another Thank You.
    I came looking for this answer -- and found it here

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Show ONLY customer comments on Invoice and Packing Slip
    By manutd98 in forum Managing Customers and Orders
    Replies: 10
    Last Post: 27 Oct 2009, 07:04 AM
  2. Can customer comments be printed on invoice?
    By psr racing in forum Managing Customers and Orders
    Replies: 3
    Last Post: 2 Jul 2008, 05:09 AM
  3. Customer comments can be included on packing slip and invoice
    By rayw1679 in forum Basic Configuration
    Replies: 1
    Last Post: 22 Apr 2008, 07:01 PM
  4. getting Comments on the invoice ?
    By snarkys in forum Basic Configuration
    Replies: 4
    Last Post: 25 Jul 2007, 03:59 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