<?php echo zen_draw_input_field('company', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' id="company"') . ' ' . (zen_not_null(ENTRY_COMPANY_TEXT) ? '<span class="alert">' . ENTRY_COMPANY_TEXT . '</span>' : ''); ?> <br class="clearBoth" /> <?php } ?> <label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY; ?> </label> <?php $selected_country = $_POST['country'] ? $country : SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY; echo zen_get_country_list('country', $selected_country, 'id="country"') . ' ' . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>' : ''); ?> <br class="clearBoth" /> <label class="inputLabel" for="postcode"><?php echo ENTRY_POST_CODE; ?> </label> <?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . ' ' . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>' : ''); ?> <br class="clearBoth" /> <?php if (ACCOUNT_STATE == 'true') { ?>
} elseif (empty($_SESSION['cart_address_id']) && !empty($addresses)) { // no selected address yet, snag the first one reset($addresses); $first = current($addresses); $_SESSION['cart_address_id'] = $gBitCustomer->getField('customers_default_address_id', $first['address_book_id']); } if (isset($_SESSION['cart_address_id']) && ($selAddress = $gBitCustomer->getAddress($_SESSION['cart_address_id']))) { $order->delivery = array('postcode' => $selAddress['entry_postcode'], 'country' => array('countries_id' => $selAddress['entry_country_id'], 'title' => $selAddress['countries_name'], 'countries_iso_code_2' => $selAddress['countries_iso_code_2'], 'countries_iso_code_3' => $selAddress['countries_iso_code_3']), 'country_id' => $selAddress['entry_country_id'], 'format_id' => $selAddress['address_format_id']); if (!empty($_SESSION['cart_zone_id'])) { $order->delivery['zone_id'] = (int) $selAddress['entry_zone_id']; } $_SESSION['country_id'] = NULL; } } else { } $gBitSmarty->assign_by_ref('countryMenu', zen_get_country_list('country_id', $order->delivery['country']['countries_id'], 'onChange="updateShippingQuote(this.form);"')); // set the cost to be able to calculate free shipping $order->info = array('total' => $gBitCustomer->mCart->show_total()); $freeShipping = FALSE; // check free shipping based on order $total if (defined('MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING') && MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING == 'true') { $pass = false; switch (MODULE_ORDER_TOTAL_SHIPPING_DESTINATION) { case 'national': if ($order->delivery['country_id'] == STORE_COUNTRY) { $pass = true; } break; case 'international': if ($order->delivery['country_id'] != STORE_COUNTRY) { $pass = true;
<td class="g_t_r b"><?php echo ENTRY_CITY; ?> <span class="red">*</span></td> <td colspan="3"><?php echo zen_draw_input_field('city', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' chkrule="nnull/min3" chkname="City" id="city" class="l_input"'); ?> </td> </tr> <tr> <td class="g_t_r b"><?php echo ENTRY_COUNTRY; ?> </td> <td colspan="3"><?php echo zen_get_country_list('zone_country_id', $selected_country, ' chkname="Country / Region" chkrule="isselect" id="country" class="l_select" onchange="update_zone(this.form);"'); ?> </td> </tr> <tr id="zone_id_tr"> <td class="g_t_r b"><?php echo ENTRY_STATE . (zen_not_null(ENTRY_STATE_TEXT) ? ' <span class="red">' . ENTRY_STATE_TEXT . '</span>' : ''); ?> </td> <td colspan="3"><select id="stateZone" class="l_select" chkname="State/Province/Region" chkrule="isselect" name="zone_id"> </select> </td></tr> <tr id="zone_id_tr1" style="display:none;"> <td align="right"><strong><?php echo ENTRY_STATE . (zen_not_null(ENTRY_STATE_TEXT) ? ' <span class="red">' . ENTRY_STATE_TEXT . '</span>' : ''); ?> </strong></td>
/** Echoes out a complete address form, returns nothing. * * You are required to manually put the `form-horizontal` class in the * surrounding `<form>` element. */ public static function echo_shipping_address_form() { global $entry, $zone_name, $zone_id, $flag_show_pulldown_states, $selected_country; ?> <p class="text-danger"><strong><?php echo FORM_REQUIRED_INFORMATION; ?> </strong></p> <?php if (ACCOUNT_GENDER == 'true') { $male = (isset($gender) ? $gender : $entry->fields['entry_gender']) == 'male'; echo '<label class="radio-inline">' . zen_draw_radio_field('gender', 'm', $male, 'id="gender-male"') . MALE . '</label>' . '<label class="radio-inline">' . zen_draw_radio_field('gender', 'f', !$male, 'id="gender-female"') . FEMALE . '</label>' . self::required_text(ENTRY_GENDER_TEXT); } ?> <div class='form-group'> <label class="control-label col-sm-4" for="firstname"><?php echo self::required_text(ENTRY_FIRST_NAME_TEXT) . ENTRY_FIRST_NAME; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('firstname', $entry->fields['entry_firstname'], zen_set_field_length(TABLE_CUSTOMERS, 'customers_firstname', '40') . ' class="form-control" id="firstname"'); ?> </div> </div> <div class='form-group'> <label class="control-label col-sm-4" for="lastname"><?php echo self::required_text(ENTRY_LAST_NAME_TEXT) . ENTRY_LAST_NAME; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('lastname', $entry->fields['entry_lastname'], zen_set_field_length(TABLE_CUSTOMERS, 'customers_lastname', '40') . ' class="form-control" id="lastname"'); ?> </div> </div> <?php if (ACCOUNT_COMPANY == 'true') { ?> <div class='form-group'> <label class="control-label col-sm-4" for="lastname"><?php echo self::required_text(ENTRY_COMPANY_TEXT) . ENTRY_COMPANY; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('company', $entry->fields['entry_company'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_company', '40') . ' class="form-control" id="company"'); ?> </div> </div> <?php } ?> <div class='form-group'> <label class="control-label col-sm-4" for="street-address"><?php echo self::required_text(ENTRY_STREET_ADDRESS_TEXT) . ENTRY_STREET_ADDRESS; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('street_address', $entry->fields['entry_street_address'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_street_address', '40') . ' class="form-control" id="street-address"'); ?> </div> </div> <?php if (ACCOUNT_SUBURB == 'true') { ?> <div class='form-group'> <label class="control-label col-sm-4" for="suburb"><?php echo self::required_text(ENTRY_SUBURB_TEXT) . ENTRY_SUBURB; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('suburb', $entry->fields['entry_suburb'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_suburb', '40') . ' class="form-control" id="suburb"'); ?> </div> </div> <?php } ?> <div class='form-group'> <label class="control-label col-sm-4" for="city"><?php echo self::required_text(ENTRY_CITY_TEXT) . ENTRY_CITY; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('city', $entry->fields['entry_city'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' class="form-control" id="city"'); ?> </div></div> <?php if (ACCOUNT_STATE == 'true') { if ($flag_show_pulldown_states == true) { ?> <div class='form-group'> <label class="control-label col-sm-4" for="stateZone" class="form-control" id="zoneLabel"> <?php echo self::required_text(ENTRY_STATE_TEXT) . ENTRY_STATE; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $zone_id, 'class="form-control" id="stateZone"'); echo '</div></div>'; } ?> <div class='form-group' id='stateLabel'> <label class="control-label col-sm-4" for="state"><?php echo self::required_text(ENTRY_STATE_TEXT) . ENTRY_STATE; ?> </label> <!-- Elements with ids of `stText` & `stBreak` are required by Zencart, leaving them out breaks the auto-populating of the State dropdown when editing an address. --> <span id='stText'></span><span id='stBreak'></span> <div class='col-sm-8'> <?php echo zen_draw_input_field('state', zen_get_zone_name($entry->fields['entry_country_id'], $entry->fields['entry_zone_id'], $entry->fields['entry_state']), zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_state', '40') . ' class="form-control" id="state"'); if ($flag_show_pulldown_states == false) { echo zen_draw_hidden_field('zone_id', $zone_name, ' '); } ?> </div></div> <?php } ?> <div class='form-group'> <label class="control-label col-sm-4" for="postcode"><?php echo self::required_text(ENTRY_POST_CODE_TEXT) . ENTRY_POST_CODE; ?> </label> <div class='col-sm-8'> <?php echo zen_draw_input_field('postcode', $entry->fields['entry_postcode'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' class="form-control" id="postcode"'); ?> </div></div> <div class='form-group'> <label class="control-label col-sm-4" for="country"><?php echo self::required_text(ENTRY_COUNTRY_TEXT) . ENTRY_COUNTRY; ?> </label> <div class='col-sm-8'> <?php echo zen_get_country_list('zone_country_id', isset($entry->fields['entry_country_id']) ? $entry->fields['entry_country_id'] : $selected_country, 'class="form-control" id="country" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')); ?> </div></div><?php }
?> <input name="update_billing_country" size="45" value="<?php echo zen_html_quotes($order->billing['country']); ?> "> <?php } ?> </td> <td valign="top"><strong><?php echo ENTRY_CUSTOMER_COUNTRY; ?> : </strong></td> <td valign="top"><?php if (is_array($order->delivery['country']) && array_key_exists('id', $order->delivery['country'])) { echo zen_get_country_list('update_delivery_country', $order->delivery['country']['id']); } else { ?> <input name="update_delivery_country" size="45" value="<?php echo zen_html_quotes($order->delivery['country']); ?> "> <?php } ?> </tr> </table> </td></tr></table> <!-- End Addresses Block --> <tr>
?> </td> </tr> <?php } ?> <tr> <td class="main"><?php echo ENTRY_POST_CODE; ?> </td> <td class="main"><?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40')) . ' ' . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>' : ''); ?> </td> </tr> <tr> <td class="main"><?php echo ENTRY_COUNTRY; ?> </td> <?php $selected_country = $_POST['country'] ? $country : SHOW_CREATE_ACCOUNT_DEFAULT_COUNTRY; ?> <td class="main"><?php echo zen_get_country_list('country', $selected_country) . ' ' . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>' : ''); ?> </td> </tr> </table>
</label> <?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode" class="inputlogin"'); ?> </div> <div class="col-lg-12 col-md-12 col-sm-12 col-xs-12 country"> <label class="inputLabel" for="country"> <?php echo ENTRY_COUNTRY; ?> <?php echo zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert-text">' . ENTRY_COUNTRY_TEXT . '</span>' : ''; ?> </label> <?php echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" class="inputlogin" style="width:41.5%" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')); ?> </div> </div> </div> </div> <?php if (ACCOUNT_COMPANY == 'true') { ?> <div class="col-lg-6 col-md-6 col-sm-12 col-xs-12 company-details"> <div class="content"> <h4><?php echo CATEGORY_COMPANY; ?> </h4>
$addresses = $db->execute("select address_book_id, entry_city as city, entry_postcode as postcode, entry_state as state, entry_zone_id as zone_id, entry_country_id as country_id from " . TABLE_ADDRESS_BOOK . " where customers_id = '" . $_SESSION['customer_id'] . "'"); // only display addresses if more than 1 if ($addresses->RecordCount() > 1) { while (!$addresses->EOF) { $addresses_array[] = array('id' => $addresses->fields['address_book_id'], 'text' => zen_address_format(zen_get_address_format_id($addresses->fields['country_id']), $addresses->fields, 0, ' ', ' ')); $addresses->MoveNext(); } $ShipTxt .= '<tr><td colspan="3" class="main" nowrap="nowrap">' . CART_SHIPPING_METHOD_ADDRESS . ' ' . zen_draw_pull_down_menu('address_id', $addresses_array, $selected_address, 'onchange="return shipincart_submit(\'\');"') . '</td></tr>'; } $ShipTxt .= '<tr valign="top"><td class="main">' . CART_SHIPPING_METHOD_TO . '</td><td colspan="2" class="main">' . zen_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />') . '</td></tr>'; } else { // not logged in // $ShipTxt.=zen_output_warning(CART_SHIPPING_OPTIONS_LOGIN); $ShipTxt .= '<tr><td colspan="3" class="main">' . CART_ITEMS . $total_count . '</td></tr>' . "\n\n"; if ($_SESSION['cart']->get_content_type() != 'virtual') { $ShipTxt .= '<tr><td class="main">' . ENTRY_COUNTRY . '</td><td colspan="2" class="main">' . zen_get_country_list('country_id', $selected_country, 'style="width=200"') . '</td></tr>' . "\n\n"; //add state zone_id $state_array[] = array('id' => '', 'text' => PULL_DOWN_SHIPPING_ESTIMATOR_SELECT); $state_values = $db->Execute("select zone_name, zone_id from " . TABLE_ZONES . " where zone_country_id = '{$selected_country}' order by zone_country_id DESC, zone_name"); while (!$state_values->EOF) { $state_array[] = array('id' => $state_values->fields['zone_id'], 'text' => $state_values->fields['zone_name']); $state_values->MoveNext(); } $ShipTxt .= '<tr><td colspan="1" class="main">' . ENTRY_STATE . '</td><td colspan="2" class="main">' . zen_draw_pull_down_menu('state', $state_array) . '</td></tr>'; if (CART_SHIPPING_METHOD_ZIP_REQUIRED == "true") { $ShipTxt .= '<tr><td colspan="1" class="main">' . ENTRY_POST_CODE . '</td><td colspan="2" class="main">' . zen_draw_input_field('zip_code', $selected_zip, 'size="7"') . '</td></tr>'; } // $ShipTxt.=' <a href="_" onclick="return shipincart_submit(\'\');">'.CART_SHIPPING_METHOD_RECALCULATE.'</a></td></tr>'; $ShipTxt .= '<tr><td colspan="3" class="main"><a href="_" onclick="return shipincart_submit(\'\');">' . zen_image_button(BUTTON_IMAGE_UPDATE, BUTTON_UPDATE_ALT) . ' </a></td></tr>'; $ShipTxt .= '<tr><td colspan="3">' . zen_draw_separator('pixel_trans.gif') . '</tr></td>'; }
<label class="inputLabel" title="postcode"><?php echo ENTRY_POST_CODE; ?> </label> <?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' class="fc_input_text_border"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>' : ''); ?> <br class="clearBoth" /> <label class="inputLabel" title="country"><?php echo ENTRY_COUNTRY; ?> </label> <?php echo zen_get_country_list('zone_country_id', $_SESSION['customer_country_id'], 'class="fc_input_text_border" style="width:300px;" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')) . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>' : ''); ?> <br class="clearBoth" /> <?php echo zen_draw_checkbox_field('address_new', '1', false, 'class="address_new"') . TEXT_ADDRESS_NEW; ?> <br class="clearBoth" /> <div class="buttonRow forward"><?php echo zen_draw_hidden_field('fecaction', 'submit') . zen_image_submit(BUTTON_IMAGE_SUBMIT, BUTTON_CONTINUE_ALT); ?> </div> <div class="buttonRow forward"><?php echo zen_image_button(BUTTON_IMAGE_CANCEL, BUTTON_CANCEL_ALT, 'class="cancelChangeShippingAddr"'); ?> </div> <br class="clearBoth" />
echo CART_SHIPPING_OPTIONS; ?> </h2> <?php echo zen_draw_hidden_field('products_id', (int) $_GET['products_id'], 'id="products_id"'); ?> <label class="inputLabel" for="product_qty"><?php echo 'Product QTY: '; ?> </label> <?php echo zen_draw_input_field('product_qty', '1', 'id="product_qty" size="5"'); ?> <label class="inputLabel" for="zone_country_id"><?php echo ENTRY_COUNTRY; ?> </label> <?php echo zen_get_country_list('zone_country_id', $selected_country, 'id="zone_country_id"'); ?> <input type="button" id="shipping_estimator" value="Estimator" /> <br class="clearBoth" /> </div> <div id="productShippingMethods"></div>
$addclass = "hiddenField"; } ?> <div class="<?php echo $addclass; ?> fec-field"> <label class="inputLabel" for="country_shipping"><?php echo ENTRY_COUNTRY; ?> <span class="alert"><?php echo ENTRY_COUNTRY_TEXT; ?> </span></label> <?php echo zen_get_country_list('zone_country_id_shipping', $selected_country_shipping, 'id="country_shipping" ' . ($flag_show_pulldown_states_shipping == true ? 'onchange="update_zone_shipping(this.form);"' : '')) . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '' : ''); ?> </div> <!-- end/country shipping --> <?php if (ACCOUNT_STATE == 'true') { if ($flag_show_pulldown_states_shipping == true) { ?> <div class="fec-field"> <label class="inputLabel" for="stateZoneShipping" id="zoneLabelShipping"><?php echo ENTRY_STATE; ?> <?php
break InnerFour; } } break OuterTwo; }//end if }/* Express Shipping Cost - End */ } } } var shipping_info='<h2 class="blue">Payment methods available in <?php echo addcslashes(STORE_NAME, '\''); ?> :</h2><?php echo $paymentInfoString . addcslashes(PRODUCTS_INFO_POPUP_PAYMENT_METHODS, '\''); ?> '; var payment_option='<h2 class="blue">Shipping Methods:</h2><div class="margin_t gray_bg pad_10px line_180">Shipping To:<br/><?php echo preg_replace("/\n/", "", zen_get_country_list('zone_country_id', $selected_country, 'id="country_id" onchange="return changeShippingCost();" class="select3"')); ?> <br/><div class="fl" style="width:90px;">Qty:<br/><input type="text" class="input3" name="shippingCostQty" value="<?php echo zen_get_products_quantity_order_min($_GET['products_id']); ?> " id="shippingCostQty" onkeyup="value=value.replace(/[^\\d]/g,\'\');changeShippingCost();"/></div><div class="fl" style="width:90px;">Weight:<br/><span id="weight"class="red">Waiting for input</span></div><br class="clear"/>Standard shipping: Normally takes 7 to 10 days.<br/><span id="standard" class="red">Waiting for input</span><br/>Express shipping: Normally takes 2 to 4 days.<br/><span id="express" class="red">Waiting for input</span></div><?php echo addcslashes(PRODUCTS_INFO_POPUP_SHIPPING_METHODS, '\''); ?> </div>'; </script>
} } elseif (!empty($_REQUEST['address_type'])) { $addressType = $_REQUEST['address_type']; $entry = $order->{$addressType}; if (isset($entry['country']['countries_id'])) { $countryId = $entry['country']['countries_id']; } elseif (is_string($entry['country'])) { $countryId = zen_get_country_id($entry['country']); } else { $countryId = NULL; } if (defined('ACCOUNT_STATE') && ACCOUNT_STATE == 'true') { $statePullDown = zen_draw_input_field('state', $entry['state']); $gBitSmarty->assign('statePullDown', $statePullDown); } $gBitSmarty->assign('countryPullDown', zen_get_country_list('country_id', $countryId)); $gBitSmarty->assign_by_ref('address', $entry); $gBitSmarty->display('bitpackage:bitcommerce/order_address_edit.tpl'); } else { print "<span class='alert alert-danger'>Empty Option</span>"; } exit; } require DIR_FS_ADMIN_INCLUDES . 'header.php'; // Put this after header.php because we have a custom <header> when viewing an order define('HEADING_TITLE', 'Order' . (!empty($_REQUEST['oID']) ? ' #' . $_REQUEST['oID'] : 's')); if (!empty($order)) { require BITCOMMERCE_PKG_PATH . 'classes/CommerceProductManager.php'; $productManager = new CommerceProductManager(); $optionsList = $productManager->getOptions(); $optionsList[0] = "Add new order option...";
<label for="country" class="col-xs-12 col-sm-4 col-md-3 control-label"><?php echo ENTRY_COUNTRY; ?> <?php if (zen_not_null(ENTRY_COUNTRY_TEXT)) { ?> <span class="required"><?php echo ENTRY_COUNTRY_TEXT; ?> </span><?php } ?> </label> <div class="col-xs-12 col-sm-8 col-md-9"> <?php echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" class="form-control" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')); ?> </div> </div> <?php if (ACCOUNT_STATE == 'true') { ?> <?php if ($flag_show_pulldown_states == true) { ?> <div class="form-group"> <label for="stateZone" id="zoneLabel" class="col-xs-12 col-sm-4 col-md-3 control-label"><?php echo ENTRY_STATE; ?> <?php
function getCountryInputHtml($pAddressHash) { if (!($selectedCountry = BitBase::getIdParameter($pAddressHash, 'country_id'))) { if (!($selectedCountry = BitBase::getIdParameter($pAddressHash, 'entry_country_id'))) { $selectedCountry = defined('STORE_COUNTRY') ? STORE_COUNTRY : NULL; } } return zen_get_country_list('country_id', $selectedCountry, ' onchange="updateStates(this.value)" '); }
echo zen_draw_input_field('company', $entry->fields['entry_company'], 'id="company"') . (zen_not_null(ENTRY_COMPANY_TEXT) ? '<span class="alert">' . ENTRY_COMPANY_TEXT . '</span>' : ''); ?> <br class="clearBoth" /> <?php } ?> <label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY; ?> </label> <?php if ($process == true) { $entry->fields['entry_country_id'] = (int) $_POST['country']; } echo zen_get_country_list('country', $entry->fields['entry_country_id'], 'id="country"') . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>' : ''); ?> <br class="clearBoth" /> <label class="inputLabel" for="postcode"><?php echo ENTRY_POST_CODE; ?> </label> <?php echo zen_draw_input_field('postcode', $entry->fields['entry_postcode'], 'id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>' : ''); ?> <br class="clearBoth" /> <?php if (ACCOUNT_STATE == 'true') { ?>
<label class="inputLabel" for="postcode"><?php echo ENTRY_POST_CODE; ?> </label> <?php echo zen_draw_input_field('postcode', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"') . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert">' . ENTRY_POST_CODE_TEXT . '</span>' : ''); ?> <br class="clearBoth" /> <label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY; ?> </label> <?php echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')) . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert">' . ENTRY_COUNTRY_TEXT . '</span>' : ''); ?> <br class="clearBoth" /> </fieldset> <fieldset> <legend><?php echo TABLE_HEADING_PHONE_FAX_DETAILS; ?> </legend> <label class="inputLabel" for="telephone"><?php echo ENTRY_TELEPHONE_NUMBER; ?> </label> <?php echo zen_draw_input_field('telephone', '', zen_set_field_length(TABLE_CUSTOMERS, 'customers_telephone', '40') . ' id="telephone"') . (zen_not_null(ENTRY_TELEPHONE_NUMBER_TEXT) ? '<span class="alert">' . ENTRY_TELEPHONE_NUMBER_TEXT . '</span>' : '');
function commerce_country_select($pParams) { return zen_get_country_list($pParams['name'], $pParams['selected']); }
<?php echo zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="alert-text">' . ENTRY_POST_CODE_TEXT . '</span>' : ''; ?> </label> <?php echo zen_draw_input_field('postcode', $entry->fields['entry_postcode'], zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_postcode', '40') . ' id="postcode"'); ?> <br class="clearBoth" /> <label class="inputLabel" for="country"> <?php echo ENTRY_COUNTRY; ?> <?php echo zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="alert-text">' . ENTRY_COUNTRY_TEXT . '</span>' : ''; ?> </label> <?php echo zen_get_country_list('zone_country_id', $entry->fields['entry_country_id'], 'id="country" ' . ($flag_show_pulldown_states == true ? 'onchange="update_zone(this.form);"' : '')); ?> <br class="clearBoth" /> <br class="clearBoth" /> <?php if (isset($_GET['edit']) && $_SESSION['customer_default_address_id'] != $_GET['edit'] || isset($_GET['edit']) == false) { ?> <?php echo zen_draw_checkbox_field('primary', 'on', false, 'id="primary"') . ' <label class="checkboxLabel" for="primary">' . SET_AS_PRIMARY . '</label>'; ?> <?php } ?> </div>
<?php } else { if (!empty($totalsDisplay)) { ?> <div><?php echo $totalsDisplay; ?> </div> <?php } if ($_SESSION['cart']->get_content_type() != 'virtual') { ?> <br/> <div><?php echo ESTIMATOR_SHIPPING_TO; echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" onchange="return shipincart_submit();" class="select3"'); ?> </div> <?php } } if ($_SESSION['cart']->get_content_type() == 'virtual') { echo CART_SHIPPING_METHOD_FREE_TEXT . ' ' . CART_SHIPPING_METHOD_ALL_DOWNLOADS; } elseif ($free_shipping == 1) { echo sprintf(FREE_SHIPPING_DESCRIPTION, $currencies->format(MODULE_ORDER_TOTAL_SHIPPING_FREE_SHIPPING_OVER)); } else { ?> <table width="490" cellpadding="0" cellspacing ="0" class="allborder in_1em margin_t"> <tr> <th scope="col" class="gray_bg" align="left"><?php echo CART_SHIPPING_METHOD_TEXT;
<?php global $gBitCustomer, $gCommerceSystem; if (empty($_template->tpl_vars['address']->value['country_id'])) { $_template->tpl_vars['address']->value['country_id'] = defined('STORE_COUNTRY') ? STORE_COUNTRY : NULL; } if ($gCommerceSystem->isConfigActive('ACCOUNT_STATE')) { if (!empty($_template->tpl_vars['address']->value['country_id'])) { if (!($stateInput = zen_get_country_zone_list('state', $_template->tpl_vars['address']->value['country_id'], !empty($_template->tpl_vars['address']->value['entry_zone_id']) ? $_template->tpl_vars['address']->value['entry_zone_id'] : ''))) { $stateInput = zen_draw_input_field('state', zen_get_zone_name($_template->tpl_vars['address']->value['country_id'], $_template->tpl_vars['address']->value['entry_zone_id'], $_template->tpl_vars['address']->value['entry_state'])); } } else { $stateInput = zen_draw_input_field('state'); } $_template->tpl_vars['stateInput'] = new Smarty_Variable($stateInput); } $_template->tpl_vars['countryPullDown'] = new Smarty_Variable(zen_get_country_list('country_id', $_template->tpl_vars['address']->value['country_id'], ' onchange="updateStates(this.value)" ')); if (isset($_GET['edit']) && $_SESSION['customer_default_address_id'] != $_GET['edit'] || isset($_GET['edit']) == false) { $gBitSmarty->assign('primaryCheck', TRUE); }
</strong> <span class="red">*</span></td> <td colspan="3"> <label class="inputLabel" for="city"></label> <?php echo zen_draw_input_field('city', '', zen_set_field_length(TABLE_ADDRESS_BOOK, 'entry_city', '40') . ' chkrule="nnull/min3" chkname="City" class="l_input" id="city" maxlength="32"'); ?> </tr> <tr> <td align="right"><strong><?php echo ENTRY_COUNTRY; ?> </strong><span class="red">*</span> </td> <td colspan="3"> <?php echo zen_get_country_list('zone_country_id', $entry->fields['entry_country_id'], 'id="country" onchange="update_zone(this.form);" class="l_select" chkname="Country / Region" chkrule="isselect" id="country"'); ?> </td> </tr> <tr id="zone_id_tr" style="display: none;"> <td align="right"><strong><?php echo ENTRY_STATE; ?> </strong></td> <td colspan="3"> <select class="l_select" chkname="State/Province/Region" chkrule="isselect" id="stateZone" name="zone_id"> </select> </td></tr> <tr id="zone_id_tr1" style="" > <td align="right"><strong><?php echo ENTRY_STATE; ?>
?> <div class="cartTotalsDisplay important"><?php echo $totalsDisplay; ?> </div> <?php } if ($_SESSION['cart']->get_content_type() != 'virtual') { ?> <label class="inputLabel" for="country"><?php echo ENTRY_COUNTRY; ?> </label> <?php echo zen_get_country_list('zone_country_id', $selected_country, 'id="country" onchange="update_zone(this.form);"'); ?> <br class="clearBoth" /> <label class="inputLabel" for="stateZone" id="zoneLabel"><?php echo ENTRY_STATE; ?> </label> <?php echo zen_draw_pull_down_menu('zone_id', zen_prepare_country_zones_pull_down($selected_country), $state_zone_id, 'id="stateZone"'); ?> <br class="clearBoth" id="stBreak" /> <label class="inputLabel" for="state" id="stateLabel"><?php echo $state_field_label; ?> </label> <?php
<td class="main"><?php echo ENTRY_POST_CODE; ?> </td> <td class="main"><?php echo zen_draw_input_field('postcode', $entry->fields['entry_postcode']) . ' ' . (zen_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>' : ''); ?> </td> </tr> <tr> <td class="main"><?php echo ENTRY_COUNTRY; ?> </td> <td class="main"><?php echo zen_get_country_list('country', $entry->fields['entry_country_id']) . ' ' . (zen_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>' : ''); ?> </td> </tr> <?php if (isset($_GET['edit']) && $_SESSION['customer_default_address_id'] != $_GET['edit'] || isset($_GET['edit']) == false) { ?> <tr> <td colspan="2" class="main"><?php echo zen_draw_checkbox_field('primary', 'on', false, 'id="primary"') . ' ' . SET_AS_PRIMARY; ?> </td> </tr> <?php } ?>