Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Remove the customers country from all pages


jhande

Recommended Posts

Posted

I only sell to customers in the USA.

 

The country selection has been removed from the create account page.

 

But everywhere in the site it still adds the country - "United States of America".

 

Is there an easy way to remove just the country from all pages and correspondence?

 

 

 

 

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted

Yes Nic, such pages as:

 

Catalog side

account.php

account_history_info.php

address_book.php

checkout_shipping.php

checkout_payment.php

checkout_confirmation.php

 

Admin side

Customers > Orders > Edit =

orders.php (Customer, Shipping Address, Billing Address)

invoice.php (Sold To, Ship To)

packingslip.php (Sold To, Ship To)

 

Not sure if I missed any.

 

I was wondering if there was a way to remove the country maybe from it's origin?

It seems that most of the pages are just calling for - tep_address_format

 

blush.gif

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

  • 4 weeks later...
Posted

I only sell to customers in the USA.

 

The country selection has been removed from the create account page.

 

But everywhere in the site it still adds the country - "United States of America".

 

Is there an easy way to remove just the country from all pages and correspondence?

 

 

 

 

 

There is table named countries in osCommerce.

If you remove other countries from that table using mysql script or manually that will sort it out.

 

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

Jim, remove $country from the address_format and address_summary rows in the address_format table, using phpmyadmin.

Posted

Thank you!

 

I will give that a try soon.

 

I was going nuts trying to edit the functions\general.php files. blush.gif

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted

editing the table will help with the outputted complete address labels ... it will not remove the country info from the entry forms. neither from the form validation areas ...

 

so the answer is: there is no supereasy way, some manual work is needed ;-)

:-)

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

Posted

how very nice of you, Gary!

:-)

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

Posted

Monika - it is good to see you back! Welcome.

It is very good to see you around here again. I hope all is going well for you. :rolleyes:

Posted

much much better, many thx. gosh, we are hijacking a thread ;-) *blush*

:-)

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

Posted

Welcome back Monica!

 

Hijack away... thumbsup.gif

 

Thank you for the reply.

 

 

 

smile.gif

 

 

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted

much much better, many thx. gosh, we are hijacking a thread ;-) *blush*

My apologies to Jim for my off-topic post too but I just noticed you starting to post again. I'm very pleased to see you back and am glad to hear you are well. Your talents and insightful replies have been missed.

Support Links:

For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc.

All of My Addons

Get the latest versions of my addons

Recommended SEO Addons

Posted

No apologies necessary!

 

It has been a very long time since we all have seen Monika here.

It is very nice to have her back and to hear she is doing well.

 

Please feel free to chat away folks!

 

thumbsup.gif

- :: Jim :: -

- My Toolbox ~ Adobe Web Bundle, XAMPP & WinMerge | Install ~ osC v2.3.3.4 -

Posted

Sniff ... honestly, you guys are just great. I have missed you all.

:-)

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

Posted

Hi Monica,

Nice to see you here.

 

Best luck.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Archived

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

×
×
  • Create New...