Location: PHPKode > projects > Simple PHP Shopping cart - asaancart > asaancart v-0.9/templates/shop/pages/checkout.tpl
<h2>Place Order</h2>
<!-- <table width="100%" border="0" cellpadding="3" cellspacing="0" bgcolor="#F3F3F3">
  <tr>
    <td height="32" colspan="2"><h3>Are you a returning customer?</h3></td>
  </tr>
  <tr>
    <td colspan="2" valign="top">
      <form action="checkout.php" method="post" name="login" id="login">
        <table width="100%" border="0" cellspacing="0" cellpadding="3">
            <tr>
              <td colspan="2">{if $login_msg!=""}<div id="register_msg">{$login_msg}</div>{/if}</td>
            </tr>

            <tr>
              <td width="150">Email Address:</td>
              <td><input type="text" name="login_email_address" id="login_email_address" /></td>
            </tr>
            <tr>
              <td>Password:</td>
              <td><input type="password" name="login_password" id="login_password" /></td>
            </tr>
            <tr>
              <td height="41">&nbsp;</td>
              <td><input type="submit" name="login" id="login" value="Login" /></td>
            </tr>
          </table>
        </form></td>
  </tr>
</table>
<h3>New Customer</h3> -->
<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>
    <img src="images/spacer.gif" height="1" width="700"></td>
  </tr>
  {if $error_msg!=""}
      <tr>
        <td><div id="msg_small" style="color:#FF0000; font-weight:bold">Please fill the following information<br />
