Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Using fresh installation of commerce 2.x-dev. If you complete order as guest checkout - cart is not emptied (and no new cart created) after order has been completed.
Steps to reproduce
- Browse to site as anonymous users
- Add some products to you cart
- Complete order checkout as Guest Checkout
Expected result:
After order has been completed, new empty cart should be created with new order number.
Comment | File | Size | Author |
---|---|---|---|
#5 | checkout_as_a_guest-2802097-5.patch | 10.3 KB | mglaman |
#3 | checkout_as_a_guest-2802097-3.patch | 816 bytes | mglaman |
Screen Shot 2016-09-19 at 08.10.07.png | 70.68 KB | mitrpaka |
Comments
Comment #2
mglamanLooks like our block view doesn't have a filter to make sure only draft orders are shown (whoops.) Writing test now to verify.
Comment #3
mglamanConfirmed. Ran the "place" transition in CartBlockTest. Text remains after transition. Working on fix.
Comment #4
mglamanThis is because we never say "this is no longer a cart"! We need to remove the cart status flag when an order is no longer a draft / is placed.
Comment #5
mglamanPR: https://github.com/drupalcommerce/commerce/pull/502
Adds hook to remove cart flag on placed transition. Adds kernel test to verify.. which uncovers a fun core bug. Also tests browser and block display.
Comment #7
mglamanMerged!