Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Update order before redirecting to checkout #2086
When clicking 'Checkout' on the cart page, any changes made to the order will not e saved unless 'Update' is clicked first, updating the order.
I propose we update the 'Checkout' button to also update the order. This way, any last minute changes will be preserved while a user is attempting to checkout.
I am putting this up for discussion at the moment. You will notice I added this code to promo rather than core. This is because promo overrides the update action on Spree::OrdersController. I think this is something that could use some clean up as well.