Jump to content

Recommended Posts

I use 2.3.4.1 CE BS frozen version.

How can I make a country choosen by deafult in the drop down list with countries ?

Share this post


Link to post
Share on other sites

The usual approach is to edit the field definition in create_account and make it default to the country of the store

        echo tep_get_country_list('country', STORE_COUNTRY, 'required aria-required="true" aria-describedby="atCountry" id="inputCountry"');

If you want to use a different country, substitute the country_id for STORE_COUNTRY


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites
14 minutes ago, BrockleyJohn said:

The usual approach is to edit the field definition in create_account and make it default to the country of the store


        echo tep_get_country_list('country', STORE_COUNTRY, 'required aria-required="true" aria-describedby="atCountry" id="inputCountry"');

If you want to use a different country, substitute the country_id for STORE_COUNTRY

Many thanks, that worked out great!

Share this post


Link to post
Share on other sites

If your country has a list of states, it's worth sorting out that bit too


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites
3 minutes ago, BrockleyJohn said:

If your country has a list of states, it's worth sorting out that bit too

It i Sweden so need for that. But thanks for advice.

Share this post


Link to post
Share on other sites

@KurreIf you offer more than one country, I suggest you install the Country-State selector. It will fill in the states for whichever country is chosen and, more importantly, fixes a problem that exists in all oscommerce shops.

Share this post


Link to post
Share on other sites
1 hour ago, Jack_mcs said:

@KurreIf you offer more than one country, I suggest you install the Country-State selector. It will fill in the states for whichever country is chosen and, more importantly, fixes a problem that exists in all oscommerce shops.

...and avoids any core code changes. But more work than the quick fix!


For a new install or if your store isn't mobile-friendly, get the community-supported responsive osCommerce (Phoenix).

here: on the official osc download page

Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x

Share this post


Link to post
Share on other sites
1 hour ago, Jack_mcs said:

@KurreIf you offer more than one country, I suggest you install the Country-State selector. It will fill in the states for whichever country is chosen and, more importantly, fixes a problem that exists in all oscommerce shops.

This was for a client of mine, she doesn't sell to countries with states.

Share this post


Link to post
Share on other sites
10 minutes ago, Kurre said:

This was for a client of mine, she doesn't sell to countries with states.

The word states in this context refers to that box on the page. It fills in what would normally be entered there that is specific to the chosen country.

Share this post


Link to post
Share on other sites
2 minutes ago, Jack_mcs said:

The word states in this context refers to that box on the page. It fills in what would normally be entered there that is specific to the chosen country.

Ok, maybe I should try it out then 😀

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×