osCmax v2.5 User Manual
Results 1 to 3 of 3

Hide unnotified comments

This is a discussion on Hide unnotified comments within the osCmax v2 Customization/Mods forums, part of the osCmax v2.0 Forums category; Is there a way in oscmax 2 to hide the comments using this mod? http://www.oscommerce.com/community/...l/search,notes I tried to install it ...

      
  1. #1
    New Member
    Join Date
    Aug 2005
    Posts
    24
    Rep Power
    0


    Default Hide unnotified comments

    Is there a way in oscmax 2 to hide the comments using this mod?

    http://www.oscommerce.com/community/...l/search,notes

    I tried to install it but it seems that the query it is calling is not in account_history_info.php...?

    We just want to blind all comments that were not selected as "notify customer" to customer's viewing.
    Jay

    If you don\'t make mistakes, you\'re not working on hard enough problems. And that\'s a big mistake. ~F. Wikzek

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default RE: Hide unnotified comments

    Note: OSCMAX has BTS installed which MOVES alot of code to a template system.

    If you did a search for "$statuses_query" (part of the string to be replaced) you would have fond this file:

    account_history_info.tpl.php

    and look about on line 153 you would have found the line to be modified
    Replace:
    Code:
      $statuses_query = tep_db_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 = '" . (int)$HTTP_GET_VARS['order_id'] . "' and osh.orders_status_id = os.orders_status_id and os.language_id = '" . (int)$languages_id . "' order by osh.date_added");
    with:
    Code:
      $statuses_query = tep_db_query("select os.orders_status_name, osh.date_added, osh.comments from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh where osh.customer_notified = '1' and osh.orders_id = '" . (int)$HTTP_GET_VARS['order_id'] . "' and osh.orders_status_id = os.orders_status_id and os.language_id = '" . (int)$languages_id . "' order by osh.date_added");
    Should work just fine.
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    New Member
    Join Date
    Aug 2005
    Posts
    24
    Rep Power
    0


    Default Thank you for that!

    I was able to fix it, thank you! One would think this would be a regular part of oscommerce or oscmax, if you do not select the box to Notify customer of any notes inputed, by default, it should not make the notes available to the customer online for reading...

    That should be added to the next release IMO! Thanks again!
    Jay

    If you don\'t make mistakes, you\'re not working on hard enough problems. And that\'s a big mistake. ~F. Wikzek

Similar Threads

  1. Hide/Suppress Specials and New Products
    By kenlyle in forum osCmax v2 Customization/Mods
    Replies: 1
    Last Post: 04-20-2006, 09:57 AM
  2. Hide ' Specials for January ' on mainpage
    By mrwang in forum osCmax v1.7 Discussion
    Replies: 9
    Last Post: 04-11-2005, 01:46 PM
  3. Can I hide / disable categories in OSCMAX?
    By midwestwebsites in forum osCmax v1.7 Discussion
    Replies: 2
    Last Post: 03-28-2005, 12:31 PM
  4. show/hide product attributes
    By limpduck in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 03-02-2005, 10:36 PM
  5. How to hide the number of stock available?
    By lawrence in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 11-15-2004, 12:42 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
  •