Page 1 of 3 123 LastLast
Results 1 to 10 of 26
  1. #1
    Join Date
    Jul 2006
    Posts
    90
    Plugin Contributions
    0

    Default Hide admin order comments from customer

    Hi,

    I often use the order comments box to keep notes for my own personal use about a particular order.

    I recently found out from another thread that all these comments can be viewed by the customer if they view their order history

    If there any way these comments can be hidden unless the 'notify customer' field is ticked?

    Thanks

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

    Default Re: Hide admin order comments from customer

    This is not a feature of Zen Cart at this time, but you could build this into the comments and customize the catalog to not show these marked comments to the customer ...
    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!

  3. #3
    Join Date
    Jul 2006
    Posts
    90
    Plugin Contributions
    0

    Default Re: Hide admin order comments from customer

    Thanks for the quick reply Linda.

    Can you be a bit more specific how this can be achieved?

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

    Default Re: Hide admin order comments from customer

    You would need to edit the file:
    /includes/modules/pages/account_history_info/header_php.php

    And change the select statement to not include those that were not sent to the customer ...

    This select is grabbing all of the history ...
    PHP Code:
    $statuses_query "SELECT os.orders_status_name, osh.date_added, osh.comments
                       FROM   " 
    TABLE_ORDERS_STATUS " os, " TABLE_ORDERS_STATUS_HISTORY " osh
                       WHERE      osh.orders_id = :ordersID
                       AND        osh.orders_status_id = os.orders_status_id
                       AND        os.language_id = :languagesID
                       ORDER BY   osh.date_added"

    Last edited by Ajeh; 15 Jul 2007 at 04:26 AM. Reason: thanks for your kindest help
    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!

  5. #5
    Join Date
    Jul 2006
    Posts
    90
    Plugin Contributions
    0

    Default Re: Hide admin order comments from customer

    Thanks, i'll give that a try

  6. #6
    Join Date
    Feb 2005
    Location
    Keizer Oregon
    Posts
    21
    Plugin Contributions
    0

    Default Re: Hide admin order comments from customer

    Thanks Linda for providing the file and the PHP code that needed to be edited.

    $statuses_query = "SELECT os.orders_status_name, osh.date_added, osh.comments
    FROM " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh
    WHERE osh.orders_id = :ordersID
    AND osh.orders_status_id = os.orders_status_id
    AND os.language_id = :languagesID
    ORDER BY osh.date_added";


    Added (AND osh.customer_notified ='1' ) to the file above. And now if I do not tic the notifiy customer box it does not show in the customers account under "Status History & Comments".

    $statuses_query = "SELECT os.orders_status_name, osh.date_added, osh.comments
    FROM " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh
    WHERE osh.orders_id = :ordersID
    AND osh.customer_notified ='1'
    AND osh.orders_status_id = os.orders_status_id
    AND os.language_id = :languagesID
    ORDER BY osh.date_added";

  7. #7
    Join Date
    Feb 2005
    Location
    Keizer Oregon
    Posts
    21
    Plugin Contributions
    0

    Default Re: Hide admin order comments from customer

    Linda,

    Just sent you a pot of coffee.

    Thanks again

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

    Default Re: Hide admin order comments from customer

    Thanks very much for the support ... we really appreciate it ...

    That helps us so much and I am very glad that this could help you in adding this feature ...
    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!

  9. #9
    Join Date
    Jan 2007
    Location
    Illinois, USA
    Posts
    329
    Plugin Contributions
    0

    Default Re: Hide admin order comments from customer

    -edited- do you know how soon this might be a regular feature of ZC?
    NTO: building a better network thru collaboration
    www.needtoorder.com | www.coffeewitheinstein.com

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

    Default Re: Hide admin order comments from customer

    It is on the list of things to do ... but it is not a pressing feature ...

    You might be best having this customized for your site ... there are many ways to approach this and you can do a simple limitation of all but customer is seen by customer vs a more useful change where you can control what the customer sees and does not see ...

    If you get stuck, you can drop me a PM if need be ...
    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!

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. How can i hide my store order From Other admin..
    By jennydutch in forum Customization from the Admin
    Replies: 7
    Last Post: 18 Apr 2014, 11:07 AM
  2. Prefilled Comments (from pulldown) in admin order updates?
    By zekin in forum Managing Customers and Orders
    Replies: 0
    Last Post: 28 Sep 2011, 04:13 AM
  3. Hide web site from customer, but visible for admin
    By Semenek in forum General Questions
    Replies: 2
    Last Post: 26 Jan 2011, 09:25 PM
  4. Replies: 7
    Last Post: 1 Apr 2010, 11:01 PM
  5. Customer Comments section missing from my admin?
    By McGill in forum General Questions
    Replies: 2
    Last Post: 20 May 2008, 04:42 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