Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Moving the address lines around


warrenerjm

Recommended Posts

Posted

Hi

 

I am trying to change the address sequence to a UK format. I have moved this line

 

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

to after:

 

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

 

in catalog/includes/modules/checkout_new_address.php & catalog/includes/modules/address_book_details.php

 

In catalog/includes/languages/english.php I have changed "street name" to "House/flat number and street name" & "Suburb" to "second line of address".

 

My problem is the order is:

 

House/flat number and street name

Second line of address

Post Code

Town/City

County

Country

 

Please can you tell me how I can put the Post code to after County?

 

Also, how can I have United Kingdom at the top of the drop down menu or show as default?

 

Thank you for your help.

 

Julie

Posted

In your create_account.php file find

 

<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>

 

 

cut and paste it below

 

 

<tr>

<td class="main"><?php echo ENTRY_COUNTRY; ?></td>

<td class="main"><?php echo tep_get_country_list('country') . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>

</tr>

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted

I have a similar problem. I am trying to change the way addresses are set up in invoces that go out by email.

On email invoices as well as invoices accessed via the admin section addresses are not displayed correclty

 

Addresses in canada are being displayed as:

 

John Smith

12 Walmer Rd

Windsor, P4T 1G3

ON, Canada

 

Instead of the correct way for Canadian addresses notice the Province should be beside the city:

 

John Smith

12 Walmer Rd

Windsor ON, P4T 1G3

Canada

 

US addresses come out

 

 

Dennis Groll

15019 Pumpkin Road

Grass Valley, CA 95545-8310

United States

 

Instead of: (I think)

 

 

Dennis Groll

15019 Pumpkin Road

Grass Valley, CA

95545-8310

United States

 

Any idea on how to change this?

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Posted

Me too!

 

Solved the problem of putting the input fields in the correct order on the forms (covered here anyway), but this doesn't relate to the order of address items that OSC puts them when viewing My Address Book....i.e. postcode is before county, whereas i want it after county.

 

hope someone out there can provide the answer.......

Posted

Anybody know where to edit the format and content of the email invoices?

What files to edit?

 

I'm trying to change around the way addresses are displayed.

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Posted
See this thread...

 

http://www.oscommerce.com/forums/index.php?showtopic=201251&hl=

 

Especially posts #6 and #8

 

Here's the UK contribution...

http://www.oscommerce.com/community/contributions,2816

 

Post #8 tells you how to adjust the invoice address format by the way (I expect this is also included in the 'UK' contribution too).

 

Rich.

 

THanks for the info I'll check it out.

Backup before making changes. Backup before making changes! Backup before making changes!!

 

You did do a backup? eh?

Archived

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

×
×
  • Create New...