# Batch adding multiple countries?

**URL:** <https://forum.litium.com/t/batch-adding-multiple-countries/1518>\
**Category:** Questions\
**Created:** [June 4, 2020, 7:39am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518 "2020-06-04T07:39:12Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakob.twedmark](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jakob.twedmark](https://forum.litium.com/u/jakob.twedmark)\
**Post date:** [June 4, 2020, 7:39am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/1 "2020-06-04T07:39:12Z")

</div>

We’re going global for one of our clients, and we’re planning on using two channels:

- Swedish (swedish lang, currency SEK)
- Global (english lang, currency EUR)

The payment and delivery options are the same for all countries.  
Now, the question is: how can we easily add all countries on the global channel? Manually adding them, one by one, will take forever, so I hope there is another way. 🙂

Litium version: 7

---

<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 4, 2020, 8:05am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/2 "2020-06-04T08:05:29Z")

</div>

I don’t know how many countries you are talking about but you could run it as a startup task to create countries and add them to the Channel.

---

<div class="post-metadata">

**Author:** ![jakob.twedmark](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jakob.twedmark](https://forum.litium.com/u/jakob.twedmark)\
**Post date:** [June 4, 2020, 8:06am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/3 "2020-06-04T08:06:53Z")

</div>

180 countries or so.

---

<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 4, 2020, 8:11am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/4 "2020-06-04T08:11:59Z")

</div>

Are you going to use different tax rates for different countries?

---

<div class="post-metadata">

**Author:** ![jakob.twedmark](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jakob.twedmark](https://forum.litium.com/u/jakob.twedmark)\
**Post date:** [June 4, 2020, 8:14am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/5 "2020-06-04T08:14:18Z")

</div>

For B2C sales we’ll need to deduct tax for orders outside of EU.

---

<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 4, 2020, 8:18am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/6 "2020-06-04T08:18:03Z")

</div>

Not sure you need to add all these countries if Payment, Delivery, Pricelist, Currency and Inventory is the same, then it’s better to have another logic on inside EU and outside EU instead to handle the Tax.

---

<div class="post-metadata">

**Author:** ![jakob.twedmark](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jakob.twedmark](https://forum.litium.com/u/jakob.twedmark)\
**Post date:** [June 4, 2020, 8:24am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/7 "2020-06-04T08:24:49Z")

</div>

OK, but we need some logic to send the country to Klarna Checkout. I believe we need a dropdown (pre-selected with GEO-ip country) in the checkout, and that country is then sent to Klarna.  
And for that logic I guess that would require the countries to exist in Litium?

---

<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 4, 2020, 8:34am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/8 "2020-06-04T08:34:11Z")

</div>

You can choose your country in the Checkout page from dropdown so the countries there are the standard ones that exists in BO when you try to add one.

---

<div class="post-metadata">

**Author:** ![jakob.twedmark](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jakob.twedmark](https://forum.litium.com/u/jakob.twedmark)\
**Post date:** [June 4, 2020, 8:37am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/9 "2020-06-04T08:37:37Z")

</div>

There aren’t more than a few countries in backoffice, so we still need to manually add all the countries first?

---

<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 4, 2020, 9:07am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/10 "2020-06-04T09:07:21Z")

</div>

You do not need to create countries in BO for having a DropDown with all countries in the Checkout page, Litium uses the standard .net classes for countries.

---

<div class="post-metadata">

**Author:** ![jakob.twedmark](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jakob.twedmark](https://forum.litium.com/u/jakob.twedmark)\
**Post date:** [June 4, 2020, 9:32am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/11 "2020-06-04T09:32:28Z")

</div>

OK! After some evaluation we decided to start with 30-40 countries, and also add a new currency for USD. That way we’ll add those to Litium and configure settings.

But we won’t add them to the channel, since they will all use the same payment method and delivery method.

That would work, right? 🙂

---

<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 4, 2020, 9:43am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/12 "2020-06-04T09:43:04Z")

</div>

If you don’t add them to the used Channel then you will not be able to fetch all countries connected to your current used channel in case you need to fetch any information inside or connected to the Country object.

---

<div class="post-metadata">

**Author:** ![jakob.twedmark](https://avatars.discourse-cdn.com/v4/letter/j/4da419/32.png) [@jakob.twedmark](https://forum.litium.com/u/jakob.twedmark)\
**Post date:** [June 4, 2020, 9:48am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/13 "2020-06-04T09:48:05Z")

</div>

We’ll display all countries on this Global channel, but the selected country sets the currency. Do we need it on the channel for that purpose?

---

<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 4, 2020, 9:54am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/14 "2020-06-04T09:54:47Z")

</div>

Accelerator uses FirstOrDefault country you can take a look at this earlier query:

> [@Accelerator and countries connected to channel](https://forum.litium.com/t/accelerator-and-countries-connected-to-channel/1228/5):
>
> Hi, Check the controller base. There we are setting the channel and country. You can use the same method to set the selected country in the cart.

---

<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 2, 2020, 9:54am UTC](https://forum.litium.com/t/batch-adding-multiple-countries/1518/15 "2020-07-02T09:54:53Z")

</div>

Closed on July 2, 2020, 9:54am UTC

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