Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

checkout_shipping_address.php


oscommercenewbie

Recommended Posts

might depend on contributions installed and all but i think you actually want address_book_process.php, on the shipping page you only get to select from adressess you've already entered or optionally add a new one (address_book_process.php again)

 

also create_account.php for new customers not yet adding shipping adresses.

Link to comment
Share on other sites

checkout_shipping_address

checkout_payment_address

create_account

 

I'm attempting to do this same thing. These files you have indicated don't seem to be what I want. There are nothing but Define statements in them. checkout_shipping_address for instance:

 

define('NAVBAR_TITLE_1', 'Checkout');

define('NAVBAR_TITLE_2', 'Change Shipping Address');

 

define('HEADING_TITLE', 'Delivery Information');

 

define('TABLE_HEADING_SHIPPING_ADDRESS', 'Shipping Address');

define('TEXT_SELECTED_SHIPPING_DESTINATION', 'This is the currently selected shipping address where the items in this order will be delivered to.');

define('TITLE_SHIPPING_ADDRESS', 'Shipping Address:');

 

define('TABLE_HEADING_ADDRESS_BOOK_ENTRIES', 'Address Book Entries');

define('TEXT_SELECT_OTHER_SHIPPING_DESTINATION', 'Please select the preferred shipping address if the items in this order are to be delivered elsewhere.');

define('TITLE_PLEASE_SELECT', 'Please Select');

 

define('TABLE_HEADING_NEW_SHIPPING_ADDRESS', 'New Shipping Address');

define('TEXT_CREATE_NEW_SHIPPING_ADDRESS', 'Please use the following form to create a new shipping address to use for this order.');

 

define('TITLE_CONTINUE_CHECKOUT_PROCEDURE', 'Continue Checkout Procedure');

define('TEXT_CONTINUE_CHECKOUT_PROCEDURE', 'to select the preferred shipping method.');

?>

 

I want to be able to change the order of the address fields to match the common order in the US: addr1, addr2, city, state and Postal Code (ZIP). Anytime they have to enter an address, I would like the blank fields to appear in this order. Similiarly, any time they view thei address I would like them to be in this order.

 

Further, I would like to modify the Country dropdown box to only reflect countries we ship to (US and Canada at the moment). Where would I do this?

 

Thanks in advance.

 

-Kevin

Add-Ons personally installed:

Step by Step Manual Order -- Request Reviews -- Reviews in Product Listing -- Reviews in Product Display -- Review Approval System -- Leverage Browser Cache --
Header Tag Controller -- Multilayer SEO Pop Out Menu -- Follow Us Box -- View All Products -- USPS Shipping Labels -- UPS Shipping Labels -- Monthly Sales/Tax Report --
htacess Optimisation -- Remove Unused Images -- Master Password -- Admin Change Customer Password -- Database Backup Manager -- Zero Stock Report --
Searchbox Search In Descriptions -- Easy Populate 2.76i -- Barcode Rendering -- Admin Sort By Model -- Products Purchased Report

Add-Ons personally developed:

Search for email address, etc in Orders -- Discontinue Product

Add-Ons installed by others:

View Counter -- Site Monitor -- Image Thumbnailer -- Database Optimizer -- Recaptcha -- Discount Coupons -- Add More Fields

Link to comment
Share on other sites

I was looking in the wrong directory. I have found the files you referenced. However, I can't seem to get the Postal Code to move correctly. Where, exactly, am I moving it to and from?

 

Thanks.

Add-Ons personally installed:

Step by Step Manual Order -- Request Reviews -- Reviews in Product Listing -- Reviews in Product Display -- Review Approval System -- Leverage Browser Cache --
Header Tag Controller -- Multilayer SEO Pop Out Menu -- Follow Us Box -- View All Products -- USPS Shipping Labels -- UPS Shipping Labels -- Monthly Sales/Tax Report --
htacess Optimisation -- Remove Unused Images -- Master Password -- Admin Change Customer Password -- Database Backup Manager -- Zero Stock Report --
Searchbox Search In Descriptions -- Easy Populate 2.76i -- Barcode Rendering -- Admin Sort By Model -- Products Purchased Report

Add-Ons personally developed:

Search for email address, etc in Orders -- Discontinue Product

Add-Ons installed by others:

View Counter -- Site Monitor -- Image Thumbnailer -- Database Optimizer -- Recaptcha -- Discount Coupons -- Add More Fields

Link to comment
Share on other sites

if you only mean the fields to fill out on a particular page, just open that file and move them. If, however you mean how it's displayed you're looking more at the tep_address_label function which uses a format that's in the database. To the best of my knowledge there's not a 'nice' interface to it, you'll probably need phpMyAdmin.

 

There's a few in there as default, and they look something like:

$firstname $lastname<br>$address<br>$city $state $zipcode<br>$country

 

and you'd just need to adjust that to your liking.

 

 

just found it...address_format is the name of the table.

Link to comment
Share on other sites

I was looking in the wrong directory. I have found the files you referenced. However, I can't seem to get the Postal Code to move correctly. Where, exactly, am I moving it to and from?

 

