Results 1 to 3 of 3
  1. #1
    Join Date
    Apr 2006
    Posts
    13
    Plugin Contributions
    0

    Default Need to make Country a hidden field...

    Alright, just upgraded to 1.3.7 and I am going through and trying to modify the pages I had edited in 1.2.6...

    One I having issue with is blk_address_format. It is no longer there . . . I had edited the country area like so:

    <!--// <tr>
    <td class="main"><?php //echo ENTRY_COUNTRY; ?></td>
    <?php
    $selected_country = ($_POST['country']) ? $country : SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY;
    ?>
    <td class="main">//--><input name="country" type="hidden" value="<?php echo $selected_country ?>" /><?php /*echo zen_get_country_list('country', $selected_country) . '&nbsp;' . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); */?><!--//</td>
    </tr>//-->

    This made the field hidden and still passed the correct code of 223 for the US. Does anyone have any idea what is needed now to do about the same thing? I tried to modify tpl_modules_create_account.php but the page still returns that your state atleast 2 letters and you must select a country.

    Any help would be appreciated.

  2. #2
    Join Date
    Apr 2006
    Posts
    13
    Plugin Contributions
    0

    Default Re: Need to make Country a hidden field...

    Should this be in another topic maybe?

  3. #3
    Join Date
    Mar 2007
    Posts
    159
    Plugin Contributions
    0

    Default Re: Need to make Country a hidden field...

    if your only going to sell in the US, I think removing the other countries from
    admin locations countries will just put US up there, not hidden but no drop down box

 

 

Similar Threads

  1. make a hidden field in the product section
    By cycle1 in forum Templates, Stylesheets, Page Layout
    Replies: 0
    Last Post: 17 Nov 2009, 06:38 PM
  2. "(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
  3. Country field - I don't need it ... how can I skip it?
    By jbarrick in forum Basic Configuration
    Replies: 0
    Last Post: 8 Jul 2009, 06:21 PM
  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
  5. Field format error: 10731-The field Shipping Address Country
    By infocom in forum PayPal Website Payments Pro support
    Replies: 2
    Last Post: 27 May 2008, 10:30 AM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR