Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Country-State Selector


stevel

Recommended Posts

The () is supposed to have the state abbreviation. Perhaps you missed an edit. The same would go for your problem 2. Compare your files with the pre-edited versions to see what is different (use a file comparison tool such as BeyondCompare.)

Link to comment
Share on other sites

The () is supposed to have the state abbreviation. Perhaps you missed an edit. The same would go for your problem 2. Compare your files with the pre-edited versions to see what is different (use a file comparison tool such as BeyondCompare.)

 

Hi stevel,

 

Actually the abreviation is not really useful, I'd prefer to remove it. Can you tell me the lines where I can change it?

 

I will take a look on the second matter. I may have missed something. Thanx!

Link to comment
Share on other sites

  • 2 weeks later...

I must have messed something up installing version 1.4.1 :blush:

 

The problem I have come across so far -

When adding an address to my address book, all seems fine on the address_book_details page, where you add the new info.

The country input is hidden (using only 223/USA) and the State input is a drop down.

But...

When I click continue I receive this error -

You must select a country from the Countries pull down menu.

Plus the State pull down menu disappears.

 

I had made previous edits to the create_account.php to also hide the country_ID and change the State to a pull down and it worked fine. That's all I wanted to do for the address book pages. :(

 

If anyone can point me in the right direction as to where I might have messed up or what to look for I would really appreciate it.

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

All I can suggest is that you compare your edited file against the pre-edited version - it sounds as if you missed an edit.

 

Thank you for the reply Steve.

 

I will triple check my edits again, I know how tricky it can be... one mis-placed } and things can go screwy LOL.

 

I was wondering if maybe I did a bad thing?

Instead of relacing in catalog/address_book_process.php line 90 I commented it out and then added the edit. Could that be messing anything up? I wouldn't think so but what do I know!?! :huh:

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

Thank you Steve ;)

 

I will go through it again. I originally made the edits just per the README.HTM.

I could have possibly missed something. I will also compare the included files this time.

 

Thanks again for your input.

 

:)

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Link to comment
Share on other sites

Hi Guys,

 

I need some help here:

 

the drop down selector work fine with every files, my only problem is i can't see the state selected reflected in the output files"

 

INPUT

input.GIF

 

 

OUTPUT

output.GIF

 

 

I need some clue to figure out what have i done wrong..

 

I am installing the OSC 2.2 Release Candidate 2a, i.e. the latest version.

 

 

 

 

Thanks in advance.

Edited by day2
Link to comment
Share on other sites

I just made compare using examDiff software between the downloaded zip files to my following edited files to ensure the changes are appropriate. Nothing seem to be goes wrong:

 

* catalog/address_book_process.php

* catalog/create_account.php

* catalog/checkout_payment_address.php

* catalog/checkout_shipping_address.php

* catalog/includes/form_check.js.php

* catalog/includes/modules/address_book_details.php

* catalog/includes/modules/checkout_new_address.php

* catalog/admin/customers.php

* catalog/admin/includes/functions/html_output.php

 

 

 

The entry_State column in the address_book table apparently is irrelevant as i ve made manual input in the field also didn't make it turn up.

 

I just want to know which script in which files query the state info to appear ??

 

Thanks.

Edited by day2
Link to comment
Share on other sites

Bingo!!

 

It is the Address Format that caused the hidden state. :rolleyes:

 

But i still got the problem, as the database only have zone_id and no Entry State, the address end up only display the Zone ID Code instead of state name in full, how do i display the state name instead of the zone id??

 

<_<

Link to comment
Share on other sites

Bingo!!

 

It is the Address Format that caused the hidden state. :rolleyes:

 

But i still got the problem, as the database only have zone_id and no Entry State, the address end up only display the Zone ID Code instead of state name in full, how do i display the state name instead of the zone id??

 

<_<

 

Correction~~is Zone_Code was displayed instead of Zone_Name..

 

How to Make Zone_Name displayed with Zone_id in the Address Book table, just like how does Country_Name displayed as Country_id is available in the Address Book table?? Which file determine the $state and $country in the Address_format table??

 

Thanks

Link to comment
Share on other sites

Typically you would not want both displayed - if there is a zone ID, then the zone code is taken from the "zones" table. Formatting of addresses is done by a routine in includes/functions/general.php which you should read to understand how address formats work. I will comment that the standard two formats are not appropriate for most countries.

Link to comment
Share on other sites

