osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Purchase Order Payment Module v1.0 not saving po number in comments

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



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 08-30-2008, 06:46 PM
Active Member
 
Join Date: Aug 2004
Posts: 117
Thanks: 4
Thanked 1 Time in 1 Post
Rep Power: 0
basnyd is an unknown quantity at this point
Default Purchase Order Payment Module v1.0 not saving po number in comments

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


All times are GMT -8. The time now is 12:05 AM.


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