garywhitling Posted September 26, 2007 Share Posted September 26, 2007 Hi, I am using version 4.0.1 I have noticed that the Company Name is not saving in these areas: Customers Details Area, Billing and Shipping Details Print Packing Slip: Address is listed twice instead of Company Name Anyone else having this problem? Quote Link to comment Share on other sites More sharing options...
kinetic Posted September 27, 2007 Share Posted September 27, 2007 to fix print packing slip open admin/sources/orders/print.inc.php FIND: if (!empty($result[0]['companyName'])) echo $result[0]['add_1_d'].'<br/>'; REPLACE WITH: if (!empty($result[0]['companyName'])) echo $result[0]['companyName'].'<br/>'; as for the company name or company delivery name not being shown or saved in the order details the code for orderBuilder.inc.php looks correct so Im going to assume that at some point during the order checkout process the information that is in the companyName field from registration in the customers table is not being passed to the order_sum table in the database. I will post a bug report on the bug tracker about this as its a pretty glaring bug Quote Link to comment Share on other sites More sharing options...
kinetic Posted September 27, 2007 Share Posted September 27, 2007 OK open includes/content/gateway.inc.php FIND: $orderSum['name'] = $cc_session->ccUserData['title']." ".$cc_session->ccUserData['firstName']." ".$cc_session->ccUserData['lastName']; ADD AFTER: $orderSum['companyName'] = $cc_session->ccUserData['companyName']; NEXT FIND: $orderSum['name_d'] = $basket['delInf']['title']." ".$basket['delInf']['firstName']." ".$basket['delInf']['lastName']; ADD AFTER: $orderSum['companyName_d'] = $cc_session->ccUserData['companyName']; this will pass the companyName data into the order invoice and the order_sum table Quote Link to comment Share on other sites More sharing options...
garywhitling Posted September 27, 2007 Author Share Posted September 27, 2007 Hi Kinetic, Both worked a treat! Great Stuff I was thinking of placing the Company Name above the address to match the print order form so it is laid out like this if possible in the packing slip. Name Company Name Address Once again Thank You Gary Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.