Errors in checkout stack into multiple orders per submit
See original GitHub issueCurrent behavior
The more times you submit an order with invalid data (i.e. only numbers in the name fields) the more times there will be a submit order request sent to the backend. First submit will send only one request, another submit w/o fixing errors will send the order twice, etc.
Expected behavior
Order requests having error are being repeated over and over.
Steps to reproduce the issue
- try to place an order with invalid user data (i.e. a few digits in name fields)
- hit submit button several times
- the more times you hit the button the more requests will be sent to the backend incrementally.
Can you handle fixing this bug by yourself?
- YES but not anytime soon, feel free to fix it
- NO
Which Release Cycle state this refers to? Info for developer.
Pick one option.
- This is a bug report for test version on https://test.storefrontcloud.io - In this case Developer should create branch from
develop
branch and create Pull Request2. Feature / Improvement
back todevelop
. - This is a bug report for current Release Candidate version on https://next.storefrontcloud.io - In this case Developer should create branch from
release
branch and create Pull Request3. Stabilisation fix
back torelease
. - This is a bug report for current Stable version on https://demo.storefrontcloud.io and should be placed in next stable version hotfix - In this case Developer should create branch from
hotfix
ormaster
branch and create Pull Request4. Hotfix
back tohotfix
.
Environment details
- Browser: Chrome 72
- OS: Ubuntu 18.04
- Node: 8
- Code Version: develop
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (4 by maintainers)
Top Results From Across the Web
Errors in checkout stack into multiple orders per submit #2663
The more times you submit an order with invalid data (i.e. only numbers in the name fields) the more times there will be...
Read more >Two orders being submitted after checkout - Stack Overflow
Most likely (as mentioned in the comments) your client-side code is sending more than one request to create a charge.
Read more >Single payment to multiple orders won't register or complete ...
The answer was simple in the end: $orderIdsExplode = explode(',',$orderIds); $orders = Mage::getModel('sales/order') ->getCollection() ...
Read more >Checkout Errors - BigCommerce Support
Checkout errors can be in the form of a failed order, typically shipping or payment related, or a completed order that was processed...
Read more >IHOP Rewards FAQs
Open your IHOP app or log in to your account at ihop.com/rewards. · Select a reward in the Stack Market, which will place...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I belive we should do both: changing error statuses inside Vue-storefront-api. Add general workaround - hotifx to not queue orders in case of http error other than 200 (we should use the queue only for network outage / offline mode - in this case there is no http error at all rather there we have a fetch exception)
I believe that #2753 would help a lot in this case.