Support instant checkouts for "buy now"
See original GitHub issueWhat I’m trying to achieve
I have a scenario where the storefront supports adding to cart and also a “buy now” option. Since there is no cart system in saleor, I have adapted to use the checkout as a cart. When using checkoutCreate
, each user is limited to only one open checkout at a time. Meaning that a new checkout cannot be created for the “buy now” while the user has items in their cart.
Describe a proposed solution
The current design does make sense for most common use cases, and is quite convenient for cart systems. But having the option to create an instant disposable checkout would be a big help.
Other solutions I’ve tried and won’t work
One possible hack I can use is to back up the user’s existing checkout (cart) as metadata, freeing up the checkout to be used for the buy now. Once completed, the cart can be restored. This would have some pitfalls and drawbacks, but should be possible.
Edit: Oh looks like there’s a related issue #5116
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (4 by maintainers)
@gsoec thank you very much. I’m sure it’ll be very helpful.
@khalibloo I created a PR #5215, only tested in development environment.