Typically you would not want both displayed - if there is a zone ID, then the zone code is taken from the "zones" table. Formatting of addresses is done by a routine in includes/functions/general.php which you should read to understand how address formats work. I will comment that the standard two formats are not appropriate for most countries.

 

Hi Steve,

 

It is all sort out via editing the general.php, you are the life saver~~

 

 

Great Contribution!!

 

:lol:

Link to comment
Share on other sites

I have installed and triple checked all files. Then I read all 50 pages of the forums and tried everything presented but I just can't seem to get the page to refresh on the create account page. I get an error "getStates undefined" and I know from previous posts and viewing source that the JavaScript are not being called properly. I am using STS and for the life of me I can't figure out how to get this page to refresh when I select the country. This works in the admin section perfectly, which is a default template, so it is obviously a problem of integration with STS but I just don't see the solution.

 

Anyone have any ideas of how to get this seemingly fantastic contribution to work with STS? I can only find one copy of form_check.js.php and ajax.js.php so that may not be it.

 

I am installing 1.5.5 on OSC 2.2 Please help.

 

Thanks in advance for any assistance,

 

Terry

Link to comment
Share on other sites

With STS and other template systems, there is often a second copy of "include" files that are used by the templates, and you must make sure that you edit the correct ones. First thing to do is to open the problem page in the web browser and then do a "view source". Look to make sure that the required JavaScript code is actually there. Next, look for JavaScript errors reported by the browser. This is easy in Firefox - just open Tools > Error Console. In MSIE you have to change advanced settings to enable reporting of errors. You may see something about a variable or function not being defined, a sure sign that you have the wrong or incomplete JavaScript code.

Link to comment
Share on other sites

Thanks for the speedy reply Stevel. I apologize for this way too long of a long post.

 

I have studied and searched the entire file system and can't seem to find any other copies of the files outlined in the readme. I did do a view source and the JS is not there. Please see below.

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" dir="LTR" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Bernard Jensen International - Iridology, nutrition, Ellen Tart-Jensen, supplements, cleansing, education, colema boards, slant boards, books, skin brushes, CD’s, DVD’s, Charts, magnifiers</title>
  <META name="description" content="This is your one-stop, resource for professional Iridology, tissue cleansing, and digestive health books and products. For decades we have been the top choice of Naturopaths, Iridologists, Colon Therapists and other Holistic Health Professionals from around the world. Browse through our wide array of Jensen Iridology books, CDs, DVDs, charts and educational supplies. We are the number one site for Dr. Bernard Jensen and Ellen Tart-Jensen´s tissue cleansing and Iridology books and products, as well as tissue cleansing and nutritional supplements. Let us be your choice for all of your Iridology and tissue cleansing needs.">
<META name="keywords" content="Iridology, nutrition, Ellen Tart-Jensen, supplements, cleansing, education, colema boards, slant boards, books, skin brushes, CD’s, DVD’s, charts, magnifiers">
<META name="publisher" content="BernardJensen.com">
<META name="author" content="Storm Brain Designs">


<link type="text/css" rel="stylesheet" href="includes/all.css">
<!--[if lt IE 7]><link rel="stylesheet" type="text/css" href="includes/ie6.css" media="screen"/><![endif]-->

