Results 1 to 10 of 17

Hybrid View

  1. #1
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Moving "country" field breaks state field

    Quote Originally Posted by DivaVocals View Post
    Yeah this is apparently the fix... Explains why it works on the live site.. can't figure out WHY it's not working on the dev site..
    Okay.. so in doing some more testing/messing about, I found that a bit of javascript I put in place as a bandaid solution for an unrelated issue was the problem.. Once I removed it, all was well again.. Thanks to Stevesh for the "nudge"..

    Now I have to figure out where that annoying closing PHP tag is coming from on this page.. It's on the live site too..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  2. #2
    Join Date
    Jan 2007
    Location
    Australia
    Posts
    6,167
    Plugin Contributions
    7

    Default Re: Moving "country" field breaks state field

    Quote Originally Posted by DivaVocals View Post
    Now I have to figure out where that annoying closing PHP tag is coming from on this page.. It's on the live site too..
    Where are you seeing this?

    Cheers
    RodG

  3. #3
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Moving "country" field breaks state field

    Quote Originally Posted by RodG View Post
    Where are you seeing this?

    Cheers
    RodG
    See what happens when you go to sleep?? You miss all the fun!!! Found and killed the closing PHP tag.. turns out this came from the password confirmation module.. One of the included JS files had this stray ?> at the end of the file..

    Got my issues all worked out.. Once I got rid of the stray PHP closing tag, removed a bit of javascript I was using to solve an unrelated issue, and added the CSS bits stevesh pointed out, all was right with the create account page..

    Though you missed most of the action, thanks for jumping in here to help!!! Your willingness to help is appreciated! I can always count on the Zen Cart community when I need a "second set of eyes"..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  4. #4
    Join Date
    Sep 2008
    Location
    DownUnder, overlooking South Pole.
    Posts
    984
    Plugin Contributions
    6

    Default Re: Moving "country" field breaks state field

    Quote Originally Posted by DivaVocals View Post
    Found and killed the closing PHP tag.. turns out this came from the password confirmation module.. One of the included JS files had this stray ?> at the end of the file..
    Was that stray php tag an inherent bug or just wayward editing?

  5. #5
    Join Date
    Aug 2007
    Location
    Gijón, Asturias, Spain
    Posts
    2,836
    Plugin Contributions
    31

    Default Re: Moving "country" field breaks state field

    The country on the account create IMHO should appear before the state dropdown selector since the states change based on the country selected. It makes no sense when using the state dropdown that country appears AFTER the state.. So I want to move it so that country is selected BEFORE choosing a state and improve the usability/logic of this form.
    Absolutely, I implemented this a very long time ago and also remember struggling to get it to work.
    Since then I've also used the js to put country-dependent error-checking and info messages on the postcode field since sometimes customers don't seem to know their own countries correct format!
    Sorry I didn't see this thread until you had fixed it!
    Steve
    github.com/torvista: BackupMySQL, Structured Data, Multiple Copy-Move-Delete, Google reCaptcha, Image Checker, Spanish Language Pack and more...

  6. #6
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Moving "country" field breaks state field

    Quote Originally Posted by torvista View Post
    Absolutely, I implemented this a very long time ago and also remember struggling to get it to work.
    Since then I've also used the js to put country-dependent error-checking and info messages on the postcode field since sometimes customers don't seem to know their own countries correct format!
    Sorry I didn't see this thread until you had fixed it!
    No worries.. Next time I'll come to you direct..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

  7. #7
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Moving "country" field breaks state field

    Quote Originally Posted by dw08gm View Post
    Was that stray php tag an inherent bug or just wayward editing?
    It was an erroneous closing PHP tag included in the email confirmation module..
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 

Similar Threads

  1. How do I make "State" NOT a Required Field?
    By spanweb in forum General Questions
    Replies: 2
    Last Post: 5 May 2010, 03:33 PM
  2. increasing the field size of the "products_models" field in the "products" table
    By bod in forum Setting Up Categories, Products, Attributes
    Replies: 8
    Last Post: 5 Feb 2010, 06:29 AM
  3. "(7) 7 - Field format error: 10731-The field Shipping Address Country is required
    By GTrotter in forum PayPal Express Checkout support
    Replies: 73
    Last Post: 1 Sep 2009, 03:15 AM
  4. I need to make the "company" field a required field
    By semaxd in forum Managing Customers and Orders
    Replies: 2
    Last Post: 30 Jun 2008, 09:09 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