Set default country

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

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.

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

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

Check these queries:

or:

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