Thanks.

 

Kevin,

I havent gotten anywhere either. It is not as easy as it appears.

 

If anyone else has done this, please allow us to see the part of the code that you have changed. This would certainly help us in this task.

 

-Allison

Link to comment
Share on other sites

sorry. i was in a hurry when i posted that. find this section:

			  <tr>
			<td class="main"><?php echo ENTRY_POST_CODE; ?></td>
			<td class="main"><?php echo tep_draw_input_field('postcode') . '?' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>
		  </tr>

and move it down below the row for the state, which is a very large row. notice how they are all in rows

<tr>

info

</tr>

like that. move an entire row and place it after a row to keep the proper structure.

 

here's the row for the state from create_account.php

	 <tr>
			<td class="main"><?php echo ENTRY_STATE; ?></td>
			<td class="main">
<?php
if ($process == true) {
  if ($entry_state_has_zones == true) {
	$zones_array = array();
	$zones_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));
	$zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' order by zone_name");
	  while ($zones_values = tep_db_fetch_array($zones_query)) {
	  $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
	}
	echo tep_draw_pull_down_menu('state', $zones_array);
  } else {
	$zones_array = array();
	$zones_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));
	$zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " order by zone_name");
	while ($zones_values = tep_db_fetch_array($zones_query)) {
	$zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
	}
	echo tep_draw_pull_down_menu('state', $zones_array);
  }
} else {
	$zones_array = array();
	$zones_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));
	$zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " order by zone_name");
	while ($zones_values = tep_db_fetch_array($zones_query)) {
	$zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
	}
	echo tep_draw_pull_down_menu('state', $zones_array);
}

if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT;
?>
			</td>
		  </tr>

Link to comment
Share on other sites

  • 4 weeks later...

And can anyone tell me where to change the text "Postal Code:" to "Zip Code:"? I've looked through all the language files and can't find a place to change it anywhere.

 

Thanks.

Link to comment
Share on other sites

  • 1 month later...
sorry. i was in a hurry when i posted that. find this section:
			  <tr>
			<td class="main"><?php echo ENTRY_POST_CODE; ?></td>
			<td class="main"><?php echo tep_draw_input_field('postcode') . ' ' . (tep_not_null(ENTRY_POST_CODE_TEXT) ? '<span class="inputRequirement">' . ENTRY_POST_CODE_TEXT . '</span>': ''); ?></td>
		  </tr>

and move it down below the row for the state, which is a very large row. notice how they are all in rows

<tr>

info

</tr>

like that. move an entire row and place it after a row to keep the proper structure.

 

here's the row for the state from create_account.php

	 <tr>
			<td class="main"><?php echo ENTRY_STATE; ?></td>
			<td class="main">
<?php
if ($process == true) {
  if ($entry_state_has_zones == true) {

Hi,

I found this pst while I was searching for an answer to this same question, but I also wanted to add, is there a way to make the states appear as a list menu, instead of the countries? basically I only ship within the continental US, so that would be my only country listed. It seems a bit sily to have a pul down menu with only one country, but it sure would be nice to have it for the states ('zones').

Any suggestions? Thanks!
	$zones_array = array();
	$zones_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));
	$zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " where zone_country_id = '" . (int)$country . "' order by zone_name");
	  while ($zones_values = tep_db_fetch_array($zones_query)) {
	  $zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
	}
	echo tep_draw_pull_down_menu('state', $zones_array);
  } else {
	$zones_array = array();
	$zones_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));
	$zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " order by zone_name");
	while ($zones_values = tep_db_fetch_array($zones_query)) {
	$zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
	}
	echo tep_draw_pull_down_menu('state', $zones_array);
  }
} else {
	$zones_array = array();
	$zones_array = array(array('id' => '', 'text' => PULL_DOWN_DEFAULT));
	$zones_query = tep_db_query("select zone_name from " . TABLE_ZONES . " order by zone_name");
	while ($zones_values = tep_db_fetch_array($zones_query)) {
	$zones_array[] = array('id' => $zones_values['zone_name'], 'text' => $zones_values['zone_name']);
	}
	echo tep_draw_pull_down_menu('state', $zones_array);
}

if (tep_not_null(ENTRY_STATE_TEXT)) echo ' <span class="inputRequirement">' . ENTRY_STATE_TEXT;
?>
			</td>
		  </tr>

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

I think I wrote my previous message in the wrong place... Anyway, this was my post:

 

Hi,

 

Is there a way to make the states appear as a list menu, instead of the countries? Basically, I only ship within the continental US, so that would be my only country listed. It seems a bit silly to have a pull down menu with only one country, but it sure would be nice to have it for the states ('zones').

 

Any help would be greatly appreciated!

I repeat myself when under stress, I repeat myself when under stress, I repeat myself...

 

--King Crimson (“Discipline”)

Link to comment
Share on other sites

Sorry dont mean to hijack this post but its the nearest i can find to what i need help on..

 

I want to rename Suburb to Town but cant find where i do this..

 

Please help

 

Steve

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...