osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Customer Notes (Anmerkungen zu Kunden)

This is a discussion on Customer Notes (Anmerkungen zu Kunden) within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; If you also want to show the customers comments in the customer info-box on the right side of the ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > New osCommerce Contributions

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Reply

 

LinkBack Thread Tools
  #1  
Old 01-20-2008, 09:05 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,170
Thanks: 66
Thanked 290 Times in 276 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Post Customer Notes (Anmerkungen zu Kunden)

If you also want to show the customers comments in the customer info-box on the right side of the page in Admin/Customers and Admin/Orders, you have to do the following:

Open catalog/admin/customers.php

On line 794 find:
$contents[] = array('text' => '
' . TEXT_INFO_NUMBER_OF_REVIEWS . ' ' . $cInfo->number_of_reviews);

add below:
$ias_notes["result"] = tep_db_query("SELECT * FROM customers_notes WHERE customers_id = ". $cInfo->customers_id);
if(!tep_db_num_rows($ias_notes["result"])) {
} else {
while($ias_notes["row"] = tep_db_fetch_array($ias_notes["result"])){
$contents[] = array('text' => '');
$contents[] = array('text' => 'Customer Comments:

' . $ias_notes["row"]["customers_notes_message"]);
}
}


Open catalog/admin/orders.php

On line 415 find:
$contents[] = array('text' => '
' . TEXT_INFO_PAYMENT_METHOD . ' ' . $oInfo->payment_method);

add below:
$ias_notes["result"] = tep_db_query("SELECT * FROM customers_notes WHERE customers_id = ". $oInfo->customers_id);
if(!tep_db_num_rows($ias_notes["result"])) {
} else {
while($ias_notes["row"] = tep_db_fetch_array($ias_notes["result"])){
$contents[] = array('text' => '');
$contents[] = array('text' => 'Customer Comments:

' . $ias_notes["row"]["customers_notes_message"]);
}
}

Thats it! Now, customers comments will be displayed in the customer info-box on the right side of the page in Admin/Customers and Admin/Orders, so that you no longer have to open the Customer Edit screen to read the notes. When you highlight a customer/order in your Customers/Orders List, if they have any customers comments saved, those notes will be displayed. If there are no saved notes, then nothing will be displayed.

All credit goes to the author of the contribution.

This is a full package, contains all files from v2.1 plus text file with the installation above.

More...
__________________
Michael Sasek
osCMax Developer


osCMax Templates - Hundreds of premium quality templates. New designs every month!

xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience


osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



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
Customer Notes (Anmerkungen zu Kunden) michael_s New osCommerce Contributions 0 01-06-2008 10:00 AM
Customer Notes (Anmerkungen zu Kunden) michael_s New osCommerce Contributions 0 01-04-2008 06:00 PM
Admin Notes michael_s New osCommerce Contributions 0 12-18-2007 10:11 AM
Customer Notes (Anmerkungen zu Kunden) michael_s New osCommerce Contributions 0 04-26-2007 12:30 AM
Admin Notes michael_s New osCommerce Contributions 0 02-27-2007 01:51 PM


All times are GMT -8. The time now is 12:20 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
Copyright 2008 osCMax