Customer company name not showing up on Edit, Invoice or Packing Slip pages
I just updated my store to zen-cart-v1.5.6a and noticed that the customers company name shows up on the Orders page but not on the Edit, Invoice or Packing Slip pages.
I just created a brand new fresh install store with the sample information, placed a test order and got the same result. No Company name.
Re: Customer company name not showing up on Edit, Invoice or Packing Slip pages
I too have seen this occurring in 1/5/6a and have not been able to find the file/files related to this. Hope someone comes along that can explain how to fix this behavior since we usually copy and paste the customers shipping information from the invoice and do not know any other way to view the shipping address they suppy on the order.
Re: Customer company name not showing up on Edit, Invoice or Packing Slip pages
Looks like may have had some changes in the previous file that were not followed through completely. After following the bouncing ball, the issue appears to be in includes/functions/functions_customers.php in the zen_address_format function.
Lines 86 and 87 are affected, so from ZC 1.5.6/a change:
Code:
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif] if (ACCOUNT_COMPANY == 'true' && !empty($adress['company']) && false === strpos($fmt, '$company')) {
$address_out = $address['company'] . $address['cr'] . $address_out;
to:
Code:
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif] if (ACCOUNT_COMPANY == 'true' && !empty($address['$company']) && false === strpos($fmt, '$company')) {
$address_out = $address['$company'] . $address['$cr'] . $address_out;
Captured in pull request #2114: [FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]https://github.com/zencart/zencart/pull/2114/files[/FONT][/FONT]
[/FONT]
Re: Customer company name not showing up on Edit, Invoice or Packing Slip pages
Quote:
Originally Posted by
mc12345678
Looks like may have had some changes in the previous file that were not followed through completely. After following the bouncing ball, the issue appears to be in includes/functions/functions_customers.php in the zen_address_format function.
Lines 86 and 87 are affected, so from ZC 1.5.6/a change:
Code:
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif] if (ACCOUNT_COMPANY == 'true' && !empty($adress['company']) && false === strpos($fmt, '$company')) {
$address_out = $address['company'] . $address['cr'] . $address_out;
to:
Code:
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif] if (ACCOUNT_COMPANY == 'true' && !empty($address['$company']) && false === strpos($fmt, '$company')) {
$address_out = $address['$company'] . $address['$cr'] . $address_out;
Captured in pull request #2114: [FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]https://github.com/zencart/zencart/pull/2114/files[/FONT][/FONT]
[/FONT]
Thank you. Invoices and packing lists now contain the company name as expected :)
Re: Customer company name not showing up on Edit, Invoice or Packing Slip pages
Quote:
Originally Posted by
gtgeorge
Thank you. Invoices and packing lists now contain the company name as expected :)
Welcome. Glad that you joined in on identifying it as an issue as a second individual. With as much as ZC offers and does, the eagle eye of the community is what helps get things addressed.
Re: Customer company name not showing up on Edit, Invoice or Packing Slip pages
Thank you mc12345678! Works great now.
Re: Customer company name not showing up on Edit, Invoice or Packing Slip pages
Quote:
Originally Posted by
mc12345678
Looks like may have had some changes in the previous file that were not followed through completely. After following the bouncing ball, the issue appears to be in includes/functions/functions_customers.php in the zen_address_format function.
Great work, thanks mc12345678!
Re: Customer company name not showing up on Edit, Invoice or Packing Slip pages
Quote:
Originally Posted by
millsii
Great work, thanks mc12345678!
Good Job Guys!!
I spent half a day trying to track this down and finally gave up and searched the forum and found this .
Works Now.
Thanks for your time and help!!!!!!!!