Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [state]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
2 answers
44 views

How to show abbreviations of State/Province instead of Full names in Magento 2

In Magento 2 customer account create I want to show abbreviations of State/Province instead of Full names. So far I have changed this code but it is not working. /vendor/magento/module-directory/Model/...
ishaq's user avatar
  • 195
2 votes
1 answer
154 views

Change Active filter position Magento 2

I want to update the Active filter position from left side to right side just above the product listing. Please guide me how can i do that. Current Position: On left side Required Position: I want to ...
Sunny Rahevar's user avatar
0 votes
0 answers
60 views

How do i add an empty option to state value in magento2 checkout page?

I'm working on customizing the Magento 2 checkout page, and I need to add an empty option to the state field in the billing address section. I want this empty option to be displayed as the first ...
Haerriz's user avatar
  • 681
2 votes
0 answers
104 views

Magento 2 | Prevent saving the completed state on the order

In Magento2, when the payment of the order is made by credit card, the invoice is immediately generated. This involves saving the order with a completed state as soon as the shipment is created. Is it ...
Jackom's user avatar
  • 493
2 votes
0 answers
1k views

Magento 2.3 -> 2.4: CLI commands all throw "Area code is not set"

The story so far: I'm updating Magento from 2.3 to 2.4 and in doing so I'm now getting an "Area code is not set" when running any CLI command. This did not happen in 2.3 and after looking at ...
Higgs's user avatar
  • 21
-1 votes
1 answer
528 views

How to set region value in checkout page?

I am following this guide to build a zipcode lookup implementation. I try to populate region, city and street data based on zipcode. this.region().value(regionValue); this.city().value(cityValue); ...
nubitol's user avatar
0 votes
0 answers
31 views

Magento 2 : Custom dropdown for city and state not loading in IE

I created custom city and state dropdown all working fine but in the IE it is not loading. Can anyone please help.?
Mayur Sisodiya's user avatar
1 vote
3 answers
3k views

Magento2 : What is the difference between Order Status And Order State

Does anyone know how we can differenciate Order Status And Order State ?
Sanjay Shiyal's user avatar
1 vote
1 answer
62 views

How to Remove Zipcode, State and Company from Magento 2.3

As per the title, you can realize that its a very old and repetitive question, but actually I could not find a solid answer !! I want your help (step by step) how to "remove/disable" the Zipcode &...
mohammad ramadan's user avatar
1 vote
4 answers
5k views

Magento 2 system configuration state multiselect dropdown

First i have created country drop-down in back-end system configuration, using source model as <source_model>Magento\Directory\Model\Config\Source\Country</source_model> Next based on ...
aravind's user avatar
  • 1,854
2 votes
1 answer
6k views

Magento 2: Getting “regionId is a required field.” when I click button "Place Order"

I am Getting regionId is a required field. when I click button "Place Order" on the checkout page I tried this solution https://magento.stackexchange.com/a/205232/65951 and it worked but then ...
Bhakti Thakkar's user avatar
0 votes
1 answer
846 views

Magento2 : How to show country and state dropdown field in customer account information section in admin?

I want to add country and state dropdown field in account information in Magento2 admin? Googled a lot, but not able to find right solution. Any help would be appreciated.
Amy's user avatar
  • 935
1 vote
0 answers
242 views

Add Indian cities dropdown in Magento 2 [closed]

Hi I am looking for the extension to make Indian cities dropdown based on state selected in magento 2
Chethan Sreenivasa Murthy's user avatar
0 votes
1 answer
1k views

Magento 2 : How to change state list for USA? [duplicate]

