Questions tagged [state]
The state tag has no usage guidance.
39 questions
0
votes
1
answer
27
views
State is always being set to Texas?
Magento 2.4.6-p3
I am hiding the state option in checkout and for those cases where the customer does not have to select a state, the state is always set to "Texas".
I did not find a setting ...
0
votes
2
answers
114
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/...
2
votes
1
answer
258
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 ...
2
votes
0
answers
117
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 ...
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 ...
-1
votes
1
answer
563
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);
...
0
votes
0
answers
32
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.?
1
vote
3
answers
4k
views
Magento2 : What is the difference between Order Status And Order State
Does anyone know how we can differenciate Order Status And Order State ?
1
vote
1
answer
65
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 &...
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 ...
2
votes
1
answer
7k
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
1
answer
848
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
0
answers
243
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
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, ...
3
votes
2
answers
4k
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 ...
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 ...
0
votes
0
answers
275
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::...
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.
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
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-...
2
votes
2
answers
703
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
1
answer
778
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
1
answer
78
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('...
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?
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 ...
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 ...
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 ...
1
vote
1
answer
915
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
1
answer
376
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
1
answer
111
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
1
answer
429
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
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" ...
14
votes
6
answers
12k
views
How add indian State?
How to add Indian State lists to the corresponding country?
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 ...
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 ...
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 ...
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 ...
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 ...
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 ...