Jump to content

[SOLVED] Company = UNDEFINED


Recommended Posts

In the customer address there is the "company" field.

As I'm dealing with mostly end users it will be left empty by customers.

 

The default value if left empty is then UNDEFINED.

 

I want to change that by a blank space. I thought I would find it under themes/default/lang/eng.php but not, where would that be then?

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

Hi,

 

No both sites are down, claybourg.com will be on again over the weekend with the new Prestashop site.

 

I am puzzled about this address. It is my test account and it appears as such when logged in as a customer under "My Address"

 

First Name Last Name

UNDEFINED

Street Address 1

City, State

 

However, I could not reproduce it when I just created a new test account and my other third test account does not show that either. It could be I entered it myself under company and don't remember it.

Link to comment
Share on other sites

  • 4 weeks later...
  • 2 months later...
  • 5 months later...

It is VERY unlikely since we have this situation with about 20 to 30% of orders with company addresses. And since we are doing our business only with german speaking customers where undefined is not a used word. For us it seems more indicating a javascript problem (variable not set = undefined). But we do not know where to stick deeper.

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

Solution: find a b2b option somewhere and enable it OR fix code in order-opc-new-account.tpl

 

old line 187 / 305:

from {if $field_name eq "company" &&  $b2b_enable}

 

new line 187 / 305:

to {if $field_name eq "company"}

 

at TWO places near the lines 187 (delivery address) and 305 (invoide address)

  • 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...