Skip to content
This repository has been archived by the owner on Jan 26, 2024. It is now read-only.

Region id is passing as 0 on vue storefront checkout #367

Open
1 task done
darshanperpule opened this issue Jun 10, 2020 · 4 comments
Open
1 task done

Region id is passing as 0 on vue storefront checkout #367

darshanperpule opened this issue Jun 10, 2020 · 4 comments
Labels
feature request Requests for new features. Please be as specific as possible and provide proposal API if it you can P3: Normal Priority mark - normal priority P4: Nice to have Priority mark - it's nice to have VSF1 Issues in regards to VSF1

Comments

@darshanperpule
Copy link

Current behavior

Region id is passing as 0 when placing an order.

Expected behavior

On vue storefront checkout, for region dropdown should display instead of a textbox.

Steps to reproduce the issue

  1. Go to vue storefront checkout
  2. Go to the shipping address
  3. try to add region

Can you handle fixing this bug by yourself?

  • NO

Environment details

  • Browser: Google Chrome
  • OS: Linux mint
  • Node: 12.16.3
  • Code Version: master branch
@pkarw
Copy link

pkarw commented Jun 15, 2020

Can you be more specific o nthis? I mean what do you mean by "try to add region"?

@darshanperpule
Copy link
Author

Hi @pkarw

I want to display region dropdown on the checkout page. Currently, it's a textbox. So it's passing region_id as 0 in both shippingAddress and billingAddress. That will throw an error in Magento 2 while placing an order "Region id is a required field".

@AishwaryShrivastav
Copy link

Hey guys,
I am working on modifying the state input field to country based drop-down, and we can have JSON files for states, like we have for countries, and we will show the list of state based on default config and selected country. In starting we can have US state, people can add more.

@AishwaryShrivastav
Copy link

Will create a issue regarding this in capybara, will add states.json in core/i18n/resources in vsf and logic for the dependable dropdown in capybara. Make sense ?

AishwaryShrivastav referenced this issue in hotwax/vue-storefront Aug 24, 2020
RakowskiPrzemyslaw referenced this issue in vuestorefront/vue-storefront Aug 24, 2020
Added states.json in core/i18n/resource (#4531-region-id)
@bloodf bloodf closed this as completed Aug 20, 2021
@bloodf bloodf transferred this issue from vuestorefront/vue-storefront Aug 22, 2021
@bloodf bloodf added feature request Requests for new features. Please be as specific as possible and provide proposal API if it you can P3: Normal Priority mark - normal priority P4: Nice to have Priority mark - it's nice to have VSF1 Issues in regards to VSF1 labels Aug 22, 2021
@bloodf bloodf reopened this Aug 22, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature request Requests for new features. Please be as specific as possible and provide proposal API if it you can P3: Normal Priority mark - normal priority P4: Nice to have Priority mark - it's nice to have VSF1 Issues in regards to VSF1
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants