Kurre Posted January 13, 2020 Share Posted January 13, 2020 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 ? Link to comment Share on other sites More sharing options...
BrockleyJohn Posted January 13, 2020 Share Posted January 13, 2020 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 Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
Kurre Posted January 13, 2020 Author Share Posted January 13, 2020 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! Link to comment Share on other sites More sharing options...
BrockleyJohn Posted January 13, 2020 Share Posted January 13, 2020 If your country has a list of states, it's worth sorting out that bit too Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
Kurre Posted January 13, 2020 Author Share Posted January 13, 2020 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. Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 13, 2020 Share Posted January 13, 2020 @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. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
BrockleyJohn Posted January 13, 2020 Share Posted January 13, 2020 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! Contact me for work on updating existing stores - whether to Phoenix or the new osC when it's released. Looking for a payment or shipping module? Maybe I've already done it. Working on generalising bespoke solutions for Quickbooks integration, Easify integration and pay4later (DEKO) integration at 2.3.x Link to comment Share on other sites More sharing options...
Kurre Posted January 13, 2020 Author Share Posted January 13, 2020 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. Link to comment Share on other sites More sharing options...
Jack_mcs Posted January 13, 2020 Share Posted January 13, 2020 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. Support Links: For Hire: Contact me for anything you need help with for your shop: upgrading, hosting, repairs, code written, etc. Get the latest versions of my addons Recommended SEO Addons Link to comment Share on other sites More sharing options...
Kurre Posted January 13, 2020 Author Share Posted January 13, 2020 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 😀 Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.