- Issue created by @tonytheferg
- Merge request !8Issue #3510536: Offer buy now button for logged in users → (Open) created by tonytheferg
Here is a start, just for fun. This could certainly and will need to be better written, but this does create a draft order for one order item, and respects the add to cart form quantity.
We would still would need to open a popup confirmation that:
- displays the order total and summary,
- confirms/checks the address(es),
- confirms/checks payment method,
- Submits the order,
- And redirects to a checkout completion page.
This might prove tricky. If we create the order on submit, we would need to delete orders when the pop up is closed.
So we can grab the purchased entity and quantity on submit, and only create the order on pop up submission confirmation.Otherwise you would have a draft order for every time someone pressed the button. A little more hacky boilerplate incoming.