Search

Index

Revindex Storefront

How to set default country

Last updated on 2016-06-05 1 mins. to read

Revindex Storefront will default to the user profile's country if available. Starting with Storefront 9.0 and above, you can easily configure the default country under Configuration > General settings. If no default country is set, it will use the default country set under the DNN Profile properties. It will also default to the state/region if the user has state/region saved in his DNN profile. Otherwise, the state/region is listed alphabetically.

For older Storefront, you can follow the steps below to configure the default DNN profile country.

For DNN 7.3 and below, to set the default country, go to your Admin > User Accounts page and click on Manage Profile Properties and select Country. For example, set the Default Value = "US" for United States without the quotes.

For DNN 7.4 and higher, to set the default country, you must first obtain the EntryID number from the database by performing a SQL query. You can issue the query from the Host > SQL page as superuser.

SELECT EntryID, [Text] FROM Lists WHERE ListName = 'Country' ORDER BY [Text]

Take note of the EntryID number for your desired country. Go to your Admin > Site Settings page and look under Profile Settings and select Country. For example, set the Default Value to "221" for United States without the quotes.

Comments

Larry Ginn Aug 05, 2015 2:40 PM
Actually, in 7.4 you still have to use the country abbreviation (i.e.- US). The number as default does not work.
Randy Hill Feb 01, 2016 9:27 PM
Yea, neither of these work.  I have tried both the number and the abbreviation.  It still comes up as Afganistan in the checkout.  Is there a new way this needs to be handled?
Mike Feb 08, 2016 4:41 PM
I am using  DNN 07.04.02 (216) and I tried using 221 and US in the default and it did not do anything.  This fix isn't working.  We need United States to be the default.
Stephen Lim Mar 15, 2016 4:06 PM
Please try upgrading to the latest Storefront 7.5. There was a fix put in to recognize the recent slight API changes in DNN 7.4.2.
Stephen Lim Jun 05, 2016 11:06 AM
The latest Storefront 9.0 makes it easy to set your default country under Configuration > General settings!

Powered by Revindex Wiki