Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Create Account


Guest

Recommended Posts

Posted

In Create Account I want to change the order of:

 

Street Address: *

Suburb:

Post Code: *

City: *

State/Province: *

 

Change order to:

 

Street Address: *

Suburb:

City: *

State/Province: *

Post Code: *

 

Also I would like to default Country drop box to UK.

 

Anyone? :thumbsup:

Posted

BACKUP create_account.php first:

 

FIND AND COPY:

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

 

MOVE AFTER:

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

 

DELETE FROM ORIGINAL POSITION.

 

 

Good Luck,

V6 :thumbsup:

Posted
BACKUP create_account.php first:

 

FIND AND COPY:

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

 

MOVE AFTER:

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

 

DELETE FROM ORIGINAL POSITION.

Good Luck,

V6 :thumbsup:

 

Worked a treat! Thanks

 

Any idea how I get the drop box for country to default to UK?

 

Cheers

Posted

Missed that part...

 

catalog/create_account.php

FIND:

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

 

CHANGE TO:

 

<tr>
<td class="main"><?php echo ENTRY_COUNTRY; ?></td>
<td class="main"><?php echo tep_get_country_list[b]('country',222)[/b] . ' ' . (tep_not_null(ENTRY_COUNTRY_TEXT) ? '<span class="inputRequirement">' . ENTRY_COUNTRY_TEXT . '</span>': ''); ?></td>
</tr>

 

Good Luck,

V6 :thumbsup:

Posted

My previous post has some errors in it. I was trying to highlight the portions that were changes by bolding them, but since it was wrapped already in a CODE tag, that did't work well. So remove each

 [b] and [/b]

tag and it will work fine.

Posted

V6 - You ARE the man!

 

Thank you so much - I'm trying to learn php and finding it quite interesting :)

Archived

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

×
×
  • Create New...