Jump to content

Billing Address - no State


vickif

Recommended Posts

Getting close to figuring out all of this new(er) cubecart, hopefully one last question. On the billing it has an entry for County, but this needs to be State for U.S. I know I'll have to go into a php page, can somebody tell me where and what lines, and code to change. Image included. Thank you!

state.jpg

Link to comment
Share on other sites

Check to see if your admin default language is US English or UK English. Do you have the US English language files installed?

IF you do have US English as default, then you can make the wording change without having to fiddle with code. (You shouldn't have to, as the US wording is already State)

Goto Admin Settings>Languages>click on English (US)>Address - Phrases  from drop down. You can change wordings here and they will be databased. They will survive upgrades.

Link to comment
Share on other sites

OK, found the Extension via google, installed and went thru the Address drop down, but nothing has changed. Amend that, the drop down has the states but the field name still says County (not state).

Here is it, tcsmg.com/2017conference if you want to see it. http://tcsmg.com/2017conference/index.php?_a=checkout

Edited by vickif
Link to comment
Share on other sites

Did, restarted and everything, cleared language cache and 'general' cache, County still does not say State. I am also looking at this on tablet, mobile, etc. 

Also did this: 

  1. Now navigate to "Filemanager" >> "Email Templates" and click the "Import" tab.
  2. In the import fieldset select en-US then click "Save".

Still County, doesn't say State.

Link to comment
Share on other sites

I've seen this happen if you have an invalid / broken or missing language file for ANY installed module. Just one will break the entire system.

Can you list all of the modules you have installed? It might be one I am already aware of

Link to comment
Share on other sites

  • 1 month later...
On 4/1/2017 at 2:05 AM, Noodleman said:

I've seen this happen if you have an invalid / broken or missing language file for ANY installed module. Just one will break the entire system.

Can you list all of the modules you have installed? It might be one I am already aware of

Try Noodleman's suggestion.

Please list ALL your plugins.

Link to comment
Share on other sites

did you ever look into what I suggested? what modules do you have installed?

If you edit any installed language to change a language string, do you run into any issues (white screen etc).

 

Edited by Noodleman
Link to comment
Share on other sites

Tax Exempt customers may cause you the problem in newwer versions of CubeCart and could be the root cause of the issue.

Open & Edit the following file:

/modules/plugins/tax_exempt_customers/language/module.definitions.xml

replace the entire contents of the file with:

<?xml version="1.0" encoding="UTF-8"?>
<definitions version="1.0">
	<string name="module_title"><![CDATA[Tax Exempt Customers]]></string> 
</definitions>

The module doiesn't correctly make use of the language system (It will in the next version), however if you have an empty language file CubeCart seems to not like it and will break the entire language system.

If this doesn't fix the issue, the next task will be to check EVERY module you have installed (regardless of status) has a valid module.definitions.xml language file.

Link to comment
Share on other sites

  • 5 months later...

Hi Noodleman,

I tried what you have suggested but now i have the white screen you mentioned before, when trying to view the language file.

I get this error message when looking in the error log:

[Exception] /var/www/vhosts/MYWEBSITE.com/httpdocs/classes/language.class.php:246 - Call to a member function attributes() on null

I have turned off each plugin, one at a time to see if that helps but still no joy :-(

I am using CubeCart version 6.1.12

Any Other Suggestions?

Link to comment
Share on other sites

If this is what you used:

<?xml version="1.0" encoding="UTF-8"?>
<definitions version="1.0">
	<string name="module_title"><![CDATA[Tax Exempt Customers]]></string> 
</definitions>

then please use this version instead:

<?xml version="1.0" encoding="UTF-8"?>
<definitions version="1.0">
  <group name="tax_exempt_customers">
	<string name="module_title"><![CDATA[Tax Exempt Customers]]></string>
  </group>
</definitions>

I am just guessing about the group name.

The error references line 246:

if(!isset($content->group->string) && !isset($content->group[0]->attributes()->name)) {

Without the 'group' node, the first expression is true, so try the next expression.

However, since there is no 'group' node, that part of the object chaining resolves to 'null', and the attempt to use the attributes() method on a null object fails - fatally. PHP crashes and you get the white screen of death.

The revised code follows CubeCart's 'Language version 1.0' node hierarchy (schema).

Edited by bsmither
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...