This is a discussion on Purchase Order Payment Module v1.0 not saving po number in comments within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi I've installed Purchase Order Payment Module v1.0 in my oscmax 2.0 site. For some reason the PO Company number ...
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi I've installed Purchase Order Payment Module v1.0 in my oscmax 2.0 site. For some reason the PO Company number and PO Company name are not being saved in the comment field. Can someone see why? function before_process() { global $order; $order->info['comments'] .= 'Before vals'; $order->info['comments'] .= ' ' . MODULE_PAYMENT_PO_TEXT_PO_COMPANY . ' ' . $_POST['po_owner'] . ' '; $order->info['comments'] .= MODULE_PAYMENT_PO_TEXT_PO_NUMBER . ' ' . $_POST['po_number'] . ' '; $order->info['comments'] .= 'After vals '; $order->info['comments'] .= $_GET['po_owner'] . ' '. $_GET['po_number']; if (isset($HTTP_POST_VARS['po_hardcopy'])) { $order->info['comments'] .= MODULE_PAYMENT_PO_TEXT_HARDCOPY . ' ' . $HTTP_POST_VARS['po_hardcopy']; } } The comment field of the order looks like this: Original Comment...Before vals PO Company Name: PO Number: After vals The PO Company name and PO number are entered on the checkout_confirmation page via this code. $confirmation = array('fields' => array(array('title' => MODULE_PAYMENT_PO_TEXT_PO_COMPANY, 'field' => tep_draw_input_field('po_owner', $order->billing['company'])), array('title' => MODULE_PAYMENT_PO_TEXT_PO_NUMBER, 'field' => tep_draw_input_field('po_number')))); Any help is greatly appreciated. Thanks, Barb |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Add Order Number to Customer Order Emails v 1.0 | michael_s | New osCommerce Contributions | 0 | 03-23-2008 12:22 PM |
| Add Order Number to Customer Order Emails v 1.0 | michael_s | New osCommerce Contributions | 0 | 02-19-2008 09:11 AM |
| Purchase Order Payment Module v1.0 | michael_s | New osCommerce Contributions | 0 | 01-31-2008 06:22 AM |
| Purchase Order Payment Module v1.0 | michael_s | New osCommerce Contributions | 0 | 01-30-2008 01:11 PM |
| customer comments in order and extra order email | karen_l | osCommerce 2.2 Modification Help | 0 | 01-03-2003 10:51 AM |