display company name in billing and shipping dropbox

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 7 ans
Hi,

I need to display Company name in the dropdown list (checkout billing and shipping)

Currently, it display, contact name and address, how can I add company name in these item.

Thanks in advance.

Emanuel
Il y a 7 ans
virtualeman wrote:
Hi,

I need to display Company name in the dropdown list (checkout billing and shipping)

Currently, it display, contact name and address, how can I add company name in these item.

Thanks in advance.

Emanuel


go to Admin/Configuration/Settings/Customer Settings/Address form fields and mark 'Company" Enabled.
Il y a 3 ans
Wondering if you found an answer to this question.  Enabling the Company does not add it to the billing or shipping dropdown lists, at least not in Nop 4.2.  Is there somewhere to edit which fields display in those lists?
Il y a 3 ans
wrentmorec wrote:
Wondering if you found an answer to this question.  Enabling the Company does not add it to the billing or shipping dropdown lists, at least not in Nop 4.2.  Is there somewhere to edit which fields display in those lists?

After enabling the Company, You have to add these lines on both
Views->Checkout->OpcBillingAddress.cshtml
and
Views->Checkout->OpcShippingAddress.cshtml

if (address.CompanyEnabled && !string.IsNullOrEmpty(address.Company))
{
       addressLine += ", " + address.Company;
}

Il y a 3 ans
Excellent, thanks for your help!
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.