Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Help with moving Post Code after State


Sharon_U

Recommended Posts

Posted

Hi, I've followed many suggestions to modify and customize my new websiste. Every day I learn something here! I'm currently needing help with the create account portion moving the input field for Post Code to below the State and eliminating or commenting out the country input.

 

Any someone please give me a tip? I've looked in several .php files and I'm eager to learn where I missed making this modification.

 

Sincerely,

Sharon :rolleyes:

Posted

Have a look in /catalog/create_account.php and find ENTRY_POST_CODE, ENTRY_STATE and ENTRY_COUNTRY within the html body text section. Try commenting out and copy/paste until you get what you're after.

 

Cheers.

Posted
Hi, I've followed many suggestions to modify and customize my new websiste. Every day I learn something here! I'm currently needing help with the create account portion moving the input field for Post Code to below the State and eliminating or commenting out the country input.

 

Any someone please give me a tip? I've looked in several .php files and I'm eager to learn where I missed making this modification.

 

Sincerely,

Sharon :rolleyes:

 

 

In your create_account.php file look for the following

 

<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 this below the similiar code for the state

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

  • 1 year later...
Posted

I got this working in create_account, but I discovered that if a customer chooses to have his/her order shipped to a different address. the zip shows up there before the State as well. Any one solved this one too?

Posted
I got this working in create_account, but I discovered that if a customer chooses to have his/her order shipped to a different address. the zip shows up there before the State as well. Any one solved this one too?

You need to change it in any place that it appears.

 

Have a look at address_book.php

 

To be sure where else, just download the uk based osc from the addons area. Only use it to see where to make changes, do not use it to overwrite or update files. You are only using to get an idea of where to make changes.

Posted
You need to change it in any place that it appears.

 

Have a look at address_book.php

 

To be sure where else, just download the uk based osc from the addons area. Only use it to see where to make changes, do not use it to overwrite or update files. You are only using to get an idea of where to make changes.

 

Thanks!

Archived

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

×
×
  • Create New...