claybourg Posted November 15, 2013 Share Posted November 15, 2013 (edited) 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 December 12, 2013 by claybourg (see edit history) Link to comment Share on other sites More sharing options...
El Patron Posted November 15, 2013 Share Posted November 15, 2013 I tried looking at the two urls in your signature, neither work. can you post url of shop you are asking about? Link to comment Share on other sites More sharing options...
claybourg Posted November 16, 2013 Author Share Posted November 16, 2013 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 More sharing options...
bellini13 Posted November 16, 2013 Share Posted November 16, 2013 look at your database table structure using phpmyadmin. it sounds like default value is being set to the literal string UNDEFINED. if it is, then change it to null Link to comment Share on other sites More sharing options...
mark-b Posted December 12, 2013 Share Posted December 12, 2013 look at your database table structure using phpmyadmin. it sounds like default value is being set to the literal string UNDEFINED. if it is, then change it to null Does somebody know which table to look for? Link to comment Share on other sites More sharing options...
mark-b Posted December 12, 2013 Share Posted December 12, 2013 I see that the "undefined" is located in ps_address, I get them also random by company name. It must be in the theme somewhere... somebody found it yet? Link to comment Share on other sites More sharing options...
claybourg Posted December 12, 2013 Author Share Posted December 12, 2013 I was actually not able to reproduce the error, now on my live site I do not have the problem, not sure what it was but thanks anyway. Link to comment Share on other sites More sharing options...
mark-b Posted December 12, 2013 Share Posted December 12, 2013 I think it is an theme problem with prestashop 1.5.6.1, company name is mentioned in theme 1.5.4.1(but not required) and if not mentioned in default theme 1.5.6.1 if company name of not enabled or required... Link to comment Share on other sites More sharing options...
Sickboards Posted February 27, 2014 Share Posted February 27, 2014 Hi, I have the same problem, rather annoying, as it seems to be solved, can some one please tell me how to solve this? Link to comment Share on other sites More sharing options...
Scully Posted August 12, 2014 Share Posted August 12, 2014 Same here, company name sometimes shows up as undefined. An it's not a default value coming from the database. Has anyone an idea? Link to comment Share on other sites More sharing options...
bellini13 Posted August 12, 2014 Share Posted August 12, 2014 and its not the end user/customer entering it? Link to comment Share on other sites More sharing options...
Scully Posted August 12, 2014 Share Posted August 12, 2014 (edited) 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 August 12, 2014 by Scully (see edit history) Link to comment Share on other sites More sharing options...
Scully Posted August 12, 2014 Share Posted August 12, 2014 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) 1 Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now