# Set default country

**URL:** <https://forum.litium.com/t/set-default-country/2091>\
**Category:** Questions\
**Tags:** litium-7\
**Created:** [June 7, 2021, 8:44am UTC](https://forum.litium.com/t/set-default-country/2091 "2021-06-07T08:44:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![adam.clettborn](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/adam.clettborn/32/956_2.png) [@adam.clettborn](https://forum.litium.com/u/adam.clettborn)\
**Post date:** [June 7, 2021, 8:44am UTC](https://forum.litium.com/t/set-default-country/2091/1 "2021-06-07T08:44:17Z")

</div>

Hi,

I’m having a problem regarding countries connected to a channel.  
The selected country is always the first one from the country list. How can I change what country is selected as default?

In my case, I had Sweden as the only option. Then I added Norway, with the same delivery and payment methods. Now, Norway is selected as default, as it comes before Sweden alphabetically.

Litium version: 7.6.2

---

<div class="post-metadata">

**Author:** ![Ericsj11](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/ericsj11/32/899_2.png) [@Ericsj11](https://forum.litium.com/u/Ericsj11)\
**Post date:** [June 7, 2021, 9:03am UTC](https://forum.litium.com/t/set-default-country/2091/2 "2021-06-07T09:03:19Z")

</div>

Just a guess, but try to change it in ControllerBase.cs. I have no experience with this case specficly, but it looks like it might be there you can set it.

```auto
countryId = channel.CountryLinks.FirstOrDefault()?.CountrySystemId;

```

---

<div class="post-metadata">

**Author:** ![adam.clettborn](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/adam.clettborn/32/956_2.png) [@adam.clettborn](https://forum.litium.com/u/adam.clettborn)\
**Post date:** [June 7, 2021, 9:06am UTC](https://forum.litium.com/t/set-default-country/2091/3 "2021-06-07T09:06:09Z")

</div>

Good guess, but already tried that 😛  
The country is already set in the OrderCarrier when it reaches the ControllerBase.

---

<div class="post-metadata">

**Author:** ![steve.redstorm](https://yyz2.discourse-cdn.com/flex030/user_avatar/forum.litium.com/steve.redstorm/32/14_2.png) [@steve.redstorm](https://forum.litium.com/u/steve.redstorm)\
**Post date:** [June 7, 2021, 9:54am UTC](https://forum.litium.com/t/set-default-country/2091/4 "2021-06-07T09:54:48Z")

</div>

Check these queries:

> [@Accelerator and countries connected to channel](https://forum.litium.com/t/accelerator-and-countries-connected-to-channel/1228/6):
>
> Thanks! It looks like first country connected to channel is set on the cart but looking at the cart object it looks like that there is no country on cart but there is on cart.OrderCarrier. In accelerator checkout for delivery methods and perhapps in other places the same is done all over againg without checking the cart country. But i would conclude this as the accelerator has no support for multiple countries on one channel but is possible to fix in the project. \_requestModelAccessor.Request…

or:

> [@Shoppingcart with two channels and one domain](https://forum.litium.com/t/shoppingcart-with-two-channels-and-one-domain/546):
>
> We have a Litium 7.0.1 solution with Acclerator 7.0.1 and we will be using one domain with multiple channels. [domain.com](http://domain.com) (Channel 1) (culture sv-se, currency, SEK, connected to pricelist) [Website Domain Names, Online Stores & Hosting - Domain.com](http://domain.com/en) (Channel 2) (culture en-us, currenct EUR, no connected pricelists) This setup result is both channels sharing the same shoppingcart and the cart isn’t updated switching between the channels. The first visited channels defines the shoppingcart so if i…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex030/uploads/litium/original/1X/12eddac3b8b661de1db86af10ac8151b571e6fb9.png) [@system](https://forum.litium.com/u/system)\
**Post date:** [July 5, 2021, 9:54am UTC](https://forum.litium.com/t/set-default-country/2091/5 "2021-07-05T09:54:55Z")

</div>

Closed on July 5, 2021, 9:54am UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
