Forums / Bug Reports / [Not a bug] Blank 'State' showing blank line in customer details

[Not a bug] Blank 'State' showing blank line in customer details

Locked

Views: 1,543

Results 1 to 9 of 9
This thread is locked. New replies are disabled.
20 May 2011, 4:41 PM
#1
kcorbishley avatar

kcorbishley

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

[Not a bug] Blank 'State' showing blank line in customer details

I am not sure if this is a bug as may be only be happening to me, but if not them hopefully someone can help and this issue can be fixed in future version of ZenCart.

I am using Zen Cart v1.3.9h and I have set Configuration->Customer Details->State to False and this has worked fine forms as the 'State/Province' field is completely removed in the registration form or the edit address forms when logged in.

The problem is whenever a page displays the stored details on a page a line gap is left in the place where state should have been, eg:
Stored Street,
Stored City

Stored Post Code
Stored Country

As you can see a gap is left between city and postcode where the state should be.This happens on pages such as the address book or during checkout when it displays the stored shipping address or displays the billing address.

At first I thought this could be due to the stores template, however this also happens on invoices when displaying shipping or billing adreesses, this is obviously in the admin area so can't see how a theme could be affecting this.

I hope someone can help with this, and hopefully it's resolved in future versions where maybe the line can be completely removed without leaving a gap like the field is in the forms when the State is set to false in the admin area.

Regards,
KCorbishley

20 May 2011, 5:41 PM
#2
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Not a bug] Blank 'State' showing blank line in customer details

Um, which country is this in regards to?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 May 2011, 5:46 PM
#3
kcorbishley avatar

kcorbishley

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Re: [Not a bug] Blank 'State' showing blank line in customer details

It is regarding the United Kingdom, I have removed all other countries.
As I said, I'm not sure if this is a bug, but it seems like one with a gap being displayed when the stored addresses are displayed.

Regards,
KCorbishley

20 May 2011, 5:54 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Not a bug] Blank 'State' showing blank line in customer details

Which Address Format have you specified for your UK country entry?
I believe the default is 6

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 May 2011, 7:54 PM
#5
kcorbishley avatar

kcorbishley

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Re: [Not a bug] Blank 'State' showing blank line in customer details

Hi, yes, it's 6

20 May 2011, 8:04 PM
#6
kcorbishley avatar

kcorbishley

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Re: [Not a bug] Blank 'State' showing blank line in customer details

Ok, got it sorted now, removed '$state$cr' from the value for format 6 in the database.

20 May 2011, 8:05 PM
#7
kcorbishley avatar

kcorbishley

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Re: [Not a bug] Blank 'State' showing blank line in customer details

Forgot to say, thanks for your help, much appreciated.

20 May 2011, 8:26 PM
#8
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: [Not a bug] Blank 'State' showing blank line in customer details

kcorbishley:

Ok, got it sorted now, removed '$state$cr' from the value for format 6 in the database.
For others who will read this thread later, it is NOT recommended to be altering existing address_format records directly, since they are official standards embraced globally. In cases where you wish to override the official standard for a certain country, creating a NEW address_format record for your unique needs is the better approach.
In the case of kcorbishley, since all other country records have been deleted this may be less of an issue, despite being not the recommended approach.
kcorbishley:

Forgot to say, thanks for your help, much appreciated.You're welcome.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

20 May 2011, 8:34 PM
#9
kcorbishley avatar

kcorbishley

New Zenner

Join Date:
Mar 2011
Posts:
28
Plugin Contributions:
0

Re: [Not a bug] Blank 'State' showing blank line in customer details

Thanks for pointing that out. I'd like to say I wouldn't recommend it either, It's a quick fix from my side.
I just hope this is something that could be looked into with future version of Zen tho, that when state is set to false it also removes state when it displays records, not just in forms.
I must say Zen Cart is amazing tho, and I thank everyone who works on it.