Forums / Managing Customers and Orders / Hide Empty Address Lines

Hide Empty Address Lines

Locked
Results 1 to 11 of 11
This thread is locked. New replies are disabled.
04 May 2009, 17:41
#1
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Hide Empty Address Lines

Hi,

When someone adds an address all the empty lines are removed. Except one line automatically gets a comma put in. How do I remove that?
05 May 2009, 17:56
#2
fxchain avatar

fxchain

New Zenner

Join Date:
Oct 2006
Posts:
29
Plugin Contributions:
0

Re: Hide Empty Address Lines

That is not out of the box from Zencart. You probably did something to it for that to happen.

I would look at the DB for addresses. Is the comma in there? If so, look at the files that processed the address input. If not, the comma might just be in the HTML of the template files, by mistake.
05 May 2009, 18:46
#3
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Re: Hide Empty Address Lines

thanks for that.

The comma is not in the database. But it happens no matter what template I use.

What files should I be looking at?
06 May 2009, 14:18
#4
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Re: Hide Empty Address Lines

Hey. Got it sorted. For anyone who is interested:

Open you database, then open address_format and edit the address format to remove the comma after city. Still leaves the blank line appearing. So if anyone has ideas?
06 May 2009, 17:42
#5
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Re: Hide Empty Address Lines

Ok,

Been working on this for the last 5 hours and to be honest getting a bit fed up :)

I'm 99% sure the edit needs to be done in functions_customers.

and it needs to be something like if city = '' ignore or else display.

I am unsure how to do this and would appreciate any advice or help!

Thanks
07 May 2009, 21:33
#6
fxchain avatar

fxchain

New Zenner

Join Date:
Oct 2006
Posts:
29
Plugin Contributions:
0

Re: Hide Empty Address Lines

City should be required, an address without a city does not make sense at all.
08 May 2009, 17:05
#7
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Re: Hide Empty Address Lines

well in ireland address are very short. two lines can be enough.

One thing that drives me bananas is signing up to a website when I need to add fake lines to my address.

For example my address is XX Lower Dorset St, Dublin 1. I once had to do: XX Lower Dorset St, Dublin 1, Dublin, DUB, CO Dublin!!!!!!!!!!
08 May 2009, 17:33
#8
steven300 avatar

steven300

Totally Zenned

Join Date:
Jan 2008
Posts:
1,564
Plugin Contributions:
0

Re: Hide Empty Address Lines

Best Price Accessori:

For example my address is XX Lower Dorset St, Dublin 1. I once had to do: XX Lower Dorset St, Dublin 1, Dublin, DUB, CO Dublin!!!!!!!!!!


ha, I bet the postman had a good laugh :smile:
10 May 2009, 19:30
#9
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Re: Hide Empty Address Lines

Hi,

Can anyone help me? Its one of the last things wrong with my cart before I can go live.

Daniel
10 May 2009, 21:10
#10
s_t_e_v_e avatar

s_t_e_v_e

Zen Follower

Join Date:
Aug 2006
Posts:
430
Plugin Contributions:
0

Re: Hide Empty Address Lines

Just had a look to see how the address format is created in functions_customers.php...

what about creating a new address format just for Ireland?

other than that, like you said, the function will have to be rewritten...
13 May 2009, 15:45
#11
best_price_accessori avatar

best_price_accessori

Zen Follower

Join Date:
Dec 2008
Posts:
155
Plugin Contributions:
0

Re: Hide Empty Address Lines

Im still having this issue.

Its the last thing thats keeping my new site to be launched. Please anyone who can help, I would be forever grateful.

I would like all country to get the same address form. Nothing fancy such as state dropdown. it irriatates me when sites force you to fill out an address in a specific way even if it is wrong.