This is a discussion on Order Comments within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; For some reason, order comments don't pass from checkout_shipping.php to checkout_payment.php. Do the following fixes to checkout_payment.php: Around line 100, ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| For some reason, order comments don't pass from checkout_shipping.php to checkout_payment.php. Do the following fixes to checkout_payment.php: Around line 100, find this: if (!tep_session_is_registered('comments')) tep_session_register('comments'); And add this: if (isset($HTTP_POST_VARS['comments']) && tep_not_null($HTTP_POST_VARS['comments'])) { $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']); } So it looks like this: if (!tep_session_is_registered('comments')) tep_session_register('comments'); if (isset($HTTP_POST_VARS['comments']) && tep_not_null($HTTP_POST_VARS['comments'])) { $comments = tep_db_prepare_input($HTTP_POST_VARS['comments']); } Around line 365, find this: And change it to: So that code block looks like this: More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Preset Order Comments Contribution MS2 v. 0.1 | michael_s | New osCommerce Contributions | 0 | 10-16-2007 04:14 PM |
| Comments not seen by customer | met00 | osCMax v2 Features Discussion | 0 | 07-23-2007 03:10 AM |
| comments box | joanstead | osCMax v2 Installation issues | 0 | 03-25-2006 06:12 PM |
| customer comments in order and extra order email | karen_l | osCommerce 2.2 Modification Help | 0 | 01-03-2003 11:51 AM |