Very first post, running zen cart 1.5. Installed the module and it seems to work, I can see the value in the data base using phpmyadmin. It is shown as customers_extrafield and varchar (32). It is a 15 character field in format NNN.NNN.NNN.NNN. so everything seems to have worked. Which is great.
My backoffice vendor has supplied a .php file that creates an orderpacket that is sent to me to process the order. There is a field I can use in this packet UDF01 to send this value to my backend system but I can't seem to get the value to the packet. Here is what the code looks like,
$sessID = zen_session_id();
//Begin Packet -----------------------------------------------------------------------------
$in = "1007|WID=" . $sessID .
"|LID=" . substr($order->customer['email_address'], 0, 80) .
...snip...
"|OID=" . $oID .
"|CN=" . substr($order->billing['company'], 0, 40) .
"|FN=" . substr($order->billing['firstname'], 0, 40) .
"|LN=" . substr($order->billing['lastname'], 0, 40) .
"|BA1=" . substr($order->billing['street_address'], 0, 40) .
"|BA2=" . substr($order->billing['suburb'], 0, 40) .
...snip....
"|EM=" . substr($order->customer['email_address'], 0, 80) .
So I added this code, since it was in the same customer table as the email address I thought I would copy the email mapping ....
"|UDF01=" . substr($order->customer['extrafield'], 0, 25) .
The packet shows the UDF01 but it is blank so my code must not be quite right in getting the value mapped.
I am pretty technical but not a PHP programmer or a sql data base expert. Any help would be greatly appreciated.