Jump to content

Company Name Not Saving


garywhitling

Recommended Posts

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.

:on2long: I will post a bug report on the bug tracker about this as its a pretty glaring bug

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...