Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Fixed] Checkout Section: Shipping step is getting skipped when customer hitting direct payment step URL #21597

Closed
wants to merge 9 commits into from

Conversation

niravkrish
Copy link
Contributor

Description (*)

Checkout Section: Shipping step is getting skipped when customer hitting direct payment step URL

Fixed Issues (if relevant)

  1. Checkout: it is possible to leave blank Shipping Details section and get to Payment Details section by URL #21596: Checkout Section: Shipping step is getting skipped when customer hitting direct payment step URL

Manual testing scenarios (*)

  1. Product Add To Cart and go to checkout page
  2. hit payment url without adding shipping address

Contribution checklist (*)

  • Pull request has a meaningful description of its purpose
  • All commits are accompanied by meaningful commit messages
  • All new or changed code is covered with unit/integration tests (if applicable)
  • All automated tests passed successfully (all builds on Travis CI are green)

@magento-engcom-team
Copy link
Contributor

Hi @niravkrish. Thank you for your contribution
Here is some useful tips how you can test your changes using Magento test environment.
Add the comment under your pull request to deploy test or vanilla Magento instance:

  • @magento-engcom-team give me test instance - deploy test instance based on PR changes
  • @magento-engcom-team give me 2.3-develop instance - deploy vanilla Magento instance

For more details, please, review the Magento Contributor Assistant documentation

@niravkrish niravkrish requested review from omiroshnichenko and sidolov and removed request for omiroshnichenko March 11, 2019 08:45
@csdougliss
Copy link
Contributor

Please merge this 👍

@omiroshnichenko
Copy link
Contributor

Hi @niravkrish, current solution is too fragile. If someone will create required custom customer address attributes this fix will not work. Additionally, it may cause unexpected behavior.

Feel free to create another PR or reopen this one with a more stable approach.

@ghost
Copy link

ghost commented Mar 14, 2019

Hi @niravkrish, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

@niravkrish
Copy link
Contributor Author

niravkrish commented Mar 18, 2019

Hello @omiroshnichenko,

I got only fields with value in quote. and not getting something like shipping address is blank and valid or not.
If Customer or developer create custom shipping address attribute. then he should be required to validate that field also.

Thanks
Nirav Patel

@niravkrish niravkrish reopened this Mar 18, 2019
@sidolov
Copy link
Contributor

sidolov commented Mar 20, 2019

Hi @niravkrish , Magento Commerce edition contains functionality that provides an ability to add custom address attributes on the backend. With provided solution this functionality is broken.
Anyway, hardcoded attribute names in the code is not a good idea because it's hard to extend and modify such component and this approach goes against out Technical Guidelines.

Copy link
Contributor

@sidolov sidolov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please, provide another solution for the issue.

@ghost ghost assigned sidolov Mar 20, 2019
@sidolov
Copy link
Contributor

sidolov commented Apr 4, 2019

@niravkrish , I am closing this PR now due to inactivity.
Please reopen and update if you wish to continue.
Thank you for the collaboration!

@sidolov sidolov closed this Apr 4, 2019
@m2-assistant
Copy link

m2-assistant bot commented Apr 4, 2019

Hi @niravkrish, thank you for your contribution!
Please, complete Contribution Survey, it will take less than a minute.
Your feedback will help us to improve contribution process.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants