Jump to content

[v1.6.1.5] [SOLVED] Add company name column in BO Order tab


Nandos

Recommended Posts

Hi guys o/

Since we have to deal with a lot of companies, we don't always know the name of their employee, so we'd like to see their companies' names into the order tab in order to rapidly check and, when we want, to search for them there. In this case, I'm wondering how i can add to the BO order tab a column to show the company name associated to the user that made that order. 

Anyone can help me do that? I would really appreciate that, thanks in advance guys.

Edited by Nandos (see edit history)
Link to comment
Share on other sites

I just checked the code and it seems PrestaShop already adds a "Company" field to the orders tab if you set "Enable B2B mode" to "Yes" on the Preferences > Customers tab. Are you able to enable that setting? If not, you'll need to create an override to display that field even if the option is disabled.

  • Like 1
Link to comment
Share on other sites

I just checked the code and it seems PrestaShop already adds a "Company" field to the orders tab if you set "Enable B2B mode" to "Yes" on the Preferences > Customers tab. Are you able to enable that setting? If not, you'll need to create an override to display that field even if the option is disabled.

 

Yes, it worked, thanks!

Anyway, since PS as default enables APE and SIRET codes in the registration page with this change, but i'm in Italy, I put under comment those fields from the file "authentication.tpl" in order to not show them on the page, so now a new company can also write its name and the website. I also added a line to specify to normal user to avoid those fields to register the account.

I mark as solved, if any problem, i'll contact you again rocky  ;)

Edited by Nandos (see edit history)
  • Like 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...