osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...



Find us on Facebook
Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Connect with Facebook Register FAQDonate Members List Calendar Mark Forums Read


Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-02-2005, 08:37 AM
New Member
 
Join Date: Aug 2005
Posts: 24
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
kwiznoz
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 09-03-2005, 10:51 AM
jpf's Avatar
jpf jpf is offline
Moderator

 
Join Date: Sep 2003
Location: Manitoba, Canada
Posts: 2,681
Thanks: 12
Thanked 214 Times in 196 Posts
Rep Power: 20
jpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud ofjpf has much to be proud of
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 09-08-2005, 03:22 PM
New Member
 
Join Date: Aug 2005
Posts: 24
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
kwiznoz
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

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


All times are GMT -8. The time now is 08:10 PM.


Powered by vBulletin®
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2009 osCMax
Inactive Reminders By Icora Web Design