How can I change/remove some states from Shopping Cart and Checkout page? For example. I need to remove: American Samoa; Virgin Islands; Armed Forces Africa (Americas, Canada, Europe, Middle East, ...
Alexey Giryayev's user avatar
3 votes
2 answers
3k views

Change from frontend area to adminhtml area

I try to use an email template which located in adminhtml area from frontend, the problem is i dont know if changing the state area code is the right way because i alway got an error by doing like ...
mileven's user avatar
  • 419
5 votes
1 answer
3k views

Magento2 where state/regions are stored

Hello in Magento2 where is the xml file that stores the state/regions we believe "California" is being saved when customers place an order as "Cal" and we need to confirm if this is how Magento has ...
Jayreis's user avatar
  • 725
0 votes
0 answers
273 views

Force change State/Status to Complete

Is possible to change the state of the order to complete? $order->setSate(Mage_Sales_Model_Order::STATE_COMPLETE); $order->save(); Programmatically : setState(Mage_Sales_Model_Order::...
JhAndrade's user avatar
1 vote
2 answers
2k views

How to get USA states dropdown list magento2 custom phtml

I need to display the all the USA states as a select drop-down in magento2 custom phtml. Can anyone help me.
venkata prasad's user avatar
0 votes
1 answer
413 views

Required State not working in Checkout

I need the state to be a required field in the checkout page so I set it in the Admin Panel But it is not working. How can I fix this one? I am using Magento 2.1.6
Dean's user avatar
  • 125
2 votes
2 answers
1k views

Removing various states/provinces from shipping but not billing address

I've searched all around and haven't been able to find a solution to this. I'm on Magento 2.1.7 and need to remove the option for shipping to any province other than Ontario (Canada) from my check-...
schmeeb's user avatar
  • 65
2 votes
2 answers
699 views

Custom order status not working like magento predefined order status

I created a custom order status like below.(This is a big issue that i am simply missing some small stuff and hope to figure out with the help of a member). config.xml <sales> <order>...
Mujahidh's user avatar
  • 2,793
1 vote
1 answer
766 views

Magento 2: What is purpose of StateInterface & when to use?

In vendor\magento\module-contact\Controller\Index\Post.php They are using \Magento\Framework\Translate\Inline\StateInterface $inlineTranslation $this->inlineTranslation->suspend(); $this->...
Jackson's user avatar
  • 9,929
3 votes
1 answer
75 views

Getting status from object returns different value compared to var_dump

I have this piece of code: public function getAllOpenOrders() { $collection = Mage::getResourceModel('sales/order_item_collection'); $collection->getSelect()->join( array('...
Akif's user avatar
  • 1,541
6 votes
3 answers
18k views

Magento 2 - State/Province dropdown and Country Dropdown in Contact form

I need to add these 2 dropdowns to the contact form. How would I pull in those values for each dropdown?
Paul's user avatar
  • 1,501
0 votes
1 answer
2k views

How to hide or remove state/province field from billing page

Hi guys i am new to magento.While dealing with the billing page in one page checkout i faced some troubles.There is state/province field which goes hide when page completely loads.When i inspect the ...
Siby Xavier's user avatar
6 votes
4 answers
8k views

Magento: How to remove certain States from state/region list at Checkout or registration?

The list of regions for USA contains: Alaska, Hawaii, American Samoa, Guam, Marshall Islands, Micronesia and Armed American and so on. This is the list that is available both during registration and ...
Nilesh Tighare's user avatar
2 votes
1 answer
4k views

Get state from address in custom shipping method on OneStepCheckout

So we are running Magento CE 1.9.0.1 and are mid-way through developing a custom shipping module as we have largely different shipping costs than the traditional shipping can cover. We are also using ...
C.Miller's user avatar
1 vote
1 answer
912 views

Magento order state in Observer

I'm using observer method sales_order_save_before to do some operations based on order state $order = $observer->getEvent()->getOrder(); $initialState = $order->getOrigData('state'); ...
amitshree's user avatar
  • 7,036
1 vote
1 answer
375 views

1.9 CE - Set variable to either region or region_id if customer in USA

Appologies but new to PHP... Need to pass a value for 'state' to payment gateway which can be any string for non USA customers but must be two character code for USA (based on drop down list). '...
TerryYo's user avatar
  • 11
0 votes
1 answer
107 views

Magento 1.9 CE State Region confusion

My payment gateway (Ecorepay) requires customer address to include state/province. It works when I pass the region_id (for countries where I have a drop down list) my question is where is the region ...
jonohara1's user avatar
1 vote
1 answer
428 views

Solution for collecting sales tax in California [closed]

Has anyone found a good extension or solution for collecting sales tax in California? Our company has nexus in California. Taxjar keeps popping up but i am confused as to whether this is a free ...
cfeSusan's user avatar
0 votes
1 answer
3k views

Set "New Order Status" to processing instead of pending

I would like orders with payment type banktransfer and cashondelivery to have the order status "Processing" but it only let me choose "Pending". Magento only allows an order status with state "new" ...
PiTheNumber's user avatar
  • 3,234
14 votes
6 answers
12k views

How add indian State?

How to add Indian State lists to the corresponding country?
remo's user avatar
  • 143
2 votes
2 answers
2k views

Magento 1.9 CE - Bundesland deaktivieren / disable state/province select

seit CE 1.7 ist es eigentlich möglich, unter Allgemein -> Bundeslandoptionen die Abfrage nach dem Bundesland zu deaktivieren. Auch in 1.8.0.1 war das noch möglich. Jetzt habe ich eine 1.9.0.1 ...
Stephan's user avatar
  • 53
2 votes
2 answers
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 ...
Charlie's user avatar
  • 3,136
8 votes
2 answers
11k views

How to know if an order is paid ? When "state" is "processing"?

I'm running Magento 1.6.2. I need to determine if an order is paid. If yes, I generate some XML data for export. There is many cases in the Magento order/payment/shipment workflow. My first guess is ...
guillaume_shm's user avatar
3 votes
2 answers
16k views

Region State/Provence not Displaying Drop Down Field

I have built a magento store using a template and edited bits here and there, but on testing, the region (state/Provence box is not showing at all... on any of the forms, by the look of it... My site ...
Henry Aspden's user avatar
9 votes
3 answers
13k views

Observing order state change

It seems there is no order state event by default, so how do you usually go about observing order state change? There are two possibilities I see: a) Overwrite the sales/order model to create your ...
mpaepper's user avatar
  • 4,700
25 votes
4 answers
34k views

What are the definitions of the order statuses? OR: Where should I integrate my order state?

I want to define some order states like "credit card payment received", the question is to which statuses they belong. Is there a definition for each of the built-in statuses? Edit: Seems like I ...
Fabian Schmengler's user avatar