Hi guys,

there is probably a basic php solution for this but it's a little over my head atm (though I am trying to learn).

In my payment module there is a section where I can specify a reference number for the order. This is the default setting:

payment_reference => zen_create_random_value(16, 'digits');

We don't need a 16 digit random number. Something more specific will be more useful to us. I have tried the following and they both work:

function before_process() {
global $_POST, $response, $db, $order, $orders;

$order->info['cc_number'] = $_POST['cc_number'];
$order->info['cc_owner'] = $_POST['cc_owner'];


payment_reference => = $_POST['cc_owner'];
//(to put the credit card owner'
s name in the reference section)

payment_reference => = $_POST['cc_number'],
//(to put the credit card number in the reference section *just for a test, I wouldn't save this info*)



On the product page we have a required attribute that is automatically generated (an 8 digit internal reference number).

The text field with this number as the following id's:
The products_attributes_id is 304.
The options_id is 28.

The question is: How do we get the text value inputted for this attribute to show up here?

I would like to do something like this:

$order->info['attribute_28'] = $_POST['attribute_28'];

payment_reference => = $_POST['attribute_28'];


obviously it doesn't work as it is now. what do i need to do to allow it?

even pointing me towards another forum post in the right direction would be a great help.

thanks in advance,


Regards,
Shaztesting

P.S The module is directone: http://www.zen-cart.com/archived_con.../directone.zip