Magento2: State/Province field doesn't show as required causes checkout error

Created on 31 Mar 2017  Â·  8Comments  Â·  Source: magento/magento2


Preconditions


  1. Magento 2.1.4
  2. 2.

Steps to reproduce


Similar issue as #5279 which was closed by customer but has not actually been fixed in Magento 2.1.4.

  1. I have specified "State" field as mandatory for customer address for my Country (India) from Admin.
    Stores > Setting Configuration > General > General > Country Options > State Options > State is Required for.

  2. From store create a customer account but do not add address.

  3. From store Login to account and checkout a product. During checkout, being able to create address without the State as it is not shown as required in the address form (however, when customer has registered account and goes to add a new address from account settings, then 'State' is shown as required - go figure !!)

  4. During checkout it gives an "Error occurred on the server. Please try to place the order again" error.
    When the State is provided in address the checkout goes thru.

This basic issue needs to be fixed ASAP .. losing sales because of this ! Customer obviously does not know issue and abandons the transaction. Specifying "State" as mandatory should make it a required field in ALL the various address forms for customers.

Expected result

  1. The 'State' should be a required field in ALL address forms presented to the customer.

Actual result

  1. Since 'State' is not shown as required, customer is able to create address without the state. However, this causes the "Error occurred on the server. Please try to place the order again" during checkout. When State is added to address the checkout goes thru.

Fixed in 2.2.x Clear Description Confirmed Format is valid Reproduced on 2.1.x

Most helpful comment

@ishakhsuvarov I manage to fix it - my PR #10924
The issue is already fixed on develop branch, so I backported the fix to 2.1-develop.

All 8 comments

This basic issue needs to be fixed ASAP

Haha, that's funny. You must be new here.
IF it gets changed right away, there's 2 months on the average until the change reaches a release.
It would speed up the process,, if you could provide a pull request with the fix, otherwise chances are you'll get it fixed earlier if you work around it locally in your codebase, rather than wait for a fix to get released.

I have this same problem...Magento 2 is not functional, should still be a beta

Completely agree, Magento 2 is indeed still a beta. Basic functionality doesn't work.

@Andreshlan @ifeltsweet
Did you hear about reactions? You just should upvote issues and pull requests, if you think they are important.
Your comments have no value for maintainers or other devs.

@ishakhsuvarov I manage to fix it - my PR #10924
The issue is already fixed on develop branch, so I backported the fix to 2.1-develop.

@Igloczek Thanks!

Thank you !
From: Bartek Igielskinotifications@github.com
Sent: Sunday, September 17, 2017 5:59 PM
To: magento/magento2magento2@noreply.github.com
Cc: kjasrotiaksj1976@hotmail.com; Authorauthor@noreply.github.com
Subject: Re: [magento/magento2] State/Province field doesn't show as required causes checkout error (#9077)

@ishakhsuvarovhttps://github.com/ishakhsuvarov I manage to fix it - my PR #10924https://github.com/magento/magento2/pull/10924
The issue is already fixed on develop branch, so I backported the fix to 2.1-develop.

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHubhttps://github.com/magento/magento2/issues/9077#issuecomment-330040415, or mute the threadhttps://github.com/notifications/unsubscribe-auth/AZk93CwP3TmgXVfy4XHo7_Sv-HW_N2mWks5sjRCGgaJpZM4Mvys2.

@kjasrotia, thank you for your report.
The issue is already fixed in 2.2.0

Was this page helpful?
0 / 5 - 0 ratings