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





LinkBack URL
About LinkBacks






Bookmarks