<br />
{$error_msg}<br />
<br />
</div></td>
      </tr>{/if}
      
      <tr>
    <td>Purchaser: please enter your details here</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td><form method="post" name="placeOrder" id="placeOrder" action="paypal.php"><table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellpadding="3" cellspacing="0">
      {if $msg!=""}
      <tr>
        <td colspan="2"><div id="msg_small">{$msg}</div></td>
      </tr>{/if}
      
      
      <tr>
        <td colspan="2" class="section_header">General Information</td>
      </tr>
      <tr>
        <td width="151">Customer Name*</td>
        <td width="815" ><input name="customer_name" type="text" id="customer_name" value="{$customer_name}" /></td>
      </tr>
      <tr>
        <td>Business/Company Name*</td>
        <td><input name="business_name" type="text" id="business_name" value="{$business_name}" /></td>
      </tr>
      <tr>
        <td>Email Address*</td>
        <td><input name="email_address" type="text" id="email_address" value="{$email_address}" /></td>
      </tr>
      <tr>
        <td>Mobile</td>
        <td><input name="customer_mobile" type="text" id="customer_mobile" value="{$mobile}"/></td>
      </tr>
      <tr>
        <td>Phone*</td>
        <td><input name="customer_phone" type="text" id="customer_phone" value="{$phone}"/></td>
      </tr>
      <tr>
        <td colspan="2" class="section_header">Postal Address</td>
      </tr>
      <tr>
        <td>Country*</td>
        <td>
        <select name="customer_country">
		<option value="AF"> Afghanistan</option>
		<option value="AL"> Albania</option>

		<option value="DZ"> Algeria</option>
		<option value="AS"> American Samoa</option>
		<option value="AD"> Andorra</option>
		<option value="AO"> Angola</option>
		<option value="AI"> Anguilla</option>

		<option value="AQ"> Antarctica</option>
		<option value="AG"> Antigua and Barbuda</option>
		<option value="AR"> Argentina</option>
		<option value="AM"> Armenia</option>
		<option value="AW"> Aruba</option>

		<option value="AU" selected="selected"> Australia</option>
		<option value="AT"> Austria</option>
		<option value="AZ"> Azerbaijan</option>
		<option value="AP"> Azores</option>
		<option value="BS"> Bahamas</option>

		<option value="BH"> Bahrain</option>
		<option value="BD"> Bangladesh</option>
		<option value="BB"> Barbados</option>
		<option value="BY"> Belarus</option>
		<option value="BE"> Belgium</option>

		<option value="BZ"> Belize</option>
		<option value="BJ"> Benin</option>
		<option value="BM"> Bermuda</option>
		<option value="BT"> Bhutan</option>
		<option value="BO"> Bolivia</option>

		<option value="BA"> Bosnia And Herzegowina</option>
		<option value="BW"> Botswana</option>
		<option value="BV"> Bouvet Island</option>
		<option value="BR"> Brazil</option>
		<option value="IO"> British Indian Ocean Territory</option>

		<option value="VG"> British Virgin Islands</option>
		<option value="BN"> Brunei Darussalam</option>
		<option value="BG"> Bulgaria</option>
		<option value="BF"> Burkina Faso</option>
		<option value="BI"> Burundi</option>

		<option value="KH"> Cambodia</option>
		<option value="CM"> Cameroon</option>
		<option value="CA"> Canada</option>
		<option value="CV"> Cape Verde</option>
		<option value="KY"> Cayman Islands</option>

		<option value="CF"> Central African Republic</option>
		<option value="TD"> Chad</option>
		<option value="CL"> Chile</option>
		<option value="CN"> China</option>
		<option value="CX"> Christmas Island</option>

		<option value="CC"> Cocos (Keeling) Islands</option>
		<option value="CO"> Colombia</option>
		<option value="KM"> Comoros</option>
		<option value="CG"> Congo</option>
		<option value="CD"> Congo, The Democratic Republic O</option>

		<option value="CK"> Cook Islands</option>
		<option value="CR"> Costa Rica</option>
		<option value="CI"> Cote d` Ivoire (Ivory Coast)</option>
		<option value="HR"> Croatia</option>
		<option value="CU"> Cuba</option>

		<option value="CY"> Cyprus</option>
		<option value="CZ"> Czech Republic</option>
		<option value="DK"> Denmark</option>
		<option value="DJ"> Djibouti</option>
		<option value="DM"> Dominica</option>

		<option value="DO"> Dominican Republic</option>
		<option value="TP"> East Timor</option>
		<option value="EC"> Ecuador</option>
		<option value="EG"> Egypt</option>
		<option value="SV"> El Salvador</option>

		<option value="GQ"> Equatorial Guinea</option>
		<option value="ER"> Eritrea</option>
		<option value="EE"> Estonia</option>
		<option value="ET"> Ethiopia</option>
		<option value="FK"> Falkland Islands (Malvinas)</option>

		<option value="FO"> Faroe Islands</option>
		<option value="FJ"> Fiji</option>
		<option value="FI"> Finland</option>
		<option value="FR"> France (Includes Monaco)</option>
		<option value="FX"> France, Metropolitan</option>

		<option value="GF"> French Guiana</option>
		<option value="PF"> French Polynesia</option>
		<option value="TA"> French Polynesia (Tahiti)</option>
		<option value="TF"> French Southern Territories</option>
		<option value="GA"> Gabon</option>

		<option value="GM"> Gambia</option>
		<option value="GE"> Georgia</option>
		<option value="DE"> Germany</option>
		<option value="GH"> Ghana</option>
		<option value="GI"> Gibraltar</option>

		<option value="GB"> Great Britain</option>
		<option value="GR"> Greece</option>
		<option value="GL"> Greenland</option>
		<option value="GD"> Grenada</option>
		<option value="GP"> Guadeloupe</option>

		<option value="GU"> Guam</option>
		<option value="GT"> Guatemala</option>
		<option value="GN"> Guinea</option>
		<option value="GW"> Guinea-Bissau</option>
		<option value="GY"> Guyana</option>

		<option value="HT"> Haiti</option>
		<option value="HM"> Heard And Mc Donald Islands</option>
		<option value="HN"> Honduras</option>
		<option value="HK"> Hong Kong</option>
		<option value="HU"> Hungary</option>

		<option value="IS"> Iceland</option>
		<option value="IN"> India</option>
		<option value="ID"> Indonesia</option>
		<option value="IR"> Iran</option>
		<option value="IQ"> Iraq</option>

		<option value="IE"> Ireland</option>
		<option value="EI"> Ireland (Eire)</option>
		<option value="IL"> Israel</option>
		<option value="IT"> Italy</option>
		<option value="JM"> Jamaica</option>

		<option value="JP"> Japan</option>
		<option value="JO"> Jordan</option>
		<option value="KZ"> Kazakhstan</option>
		<option value="KE"> Kenya</option>
		<option value="KI"> Kiribati</option>

		<option value="KP"> Korea, Democratic People'S Repub</option>
		<option value="KW"> Kuwait</option>
		<option value="KG"> Kyrgyzstan</option>
		<option value="LA"> Laos</option>
		<option value="LV"> Latvia</option>

		<option value="LB"> Lebanon</option>
		<option value="LS"> Lesotho</option>
		<option value="LR"> Liberia</option>
		<option value="LY"> Libya</option>
		<option value="LI"> Liechtenstein</option>

		<option value="LT"> Lithuania</option>
		<option value="LU"> Luxembourg</option>
		<option value="MO"> Macao</option>
		<option value="MK"> Macedonia</option>
		<option value="MG"> Madagascar</option>

		<option value="ME"> Madeira Islands</option>
		<option value="MW"> Malawi</option>
		<option value="MY"> Malaysia</option>
		<option value="MV"> Maldives</option>
		<option value="ML"> Mali</option>

		<option value="MT"> Malta</option>
		<option value="MH"> Marshall Islands</option>
		<option value="MQ"> Martinique</option>
		<option value="MR"> Mauritania</option>
		<option value="MU"> Mauritius</option>

		<option value="YT"> Mayotte</option>
		<option value="MX"> Mexico</option>
		<option value="FM"> Micronesia, Federated States Of</option>
		<option value="MD"> Moldova, Republic Of</option>
		<option value="MC"> Monaco</option>

		<option value="MN"> Mongolia</option>
		<option value="MS"> Montserrat</option>
		<option value="MA"> Morocco</option>
		<option value="MZ"> Mozambique</option>
		<option value="MM"> Myanmar (Burma)</option>

		<option value="NA"> Namibia</option>
		<option value="NR"> Nauru</option>
		<option value="NP"> Nepal</option>
		<option value="NL"> Netherlands</option>
		<option value="AN"> Netherlands Antilles</option>

		<option value="NC"> New Caledonia</option>
		<option value="NZ"> New Zealand</option>
		<option value="NI"> Nicaragua</option>
		<option value="NE"> Niger</option>
		<option value="NG"> Nigeria</option>

		<option value="NU"> Niue</option>
		<option value="NF"> Norfolk Island</option>
		<option value="MP"> Northern Mariana Islands</option>
		<option value="NO"> Norway</option>
		<option value="OM"> Oman</option>

		<option value="PK"> Pakistan</option>
		<option value="PW"> Palau</option>
		<option value="PS"> Palestinian Territory, Occupied</option>
		<option value="PA"> Panama</option>
		<option value="PG"> Papua New Guinea</option>

		<option value="PY"> Paraguay</option>
		<option value="PE"> Peru</option>
		<option value="PH"> Philippines</option>
		<option value="PN"> Pitcairn</option>
		<option value="PL"> Poland</option>

		<option value="PT"> Portugal</option>
		<option value="PR"> Puerto Rico</option>
		<option value="QA"> Qatar</option>
		<option value="RE"> Reunion</option>
		<option value="RO"> Romania</option>

		<option value="RU"> Russian Federation</option>
		<option value="RW"> Rwanda</option>
		<option value="KN"> Saint Kitts And Nevis</option>
		<option value="SM"> San Marino</option>
		<option value="ST"> Sao Tome and Principe</option>

		<option value="SA"> Saudi Arabia</option>
		<option value="SN"> Senegal</option>
		<option value="CS"> Serbia-Montenegro</option>
		<option value="SC"> Seychelles</option>
		<option value="SL"> Sierra Leone</option>

		<option value="SG"> Singapore</option>
		<option value="SK"> Slovak Republic</option>
		<option value="SI"> Slovenia</option>
		<option value="SB"> Solomon Islands</option>
		<option value="SO"> Somalia</option>

		<option value="ZA"> South Africa</option>
		<option value="GS"> South Georgia And The South Sand</option>
		<option value="KR"> South Korea</option>
		<option value="ES"> Spain</option>
		<option value="LK"> Sri Lanka</option>

		<option value="NV"> St. Christopher and Nevis</option>
		<option value="SH"> St. Helena</option>
		<option value="LC"> St. Lucia</option>
		<option value="PM"> St. Pierre and Miquelon</option>
		<option value="VC"> St. Vincent and the Grenadines</option>

		<option value="SD"> Sudan</option>
		<option value="SR"> Suriname</option>
		<option value="SJ"> Svalbard And Jan Mayen Islands</option>
		<option value="SZ"> Swaziland</option>
		<option value="SE"> Sweden</option>

		<option value="CH"> Switzerland</option>
		<option value="SY"> Syrian Arab Republic</option>
		<option value="TW"> Taiwan</option>
		<option value="TJ"> Tajikistan</option>
		<option value="TZ"> Tanzania</option>

		<option value="TH"> Thailand</option>
		<option value="TG"> Togo</option>
		<option value="TK"> Tokelau</option>
		<option value="TO"> Tonga</option>
		<option value="TT"> Trinidad and Tobago</option>

		<option value="TN"> Tunisia</option>
		<option value="TR"> Turkey</option>
		<option value="TM"> Turkmenistan</option>
		<option value="TC"> Turks and Caicos Islands</option>
		<option value="TV"> Tuvalu</option>

		<option value="UG"> Uganda</option>
		<option value="UA"> Ukraine</option>
		<option value="AE"> United Arab Emirates</option>
		<option value="UK"> United Kingdom</option>
		<option value="US"> United States</option>

		<option value="UM"> United States Minor Outlying Isl</option>
		<option value="UY"> Uruguay</option>
		<option value="UZ"> Uzbekistan</option>
		<option value="VU"> Vanuatu</option>
		<option value="VA"> Vatican City State (Holy See)</option>

		<option value="VE"> Venezuela</option>
		<option value="VN"> Vietnam</option>
		<option value="VI"> Virgin Islands (U.S.)</option>
		<option value="WF"> Wallis and Furuna Islands</option>
		<option value="EH"> Western Sahara</option>

		<option value="WS"> Western Samoa</option>
		<option value="YE"> Yemen</option>
		<option value="YU"> Yugoslavia</option>
		<option value="ZR"> Zaire</option>
		<option value="ZM"> Zambia</option>

		<option value="ZW"> Zimbabwe</option>
	</select>
            <!-- {$selected_customer[selected_customer].customer_country} --></td>
      </tr>
      <tr>
        <td>State*</td>
        <td><input name="customer_state" type="text" id="customer_state" value="{$state}"/></td>
      </tr>
      <tr>
        <td>City*</td>
        <td><input name="customer_city" type="text" id="customer_city" value="{$city}"/></td>
      </tr>
      <tr>
        <td>Suburb</td>
        <td><input name="customer_suburb" type="text" id="customer_suburb" value="{$suburb}"/></td>
      </tr>
      <tr>
        <td>postcode*</td>
        <td><input name="customer_postcode" type="text" id="customer_postcode" value="{$postcode}" size="10"/></td>
      </tr>
      <tr>
        <td>Address*</td>
        <td><textarea name="customer_address" cols="30" rows="2" id="customer_address" />{$customer_address}</textarea></td>
      </tr>
      
       <tr>
         <td></td>
         <td>&nbsp;</td>
       </tr>
      <tr>
    <td class="section_header" colspan="2">Shipping Address <a href="javascript:copyPostalAddress();">same as postal address</a></td>
  </tr>
  <tr>
         <td width="151">Country*</td>
         <td><input id="s_customer_country" name="s_customer_country" type="text" value="{$shipping_country}" /></td>
       </tr>
       <tr>
         <td>State*</td>
         <td><input name="s_customer_state" type="text" id="s_customer_state" value="{$shipping_country}"/></td>
       </tr>
       <tr>
         <td>City*</td>
         <td><input name="s_customer_city" type="text" id="s_customer_city" value="{$shipping_city}"/></td>
       </tr>
       <tr>
         <td>Suburb</td>
         <td><input name="s_customer_suburb" type="text" id="s_customer_suburb" value="{$shipping_suburb}"/></td>
       </tr>
       <tr>
         <td>postcode*</td>
         <td><input name="s_customer_postcode" type="text" id="s_customer_postcode" value="{$shipping_postcode}" size="10"/></td>
       </tr>
       <tr>
         <td>Address*</td>
         <td><textarea name="s_customer_address" cols="30" rows="2" id="s_customer_address" />{$shipping_address}</textarea>
             </td>
       </tr>
       <tr>
         <td></td>
         <td>&nbsp;</td>
       </tr>
    </table></td>
      </tr>
      <tr>
        <td height="19">&nbsp;</td>
      </tr>
      <tr>
        <td height="24"><table width="100%" border="0" cellpadding="3" cellspacing="0">
          <tr>
            <td class="section_header" >Delivery instructions, comments or gift message</td>
          </tr>
          <tr>
            <td><textarea name="shipping_instructions" cols="40" rows="3" id="shipping_instructions" />{$shipping_instructions}</textarea></td>
          </tr>
          <tr>
            <td height="37">If you have any delivery instructions, comments or wish to add a message to a recipient, please enter these details here</td>
          </tr>
          <tr>
            <td><input type="checkbox" name="mailing_list" id="mailing_list" value="yes" />
              Subscribe to our newsletters.</td>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td height="19">&nbsp;</td>
      </tr>
      <tr>
        <td height="29"><table width="100%" border="0" cellpadding="3" cellspacing="0">
          <tr>
        <td height="24"  class="section_header" >Payment</td>
      </tr>
      <tr>
        <td>Please select payment option from the following list.</td>
      </tr>
      
      <tr>
        <td height="215" valign="top">
        <p>{section name=payment_options_available loop=$payment_options_available}        </p>
        <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#F3F3F3">
          <tr>
            <td width="18%" height="32" bgcolor="#FFFFFF"> <p><input name="payment_option" type="radio" id="payment_option" value="paypal" checked="checked" onclick="selectPaymentOption(this.value)" />
            PayPal</p>
            {* Paypal parameters *}
            {if $total_cart_items>0}   
           <!-- <input type="hidden" name="business" value="{$payment_options_available[payment_options_available].paypal_id}">
            <input type="hidden" name="cmd" value="_cart">
        <input type="hidden" name="upload" value="1"> 
        
        {php}
        $item_cnt = 1;
        $this->assign('item_cnt',$item_cnt);
        {/php}
              {section name=cartItems loop=$cartItems}
               
              <input type="hidden" name="item_name_{$item_cnt}" value="{$cartItems[cartItems].product_name}"> 
        <input type="hidden" name="amount_{$item_cnt}" value="{$cartItems[cartItems].product_price}"> 
        <input type="hidden" name="quantity_{$item_cnt}" value="{$cartItems[cartItems].product_qty}"> 
        {php}
        $item_cnt++;
        $this->assign('item_cnt',$item_cnt);
        {/php}
         {/section}<br />
        
        <input type="hidden" name="handling_cart" value="{$shippingTotal|string_format:'%.2f'}">
        <input type="hidden" name="shopping_url" value="{$site_url}">
        
        <input type="hidden" name="currency_code" value="AUD">
        {/if} -->
        </td>
            <td width="82%" bgcolor="#FFFFFF"><img src="images/paypal.png" alt="Paypal - Secure and fast online payment method" title="Paypal" /></td>
          </tr>
          {if $payment_options_available[payment_options_available].activate_bank_deposit=="yes"}<tr>
            <td bgcolor="#FFFFFF">
        <p><input type="radio" id="payment_option" name="payment_option" value="bank_deposit"  onclick="selectPaymentOption(this.value)"/>Bank Deposit (EFT)</p>        </td>
            <td bgcolor="#FFFFFF"><p>{$payment_options_available[payment_options_available].bank_deposit}</p></td>
          </tr>{/if}
          {if $payment_options_available[payment_options_available].activate_money_order=="yes"}<tr>
            <td bgcolor="#FFFFFF"> 
        <p><input type="radio" id="payment_option" name="payment_option" value="money_order"  onclick="selectPaymentOption(this.value)"/>Money Order</p>        </td>
            <td bgcolor="#FFFFFF"><p>{$payment_options_available[payment_options_available].money_order}</p></td>
          </tr>
          {/if}
          {if $payment_options_available[payment_options_available].activate_bank_check=="yes"}
          <tr>
            <td bgcolor="#FFFFFF">
        <p><input type="radio" id="payment_option" name="payment_option" value="bank_check" onclick="selectPaymentOption(this.value)" />Bank Cheque</p>        </td>
            <td bgcolor="#FFFFFF"><p>{$payment_options_available[payment_options_available].bank_check}</p></td>
          </tr>{/if}
        </table>
        {/section}        </td>
      </tr>
        </table></td>
      </tr>
      <tr>
        <td height="29" class="section_header">Terms and conditions</td>
      </tr>
      <tr>
        <td height="48">Please read the following terms and conditions: {if $totalBlocks >0}
{section name=block2 loop=$block2}
<a href="page.php?page_name={$block2[block2].page_title}&page_id={$block2[block2].page_id}">{$block2[block2].page_title}</a>  {/section}
{/if}</td>
      </tr><tr>
        <td height="21">&nbsp;</td>
      </tr>
      <tr>
        <td height="29">{if $total_cart_items>0}      
<input type='hidden' name='paymentType' value='{$paymentType}' >
<input type='hidden' name='paymentAmount' value='{$cartTotal|string_format:"%.2f"}' />
<input type='hidden' name='currencyCodeType' value='{$currencyCodeType}' />

        <input type="submit" name="Submit" id="button" value="Yes I agree with the above Terms and Conditions, &raquo; PROCEED TO CHECKOUT" onclick="submitForm()"/>
        {else}
         <input type="submit" name="Submit" id="button" value="Yes I agree with the above Terms and Conditions, PROCEED TO CHECKOUT" onclick="submitForm()" disabled="disabled"/><br />
<br />
You have no items in your cart yet. <a href="{$site_url}">Click here</a> to continue shopping
    {/if}
          
                </td>
      </tr>
      <tr>
        <td height="29">&nbsp;</td>
      </tr>
      
    </table></form></td>
  </tr>
 <!-- <tr>
    <td  class="section_header"><a href="javascript:showDiv('billing_address');">Billing Address</a> <input type="checkbox" name="billing_address_value" id="billing_address_value" value="yes" /> Use this as billing address</td>
  </tr>
  <tr>
    <td><table width="100%" border="0" cellpadding="0" cellspacing="0" id="billing_address" style="display:none;">
      <tr>
        <td colspan="2"><a href="javascript:copyPaddress();">same as postal address</a></td>
      </tr>
      <tr>
        <td width="151">Country</td>
        <td><input id="b_customer_country" name="b_customer_country" type="text" value="Australia" readonly="readonly" /></td>
      </tr>
      <tr>
        <td>State</td>
        <td><input id="b_customer_state" name="b_customer_state" type="text"/></td>
      </tr>
      <tr>
        <td>City</td>
        <td><input id="b_customer_city" name="b_customer_city" type="text"/></td>
      </tr>
      <tr>
        <td>Suburb</td>
        <td><input id="b_customer_suburb" name="b_customer_suburb" type="text"/></td>
      </tr>
      <tr>
        <td>postcode</td>
        <td><input name="b_customer_postcode" type="text" id="b_customer_postcode" size="10"/></td>
      </tr>
      <tr>
        <td>Address</td>
        <td><textarea name="b_customer_address" cols="30" rows="3" id="b_customer_address" /></textarea>
            </textarea></td>
      </tr>
    </table></td>
  </tr>-->
</table> 
Return current item: Simple PHP Shopping cart - asaancart