Skip to main content
Notice removed Authoritative reference needed by CommunityBot
Bounty Ended with Alexey Enikov's answer chosen by CommunityBot
Tweeted twitter.com/StackMagento/status/694485862541836289

Magento 2, How regionUpdater is working  ?

I'm trying to figure out how regionUpdater is working onregionUpdater works in Magento 2. Region UpdaterRegion Updater is that when you select a country, magento reload regionMagento reloads the region field dependdepending on which country was selected.

I went to magento checkoutMagento's Checkout module then saw regionUpdater jsregionUpdater Javascript file in this path:

\vendor\magento\module-checkout\view\frontend\web\js\region-updater.js

Then I gowent to my browser then tryand tried to put some breakpoints to it but I cannot see regionUpdater.jsregionUpdater.js is included. I tried many wayways to figure out how it is working but cannot understand it.

My purpose is I'm going to implement cityUpdatera **cityUpdater function that help magentoMagento reload the city field based on the region field - the same way as regionUpdater.

Can any help me figure out it ?. I really appreciate your helpregionUpdater.

Magento 2, How regionUpdater is working  ?

I'm trying to figure out how regionUpdater is working on Magento 2. Region Updater is that when you select country, magento reload region field depend on which country was selected.

I went to magento checkout module then saw regionUpdater js file in this path:

\vendor\magento\module-checkout\view\frontend\web\js\region-updater.js

Then I go to browser then try to put some breakpoints to it but I cannot see regionUpdater.js is included. I tried many way to figure out how is working but cannot understand.

My purpose is I'm going to implement cityUpdater function that help magento reload city field based on region field same as regionUpdater.

Can any help me figure out it ?. I really appreciate your help.

Magento 2, How regionUpdater is working?

I'm trying to figure out how regionUpdater works in Magento 2. Region Updater is when you select a country, Magento reloads the region field depending on which country was selected.

I went to Magento's Checkout module then saw regionUpdater Javascript file in this path:

\vendor\magento\module-checkout\view\frontend\web\js\region-updater.js

I went to my browser and tried to put some breakpoints to it but I cannot see regionUpdater.js is included. I tried many ways to figure out how it is working but cannot understand it.

My purpose is I'm going to implement a **cityUpdater function that help Magento reload the city field based on the region field - the same way as regionUpdater.

Notice added Authoritative reference needed by HungDQ
Bounty Started worth 50 reputation by HungDQ
Source Link
HungDQ
  • 812
  • 10
  • 31

Magento 2, How regionUpdater is working ?

I'm trying to figure out how regionUpdater is working on Magento 2. Region Updater is that when you select country, magento reload region field depend on which country was selected.

I went to magento checkout module then saw regionUpdater js file in this path:

\vendor\magento\module-checkout\view\frontend\web\js\region-updater.js

Then I go to browser then try to put some breakpoints to it but I cannot see regionUpdater.js is included. I tried many way to figure out how is working but cannot understand.

My purpose is I'm going to implement cityUpdater function that help magento reload city field based on region field same as regionUpdater.

Can any help me figure out it ?. I really appreciate your help.