Questions tagged [regions]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0
votes
1answer
29 views

Magento 2 Update Ragion/State in Database

I found some regions in a specific countries are obsolete and new ones are missing. I know how to add region by installData.php in a custom module but i dont know how to remove the obsolete ones. ...
0
votes
1answer
39 views

magento 2: how to display region name in dropdown

Hi to all I added Italian region name in magento db by SQL in directory_country_region as follows: INSERT INTO directory_country_region(country_id, code, default_name) VALUES ('IT', 'TO', 'Torino'); ...
0
votes
2answers
67 views

How to get all state code in magento 2.1.7?

I am passing the parameters as 'recipientstate' => $customer['region'] and 'cardholderstate' => $customerbilling['region'] Right now I am getting the region value's as ARIZONA , but I want it ...
2
votes
2answers
495 views

How to get Region text from address id (Magento 2)

I am not able to get region text from address id, <?php $_pAddsses = $block->getDefaultBilling() ?> <?php echo $block->getAddressById($_pAddsses)->getRegionId() ?> // ...
0
votes
0answers
18 views

Restrict regions on Shipping Address checkout

Does Magento have any way to select which regions show and what not on region_id dropdown? But only on Checkout's Shipping Address dropdown, on My Account Edit/Add Address and Billing Address I want ...
4
votes
1answer
961 views

region Id error on updating address using address Id in magneto2

I followed below link to update address using address id Update customer address using address id in magento 2 I am getting this error upon executing this code protected $addressRepository; public ...
0
votes
1answer
436 views

How to display regions list sorted by region_id

Thank you for making your attention to my question. I'd like to show Region List ordered by region_id on the DB with RegionUpdater. Currently its ordered by Region's name alphabet. I tried to ...
0
votes
2answers
351 views

Magento 2 : How to Disable/Enable Custom Shipping Method Based on State / Region

I want to show my custom shipping method based on state/region.
0
votes
2answers
482 views

How to set default value to region(state) in checkout page magento 2.1..?

I need to set a default value for the region(state) in the checkout page. tried it using jQuery. it's showing the value the field but it's not saving. require([ 'jquery', 'jquery/ui'], function($){ ...
1
vote
0answers
294 views

How to use region updater in magento 2 custom module?

I am working on the region updater in magento 2. Region Field needs to change based on the selection of country. Below is my region updater code: var billingRegionUpdater = new RegionUpdater('#...
2
votes
1answer
2k views

Show State/Province code in address

When a customer make an order, in the shipping and billing address appears the extended Province name (for example "Lecce"). Is it possible to show the Region code "LE" instead of the Region name "...
1
vote
1answer
318 views

Register customer region to State/Province table

I'm fairly new to Magento and I'm not quite sure how to add a State/Province field to the register.phtml form. I read somewhere that it's not a good idea to edit this file since it gets wiped whenever ...
0
votes
1answer
444 views

multiple Region/State in configuration

How to get multiple Region/State in Configuration in the same tab. `<region_id translate="label"> <label>Region/State</label> ...
1
vote
1answer
438 views

Character encoding in region list

I've just imported a big list of regions/states to the Magento table directory_country_region as UTF8 However, in the region/state box at checkout I now see encoding issues for many special ...
0
votes
1answer
407 views

Regions dropdown in account creation form

I have added additional country regions to Magento's directory_country_region and directory_country_region_name tables. My understanding is that when a country is selected for which regions are stored ...
1
vote
1answer
560 views

Payment methods based on billing region?

What I need to do is to display different payment methods based on billing regions. Magento has built in the option to display different payment methods based on the country. So my question is this ...
2
votes
2answers
1k views

Customer shipping and billing display only one state and hide other states

I am developing an application where the customer is in Canada and the state Quebec only (no other states of Canada). I wanted to make the customer choose only Quebec state and always Quebec only. I ...