Results 1 to 6 of 6
  1. #1
    Join Date
    Dec 2012
    Posts
    66
    Plugin Contributions
    0

    Default Adjust Width, Country Select Field, Create Account Template

    Regarding this select box,

    how might I adjust the width? The widths of most other fields in this template are determined by the database settings, but I can't find the width setting for the country select field. I thought that it might be specified in the relevant zen_get or zen_draw function, but I can't find it there.

    Thanks,

    Ken Baker

  2. #2
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,732
    Plugin Contributions
    27

    Default Re: Adjust Width, Country Select Field, Create Account Template

    Have a look at includes/templates/YOUR_TEMPLATE/templates/tpl_modules_create_account.php :)
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,976
    Plugin Contributions
    96

    Default Re: Adjust Width, Country Select Field, Create Account Template

    The width of the country-select field is, for the most part, controlled by the country with the longest name. If you've not disabled any of the standard Zen Cart countries, that would be "South Georgia and the South Sandwich Islands" (quite the mouthful!).

  4. #4
    Join Date
    Dec 2012
    Posts
    66
    Plugin Contributions
    0

    Default Re: Adjust Width, Country Select Field, Create Account Template

    lat9,

    Thanks for responding. As a result of your response, I discovered where to find the country list (in a mySQL table, duh), and of course I learned (as you pointed out) that the default length of the select field is determined by the longest country name ("Macedonia, the Former Yugoslav Republic of" gives South Georgia a close run for its letter money). As it turns out, though, it *is* possible to specify a width for the country select field. I only needed to add the style attribute to the parameters. For some strange reason, I got the idea that the parameters variable wouldn't pass on style attributes, just id and class. Live and learn. twitchtoo, by the way, suggested that I take a closer look (I thought that I'd looked closely already, but hadn't) at the tpl_modules_create_account.php, and sure enough, there it was, staring me in the face.

    Thanks again for the direction.

    Ken Baker

    PS: Did a good bit of stomping in the Stuart area back in the day.
    Last edited by KenBaker; 3 Mar 2014 at 03:26 AM.

  5. #5
    Join Date
    Dec 2012
    Posts
    66
    Plugin Contributions
    0

    Default Re: Adjust Width, Country Select Field, Create Account Template

    twitchtoo,

    Honestly, I felt sure that I had studied that template practically to death, but when I read your note I sighed and took one last quick glance at it, just to report that I had, and sure enough the solution popped right out at me. If it'd been a snake, it would have throttled me. Thanks for the help.

    Ken Baker

  6. #6
    Join Date
    Apr 2007
    Location
    Ontario, Canada
    Posts
    1,732
    Plugin Contributions
    27

    Default Re: Adjust Width, Country Select Field, Create Account Template

    I'm glad I could help :)
    Twitch.
    https://www.twitchtoo.com Do you work for free? Please donate.
    June 7.2026 - NOW AVAILABLE - Twitch Base8 - Obsidian

 

 

Similar Threads

  1. v139h What template do I adjust to move submit button on account sign-up page to left side
    By cshart in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 24 Jan 2013, 09:54 PM
  2. Gloss Black Template -- How to adjust width?
    By Rasyr in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 14 Dec 2011, 07:42 PM
  3. Replies: 7
    Last Post: 5 May 2011, 02:13 AM
  4. How do I remove the Country field from the Create Account Form?
    By Shaunus in forum Basic Configuration
    Replies: 8
    Last Post: 7 Apr 2011, 12:04 PM
  5. Customer can't create account. must select country
    By kristofvanmol in forum Basic Configuration
    Replies: 5
    Last Post: 7 Sep 2007, 07:41 AM

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