<script type="text/javascript" src="js/main.js"></script>
<script language="javascript"><!--
function popupWindow(url) {
 window.open(url,'popupWindow','toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,res
izable=yes,copyhistory=no,width=100,height=100,screenX=150,screenY=150,top=150,le
ft=150')
}
//--></script>
<script language="javascript">
function refresh_form(form_name) {
  form_name.action.value = 'refresh';
  form_name.submit();
  return true;
  }
</script>
</head>
<body>
<div class="page">
	<div id="main">
		<div id="header">
			<a href="index.php" class="logo">Bernard Jensen International</a>

			<div class="main-nav-holder">
				<div>
					<ul>
						<li class="item-home"><a href="index.php"></a></li>
						<li class="item-faq"><a href="faq.php"></a></li>
						<li class="item-seminars"><a href="seminars.php"></a></li>
						<li class="item-bernard"><a href="bernard.php"></a></li>
						<li class="item-ellen"><a href="ellen.php"></a></li>
						<li class="item-who-we-are"><a href="aboutus.php"></a></li>

						<li class="item-gallery"><a href="gallery.php"></a></li>
						<li class="item-contact-us"><a href="contact_us.php"></a></li>
					</ul>
				</div>
			</div>
		</div>
		<div class="container">
			<div class="bg-holder-top">
				<div class="col-1">

					<div class="featured-products-box">


<!-- start Default Content //-->
<form name="create_account" action="http://www.bernardjensen.com/create_account.php?osCsid=t2m4l63r7jdkoiorr0u3qcd0u0" method="post" onSubmit="return check_form(create_account);"><input type="hidden" name="action" value="process"><div id="indicator"><img src="images/indicator.gif" border="0" alt="" width="50" height="50"></div>
	<table border="0" width="100%" cellspacing="0" cellpadding="0">
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="0">
         <tr>
           <td class="pageHeading">My Account Information</td>
           <td class="pageHeading" align="right"><img src="images/table_background_account.gif" border="0" alt="My Account Information" title=" My Account Information " width="57" height="40"></td>

         </tr>
       </table></td>
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
     </tr>
     <tr>
       <td class="smallText"><br><font color="#FF0000"><small><b>NOTE:</b></font></small> If you already have an account with us, please login at the <a href="http://www.bernardjensen.com/login.php?osCsid=t2m4l63r7jdkoiorr0u3qcd0u0"><u>login page</u></a>.</td>

     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
         <tr>
           <td class="main"><b>Your Personal Details</b></td>

          <td class="inputRequirement" align="right">* Required information</td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" cellspacing="2" cellpadding="2">

             <tr>
               <td class="main">Gender:</td>
               <td class="main"><input type="radio" name="gender" value="m">  Male  <input type="radio" name="gender" value="f">  Female <span class="inputRequirement">*</span></td>
             </tr>
             <tr>
               <td class="main">First Name:</td>

               <td class="main"><input type="text" name="firstname"> <span class="inputRequirement">*</span></td>
             </tr>
             <tr>
               <td class="main">Last Name:</td>
               <td class="main"><input type="text" name="lastname"> <span class="inputRequirement">*</span></td>
             </tr>
             <tr>

               <td class="main">Date of Birth:</td>
               <td class="main"><input type="text" name="dob"> <span class="inputRequirement">* (eg. 05/21/1970)</span></td>
             </tr>
             <tr>
               <td class="main">E-Mail Address:</td>
               <td class="main"><input type="text" name="email_address"> <span class="inputRequirement">*</span></td>
             </tr>

           </table></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
     </tr>
     <tr>
       <td class="main"><b>Company Details</b></td>

     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" cellspacing="2" cellpadding="2">
             <tr>
               <td class="main">Company Name:</td>
               <td class="main"><input type="text" name="company"> </td>

             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
     </tr>
     <tr>

       <td class="main"><b>Your Address</b></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" cellspacing="2" cellpadding="2">
             <tr>
               <td class="main">Street Address:</td>

               <td class="main"><input type="text" name="street_address"> <span class="inputRequirement">*</span></td>
             </tr>
             <tr>
               <td class="main">Suburb:</td>
               <td class="main"><input type="text" name="suburb"> </td>
             </tr>
             <tr>
               <td class="main">Post Code:</td>

               <td class="main"><input type="text" name="postcode"> <span class="inputRequirement">*</span></td>
             </tr>
             <tr>
               <td class="main">City:</td>
               <td class="main"><input type="text" name="city"> <span class="inputRequirement">*</span></td>
             </tr>
                   <tr>

                     <td class="main" width="25%">State/Province:</td>
                     <td class="main"><div id="states">
                         <select name="zone_id"><option value="1">Alabama</option><option value="2">Alaska</option><option value="3">American Samoa</option><option value="4">Arizona</option><option value="5">Arkansas</option><option value="6">Armed Forces Africa</option><option value="7">Armed Forces Americas</option><option value="8">Armed Forces Canada</option><option value="9">Armed Forces Europe</option><option value="10">Armed Forces Middle East</option><option value="11">Armed Forces Pacific</option><option value="12">California</option><option value="13">Colorado</option><option value="14">Connecticut</option><option value="15">Delaware</option><option value="16">District of Columbia</option><option value="17">Federated States Of Micronesia</option><option value="18">Florida</option><option value="19">Georgia</option><option value="20">Guam</option><option value="21">Hawaii</option><option value="22">Idaho</option><option value="23">Illinois</option><option value="24">Indiana</option><option value="25">Iowa</option><option value="26">Kansas</option><option value="27">Kentucky</option><option value="28">Louisiana</option><option value="29">Maine</option><option value="30">Marshall Islands</option><option value="31">Maryland</option><option value="32">Massachusetts</option><option value="33">Michigan</option><option value="34">Minnesota</option><option value="35">Mississippi</option><option value="36">Missouri</option><option value="37">Montana</option><option value="38">Nebraska</option><option value="39">Nevada</option><option value="40">New Hampshire</option><option value="41">New Jersey</option><option value="42">New Mexico</option><option value="43">New York</option><option value="44">North Carolina</option><option value="45">North Dakota</option><option value="46">Northern Mariana Islands</option><option value="47">Ohio</option><option value="48">Oklahoma</option><option value="49">Oregon</option><option value="50">Palau</option><option value="51">Pennsylvania</option><option value="52">Puerto Rico</option><option value="53">Rhode Island</option><option value="54">South Carolina</option><option value="55">South Dakota</option><option value="56">Tennessee</option><option value="57">Texas</option><option value="58">Utah</option><option value="59">Vermont</option><option value="60">Virgin Islands</option><option value="61">Virginia</option><option value="62">Washington</option><option value="63">West Virginia</option><option value="64">Wisconsin</option><option value="65">Wyoming</option></select> <span class="inputRequirement">* (Select country first)                        </div></td>

                   </tr>
                                       <tr>
                     <td class="main" >Country:</td>
                                           <td class="main" ><select name="country" onChange="getStates(this.value, 'states');"><option value="">Please Select</option><option value="1">Afghanistan</option><option value="2">Albania</option><option value="3">Algeria</option><option value="4">American Samoa</option><option value="5">Andorra</option><option value="6">Angola</option><option value="7">Anguilla</option><option value="8">Antarctica</option><option value="9">Antigua and Barbuda</option><option value="10">Argentina</option><option value="11">Armenia</option><option value="12">Aruba</option><option value="13">Australia</option><option value="14">Austria</option><option value="15">Azerbaijan</option><option value="16">Bahamas</option><option value="17">Bahrain</option><option value="18">Bangladesh</option><option value="19">Barbados</option><option value="20">Belarus</option><option value="21">Belgium</option><option value="22">Belize</option><option value="23">Benin</option><option value="24">Bermuda</option><option value="25">Bhutan</option><option value="26">Bolivia</option><option value="27">Bosnia and Herzegowina</option><option value="28">Botswana</option><option value="29">Bouvet Island</option><option value="30">Brazil</option><option value="31">British Indian Ocean Territory</option><option value="32">Brunei Darussalam</option><option value="33">Bulgaria</option><option value="34">Burkina Faso</option><option value="35">Burundi</option><option value="36">Cambodia</option><option value="37">Cameroon</option><option value="38">Canada</option><option value="39">Cape Verde</option><option value="40">Cayman Islands</option><option value="41">Central African Republic</option><option value="42">Chad</option><option value="43">Chile</option><option value="44">China</option><option value="45">Christmas Island</option><option value="46">Cocos (Keeling) Islands</option><option value="47">Colombia</option><option value="48">Comoros</option><option value="49">Congo</option><option value="50">Cook Islands</option><option value="51">Costa Rica</option><option value="52">Cote D'Ivoire</option><option value="53">Croatia</option><option value="54">Cuba</option><option value="55">Cyprus</option><option value="56">Czech Republic</option><option value="57">Denmark</option><option value="58">Djibouti</option><option value="59">Dominica</option><option value="60">Dominican Republic</option><option value="61">East Timor</option><option value="62">Ecuador</option><option value="63">Egypt</option><option value="64">El Salvador</option><option value="65">Equatorial Guinea</option><option value="66">Eritrea</option><option value="67">Estonia</option><option value="68">Ethiopia</option><option value="69">Falkland Islands (Malvinas)</option><option value="70">Faroe Islands</option><option value="71">Fiji</option><option value="72">Finland</option><option value="73">France</option><option value="74">France, Metropolitan</option><option value="75">French Guiana</option><option value="76">French Polynesia</option><option value="77">French Southern Territories</option><option value="78">Gabon</option><option value="79">Gambia</option><option value="80">Georgia</option><option value="81">Germany</option><option value="82">Ghana</option><option value="83">Gibraltar</option><option value="84">Greece</option><option value="85">Greenland</option><option value="86">Grenada</option><option value="87">Guadeloupe</option><option value="88">Guam</option><option value="89">Guatemala</option><option value="90">Guinea</option><option value="91">Guinea-bissau</option><option value="92">Guyana</option><option value="93">Haiti</option><option value="94">Heard and Mc Donald Islands</option><option value="95">Honduras</option><option value="96">Hong Kong</option><option value="97">Hungary</option><option value="98">Iceland</option><option value="99">India</option><option value="100">Indonesia</option><option value="101">Iran (Islamic Republic of)</option><option value="102">Iraq</option><option value="103">Ireland</option><option value="104">Israel</option><option value="105">Italy</option><option value="106">Jamaica</option><option value="107">Japan</option><option value="108">Jordan</option><option value="109">Kazakhstan</option><option value="110">Kenya</option><option value="111">Kiribati</option><option value="112">Korea, Democratic People's Republic of</option><option value="113">Korea, Republic of</option><option value="114">Kuwait</option><option value="115">Kyrgyzstan</option><option value="116">Lao People's Democratic Republic</option><option value="117">Latvia</option><option value="118">Lebanon</option><option value="119">Lesotho</option><option value="120">Liberia</option><option value="121">Libyan Arab Jamahiriya</option><option value="122">Liechtenstein</option><option value="123">Lithuania</option><option value="124">Luxembourg</option><option value="125">Macau</option><option value="126">Macedonia, The Former Yugoslav Republic of</option><option value="127">Madagascar</option><option value="128">Malawi</option><option value="129">Malaysia</option><option value="130">Maldives</option><option value="131">Mali</option><option value="132">Malta</option><option value="133">Marshall Islands</option><option value="134">Martinique</option><option value="135">Mauritania</option><option value="136">Mauritius</option><option value="137">Mayotte</option><option value="138">Mexico</option><option value="139">Micronesia, Federated States of</option><option value="140">Moldova, Republic of</option><option value="141">Monaco</option><option value="142">Mongolia</option><option value="143">Montserrat</option><option value="144">Morocco</option><option value="145">Mozambique</option><option value="146">Myanmar</option><option value="147">Namibia</option><option value="148">Nauru</option><option value="149">Nepal</option><option value="150">Netherlands</option><option value="151">Netherlands Antilles</option><option value="152">New Caledonia</option><option value="153">New Zealand</option><option value="154">Nicaragua</option><option value="155">Niger</option><option value="156">Nigeria</option><option value="157">Niue</option><option value="158">Norfolk Island</option><option value="159">Northern Mariana Islands</option><option value="160">Norway</option><option value="161">Oman</option><option value="162">Pakistan</option><option value="163">Palau</option><option value="164">Panama</option><option value="165">Papua New Guinea</option><option value="166">Paraguay</option><option value="167">Peru</option><option value="168">Philippines</option><option value="169">Pitcairn</option><option value="170">Poland</option><option value="171">Portugal</option><option value="172">Puerto Rico</option><option value="173">Qatar</option><option value="174">Reunion</option><option value="175">Romania</option><option value="176">Russian Federation</option><option value="177">Rwanda</option><option value="178">Saint Kitts and Nevis</option><option value="179">Saint Lucia</option><option value="180">Saint Vincent and the Grenadines</option><option value="181">Samoa</option><option value="182">San Marino</option><option value="183">Sao Tome and Principe</option><option value="184">Saudi Arabia</option><option value="185">Senegal</option><option value="186">Seychelles</option><option value="187">Sierra Leone</option><option value="188">Singapore</option><option value="189">Slovakia (Slovak Republic)</option><option value="190">Slovenia</option><option value="191">Solomon Islands</option><option value="192">Somalia</option><option value="193">South Africa</option><option value="194">South Georgia and the South Sandwich Islands</option><option value="195">Spain</option><option value="196">Sri Lanka</option><option value="197">St. Helena</option><option value="198">St. Pierre and Miquelon</option><option value="199">Sudan</option><option value="200">Suriname</option><option value="201">Svalbard and Jan Mayen Islands</option><option value="202">Swaziland</option><option value="203">Sweden</option><option value="204">Switzerland</option><option value="205">Syrian Arab Republic</option><option value="206">Taiwan</option><option value="207">Tajikistan</option><option value="208">Tanzania, United Republic of</option><option value="209">Thailand</option><option value="210">Togo</option><option value="211">Tokelau</option><option value="212">Tonga</option><option value="213">Trinidad and Tobago</option><option value="214">Tunisia</option><option value="215">Turkey</option><option value="216">Turkmenistan</option><option value="217">Turks and Caicos Islands</option><option value="218">Tuvalu</option><option value="219">Uganda</option><option value="220">Ukraine</option><option value="221">United Arab Emirates</option><option value="222">United Kingdom</option><option value="223" SELECTED>United States</option><option value="224">United States Minor Outlying Islands</option><option value="225">Uruguay</option><option value="226">Uzbekistan</option><option value="227">Vanuatu</option><option value="228">Vatican City State (Holy See)</option><option value="229">Venezuela</option><option value="230">Viet Nam</option><option value="231">Virgin Islands (British)</option><option value="232">Virgin Islands (U.S.)</option><option value="233">Wallis and Futuna Islands</option><option value="234">Western Sahara</option><option value="235">Yemen</option><option value="236">Yugoslavia</option><option value="237">Zaire</option><option value="238">Zambia</option><option value="239">Zimbabwe</option></select> <span class="inputRequirement">* (Page will refresh when changed)</span></td>

                                         </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
     </tr>
     <tr>

       <td class="main"><b>Your Contact Information</b></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" cellspacing="2" cellpadding="2">
             <tr>
               <td class="main">Telephone Number:</td>

               <td class="main"><input type="text" name="telephone"> <span class="inputRequirement">*</span></td>
             </tr>
             <tr>
               <td class="main">Fax Number:</td>
               <td class="main"><input type="text" name="fax"> </td>
             </tr>
           </table></td>
         </tr>

       </table></td>
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
     </tr>
     <tr>
       <td class="main"><b>Options</b></td>
     </tr>

     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" cellspacing="2" cellpadding="2">
             <tr>
               <td class="main">Newsletter:</td>
               <td class="main"><input type="checkbox" name="newsletter" value="1"> </td>
             </tr>

           </table></td>
         </tr>
       </table></td>
     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
     </tr>
     <tr>
       <td class="main"><b>Your Password</b></td>

     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" cellspacing="2" cellpadding="2">
             <tr>
               <td class="main">Password:</td>
               <td class="main"><input type="password" name="password" maxlength="40"> <span class="inputRequirement">*</span></td>

             </tr>
             <tr>
               <td class="main">Password Confirmation:</td>
               <td class="main"><input type="password" name="confirmation" maxlength="40"> <span class="inputRequirement">*</span></td>
             </tr>
           </table></td>
         </tr>
       </table></td>

     </tr>
     <tr>
       <td><img src="images/pixel_trans.gif" border="0" alt="" width="100%" height="10"></td>
     </tr>
     <tr>
       <td><table border="0" width="100%" cellspacing="1" cellpadding="2" class="infoBox">
         <tr class="infoBoxContents">
           <td><table border="0" width="100%" cellspacing="0" cellpadding="2">
             <tr>

               <td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>
               <td><input type="image" src="includes/languages/english/images/buttons/button_continue.gif" border="0" alt="Continue" title=" Continue "></td>
               <td width="10"><img src="images/pixel_trans.gif" border="0" alt="" width="10" height="1"></td>
             </tr>
           </table></td>
         </tr>
       </table></td>
     </tr>
   </table></form>

<!-- end Default Content //-->


					</div>
				</div>
				<div class="col-2">

<!-- start searchbox //-->

					<form name="quick_find" action="http://www.bernardjensen.com/advanced_search_result.php?osCsid=t2m4l63r7jdkoiorr0u3qcd0u0" method="get">							<div class="form">
						<div><input type="text" value="Search" name="keywords" onfocus="this.value='';" onblur="this.value='Search';"></div>

						</div>
					</form>


<!-- end searchbox //-->

					<ul class="yellow-items">
					<a href="/account.php"><img src="../includes/sts_templates/BernardJensen/images/my_account.gif" alt="my account" border="0" /></a>
						<li><a href="http://www.bernardjensen.com/shopping_cart.php?osCsid=t2m4l63r7jdkoiorr0u3qcd0u0"><span class="shopping">shopping cart</span></a></li>
						<li><a href="http://www.bernardjensen.com/checkout_shipping.php?osCsid=t2m4l63r7jdkoiorr0u3qcd0u0" class="active"><span class="checkout">checkout</span></a></li>

					</ul>
					<div class="product-list">
						<div class="product-list-bottom">
							<div class="heading">
								<h3>product list</h3>
							</div>
							<div class="product-list-body">

<!-- start categorybox //-->

<h4><a href="http://www.bernardjensen.com/index.php?cPath=52&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">New Products</a></h4><ul></ul><h4><a href="http://www.bernardjensen.com/index.php?cPath=53&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Special Offers</a></h4><ul></ul><h4><a href="http://www.bernardjensen.com/index.php?cPath=22&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Supplements</a></h4><ul><li><a href="http://www.bernardjensen.com/index.php?cPath=23&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">cleansing</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=24&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">nutritional</a></li></ul><h4><a href="http://www.bernardjensen.com/index.php?cPath=25&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Education</a></h4><ul><li><a href="http://www.bernardjensen.com/index.php?cPath=26&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Books</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=27&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">CD's</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=28&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">DVD's</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=29&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Charts</a></li></ul><h4><a href="http://www.bernardjensen.com/index.php?cPath=30&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Cleansing</a></h4><ul><li><a href="http://www.bernardjensen.com/index.php?cPath=32&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">supplements</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=33&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">cleansing boards</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=34&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">systems</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=35&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">slant boards</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=36&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">books</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=37&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">skin brushes</a></li></ul><h4><a href="http://www.bernardjensen.com/index.php?cPath=38&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Iridology</a></h4><ul><li><a href="http://www.bernardjensen.com/index.php?cPath=39&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">books</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=40&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">CD's</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=41&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">DVD's</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=42&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Charts</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=43&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">magnifiers</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=44&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">kits</a></li></ul><h4><a href="http://www.bernardjensen.com/index.php?cPath=45&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Books</a></h4><ul><li><a href="http://www.bernardjensen.com/index.php?cPath=46&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Dr. Bernard Jensen</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=47&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Dr. Ellen Tart-Jensen</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=48&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">e-books</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=49&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Iridology</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=50&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">cleansing</a></li><li><a href="http://www.bernardjensen.com/index.php?cPath=51&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">nutrition</a></li></ul>            

<!-- end categorybox //-->

							</div>
						</div>
					</div>
					<div class="banners-box">
						<a href="http://www.bernardjensen.com/gltechnology/catalog/index.php?cPath=30" class="banner"><img src="images/banner-1.jpg" alt="banner" width="149" height="150" /></a>
						<a href="product_info.php?products_id=170" class="banner"><img src="images/banner-2.jpg" alt="banner" width="149" height="150" /></a>
						<a href="http://www.bernardjensen.com/seminars.php" class="banner"><img src="images/banner-3.jpg" alt="banner" width="149" height="150" /></a>

					    <table width="100%" border="0" cellspacing="0" cellpadding="0">
                             <tr>
                               <td align="right"><br />
<!-- © 2006. Authorize.Net is a registered trademark of Lightbridge, Inc. -->
                                   <div class="AuthorizeNetSeal">

                                       <script type="text/javascript">var ANS_customer_id="cde9a774-e8a2-4152-a224-4ff09064d579";</script>
                                       <script type="text/javascript" src="//VERIFY.AUTHORIZE.NET/anetseal/seal.js" ></script>
                                       <a href="http://www.authorize.net/" id="AuthorizeNetText" target="_blank">Merchant Services</a>

                                 </div>
                                 <br />
                                   </div></td>
                             </tr>
                             <tr>
                               <td><div align="right"><span id="siteseal">
                                 <script type="text/javascript" src="https://seal.godaddy.com/getSeal?sealID=15216110030b9e63aa127118f2af8db917ff508528651089071411"></script>
                                 <br/>

                                 </span></div></td>
                             </tr>
                           </table>
					</div>
				</div>
			</div>
		</div>
		<div class="footer">
			<div class="line-holder">

				<div class="icons">
					<a href="http://www.stormbraindesigns.com" class="ico-design">Storm Brain Designs</a>
					<a href="#" class="ico-cards">cards</a>
				</div>
				<div class="copyright">
					<p>Copyright © 2008 Bernard Jensen International<br />

				  Site Design By <a href="http://www.stormbraindesigns.com">Storm Brain Designs</a></p>
			  </div>
			</div>
			<ul class='footer-links'><li class="first"><a href="index.php?cPath=52<li><a href="index.php?cPath=52&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">New Products</a></li><li><a href="index.php?cPath=53&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Special Offers</a></li><li><a href="index.php?cPath=22&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Supplements</a></li><li><a href="index.php?cPath=23&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">cleansing</a></li><li><a href="index.php?cPath=24&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">nutritional</a></li><li><a href="index.php?cPath=25&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Education</a></li><li><a href="index.php?cPath=26&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Books</a></li><li><a href="index.php?cPath=27&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">CD's</a></li><li><a href="index.php?cPath=28&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">DVD's</a></li><li><a href="index.php?cPath=29&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Charts</a></li><li><a href="index.php?cPath=30&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Cleansing</a></li><li><a href="index.php?cPath=32&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">supplements</a></li><li><a href="index.php?cPath=33&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">cleansing boards</a></li><li><a href="index.php?cPath=34&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">systems</a></li><li><a href="index.php?cPath=35&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">slant boards</a></li><li><a href="index.php?cPath=36&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">books</a></li><li><a href="index.php?cPath=37&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">skin brushes</a></li><li><a href="index.php?cPath=38&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Iridology</a></li><li><a href="index.php?cPath=39&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">books</a></li><li><a href="index.php?cPath=40&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">CD's</a></li><li><a href="index.php?cPath=41&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">DVD's</a></li><li><a href="index.php?cPath=42&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Charts</a></li><li><a href="index.php?cPath=43&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">magnifiers</a></li><li><a href="index.php?cPath=44&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">kits</a></li><li><a href="index.php?cPath=45&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Books</a></li><li><a href="index.php?cPath=46&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Dr. Bernard Jensen</a></li><li><a href="index.php?cPath=47&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Dr. Ellen Tart-Jensen</a></li><li><a href="index.php?cPath=48&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">e-books</a></li><li><a href="index.php?cPath=49&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">Iridology</a></li><li><a href="index.php?cPath=50&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">cleansing</a></li><li><a href="index.php?cPath=51&osCsid=t2m4l63r7jdkoiorr0u3qcd0u0">nutrition</a></li></ul>

		</div>
	</div>
</div>
<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-4083558-1");
pageTracker._initData();
pageTracker._trackPageview();
</script></body>
</html>

 

As you can see from the little form refresh script I have tried all suggestions in the forum posts to no avail. We'll actually the code removing the number one from the states box for countries with no zones works perfectly in the admin section.

 

The error from the Firefox error console is "getStates is not defined" which verified to me from reading your posts along with viewing the source above that the Javascript isn't getting in.

 

In desperation I actually put the require call to the ajax.js.php and form_check.js.php files at the very top of my create_account.php page just below the require for application_top.php and the refresh works except now I get an error about the session cookie, session cache and headers already being done by ajax.php. See link below

 

http://www.bernardjensen.com/create_account.php

 

We sell to individuals all over the world, Pakistan, Malaysia, Australia and this contribution is a must for me to get working. I feel so close yet so far away. Please help.

Link to comment
Share on other sites

You're using the Ajax version which I have not used. The error about getStates is your big clue. Figure out where that is supposed to come from and why it isn't showing up in the source. I would suggest backing out the "desperation" change you made.

Link to comment
Share on other sites

You're using the Ajax version which I have not used. The error about getStates is your big clue. Figure out where that is supposed to come from and why it isn't showing up in the source. I would suggest backing out the "desperation" change you made.

 

Thanks again for the fast reply. I did back out of the desperation change.

 

I only find the getStates function in ajax.js.php which is the file that needs to be called into the create_account.php to allow for the page refresh and states to fill in but I can't understand how to do it with this STS for some reason. Could be that I have been fighting with this for over 30 hours and I am just overlooking the obvious.

 

I appreciate your advice so far and hope Jesse reads this and can give me some guidance as well.

 

Thank you,

 

Terry

Link to comment
Share on other sites

OK. I got this thing working with STS and it is fantastic. Great work Steve!

 

I have one other thing I need help with if you don't mind.

 

I'd like the state dropdown to default to please select so folks don't register form Alabama when they live in California.

 

Any suggestions?

Link to comment
Share on other sites

I spoke too soon. Now I get an error

 

Fatal error: Call to a member function add_current_page() on a non-object in /includes/application_top.php on line 312

 

which has completely broken my cart and sign up

 

PLEASE HELP!!

 

 

Nevermind I fixed that too.

 

Thanks for an excellent addition to my store.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...