Countries & Regions Bug! Regions are shown wrong way!

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
6 years ago
Hello!

Recently have installed nopCommerce 3.90... Started configuring the site...

Now, added a pick-up point... But... There is a bug in Regions.

I have 2 languages in my site: Russian and English. The problem is that when the Russian language is selected, in pickup-points country name and city name are shown correctly, but region name comes in English and it is the wrong region!!! I went to countries in admin area and tried to check English tab... It is empty!

So, where are those English region names coming from?

For example, I choose — "Россия" (Russia) in country (страна), then I select — "Крым" (Crimea) in region (край/область), then I type the city in russian — "Крым".

But when I go to front side... Russian lang is selected... I see following — "Крым Midtjylland Россия"!

It has to show "Крым" instead "Midtjylland"...! Where does that "Midtjylland" come from!??

The same happens if I choose another regions...

How to fix it? Where to change it?

Thanks.
6 years ago
See why it's done in the "PrepareShippingAddressModel" method of \Nop.Web\Factories\CheckoutModelFactory.cs. I presume you have this value entered on the "Standard" tab of the state details page.

But I've found some other issue. Country and state names should use localizable values (now we use standard ones) - https://github.com/nopSolutions/nopCommerce/issues/2398
6 years ago
So, is there any way to fix it now or not?

I guess it was a bad idea to upgrade nopCommerce, right..? Too many bugs?
6 years ago
a.m. wrote:
I presume you have this value entered on the "Standard" tab of the state details page.


I have downloaded states-pack and just imported it in countries.

In states only "Standard" tabs have values...
6 years ago
I cannot reproduce it. It works fine out of the box. Please debug "PrepareShippingAddressModel" method of \Nop.Web\Factories\CheckoutModelFactory.cs and see why it returns "Midtjylland"
6 years ago
And done. You can see the changes in this commit.
Thanks for the suggestion.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.