Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Format of the address during checkout


dailce

Recommended Posts

How do I change the Format of the address during checkout.

 

checkout_shippng.php it looks like:

 

JOHN DOE

67 SOME ROAD.

CITY, POSTAL CODE

PROVINCE, COUNTRY

 

I want it to look like:

 

JOHN DOE

67 SOME ROAD.

CITY, PROVINCE

POSTAL CODE

COUNTRY

 

Same for the address on checkout_payment.php and checkout_confirmation.php

 

Thanks

Link to comment
Share on other sites

How do I change the Format of the address during checkout.

 

checkout_shippng.php it looks like:

 

JOHN DOE

67 SOME ROAD.

CITY, POSTAL CODE

PROVINCE, COUNTRY

 

I want it to look like:

 

JOHN DOE

67 SOME ROAD.

CITY, PROVINCE

POSTAL CODE

COUNTRY

 

Same for the address on checkout_payment.php and checkout_confirmation.php

 

Thanks

 

address types are defined in the database ... and which one to use is defined in the main language file, like english.php

 

if you want to make changes, you either create a new type in the database, or you change an existing one.

 

# 1 - Default, 2 - USA, 3 - Spain, 4 - Singapore, 5 - Germany
INSERT INTO address_format VALUES (1, '$firstname $lastname$cr$streets$cr$city, $postcode$cr$statecomma$country','$city / $country');
INSERT INTO address_format VALUES (2, '$firstname $lastname$cr$streets$cr$city, $state	$postcode$cr$country','$city, $state / $country');
INSERT INTO address_format VALUES (3, '$firstname $lastname$cr$streets$cr$city$cr$postcode - $statecomma$country','$state / $country');
INSERT INTO address_format VALUES (4, '$firstname $lastname$cr$streets$cr$city ($postcode)$cr$country', '$postcode / $country');
INSERT INTO address_format VALUES (5, '$firstname $lastname$cr$streets$cr$postcode $city$cr$country','$city / $country');

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

I notice I can change them through admin. If there a way to do them all at once?

 

$firstname $lastname$cr$streets$cr$city$cr$postcode - $statecomma$country','$state / $country'

 

What does $cr mean?????

Link to comment
Share on other sites

I notice I can change them through admin. If there a way to do them all at once?

 

$firstname $lastname$cr$streets$cr$city$cr$postcode - $statecomma$country','$state / $country'

 

What does $cr mean?????

 

it means start a new line

:-)

Monika

 

addicted to writing code ... can't get enough of databases either, LOL!

 

my toolbox: Textpad - Compare and Merge - phpMyAdmin - WS_FTP - Photoshop - How to search the forum

 

Interactive Media Award July 2007 ~ category E-Commerce

my advice on the forum is for free, PMs where you send me work are considered consultation which I charge for ...

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...