Results 1 to 10 of 11

Hybrid View

  1. #1
    Join Date
    Dec 2008
    Posts
    166
    Plugin Contributions
    0

    Default 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?
    Attached Images Attached Images  

  2. #2
    Join Date
    Oct 2006
    Posts
    32
    Plugin Contributions
    0

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

  3. #3
    Join Date
    Dec 2008
    Posts
    166
    Plugin Contributions
    0

    Default 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?

  4. #4
    Join Date
    Dec 2008
    Posts
    166
    Plugin Contributions
    0

    Default 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?

  5. #5
    Join Date
    Dec 2008
    Posts
    166
    Plugin Contributions
    0

    Default 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

  6. #6
    Join Date
    Oct 2006
    Posts
    32
    Plugin Contributions
    0

    Default Re: Hide Empty Address Lines

    City should be required, an address without a city does not make sense at all.

  7. #7
    Join Date
    Dec 2008
    Posts
    166
    Plugin Contributions
    0

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

 

 

Similar Threads

  1. v151 Need More lines in address
    By Forum5 in forum General Questions
    Replies: 3
    Last Post: 10 Feb 2014, 07:37 PM
  2. Blank Lines in address since stripping out address requirements
    By jaredt112 in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 21 Apr 2010, 03:39 PM
  3. Reduce empty lines of between product listing
    By digulu in forum Templates, Stylesheets, Page Layout
    Replies: 11
    Last Post: 11 Jan 2010, 05:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg