Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [state]

The tag has no usage guidance.

0
votes
0answers
9 views

Magento 2 How to create a new state and place it before Complete State

I want to create an extension that the Customer need to approve that the product was delivered or the service (virtual product) is done before the order can be considered Completed. I'm trying to do ...
2
votes
0answers
52 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 ...
0
votes
0answers
20 views

How do I remove store-wide the state/province field for users

In our German store for users it is not required to select a state/province for their personal address or shipping addresses. I already managed to disable the the field in the store frontend via the ...
0
votes
1answer
113 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.
1
vote
0answers
186 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
0
votes
1answer
336 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, ...
2
votes
2answers
429 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 ...
1
vote
1answer
396 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 ...
0
votes
0answers
160 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::...
0
votes
2answers
626 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.
0
votes
1answer
313 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
1
vote
2answers
814 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-...
2
votes
2answers
440 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>...
1
vote
1answer
378 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->...
3
votes
1answer
60 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('...
4
votes
2answers
8k 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?
0
votes
1answer
1k 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 ...
6
votes
4answers
7k 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 ...
2
votes
1answer
3k 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 ...
1
vote
1answer
802 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'); ...
1
vote
1answer
329 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). '...
0
votes
1answer
77 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 ...
1
vote
1answer
388 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 ...
0
votes
1answer
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" ...
12
votes
6answers
10k views

How add indian State?

How to add Indian State lists to the corresponding country?
2
votes
2answers
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 ...
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 ...
6
votes
2answers
8k 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 ...
3
votes
2answers
14k 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 ...
8
votes
3answers
12k 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 ...
24
votes
4answers
28k 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 ...