-
Notifications
You must be signed in to change notification settings - Fork 219
REST API: Cart and Checkout Block Requirements #1312
Comments
Issue-Label Bot is automatically applying the label Links: app homepage, dashboard and code for this bot. |
I'll give some more fuller feedback at some future point but initially thought I'd ask, is there any prior art that we can learn/draw from as we deliberate this? Any work that WP.com has done or other ecommerce applications? |
Lots more exploration to do on all these endpoints, as you say @mikejolley each endpoint is a significant chunk of work.
Edit: I see that the stock count is on product pages in core, so probably no need for the boolean attribute, stock count is good fit :) |
Let's discuss the APIs needed for the Cart block in #1213 . |
@nerrad This is a good prior art for shipping rates: https://help.shopify.com/en/themes/development/getting-started/using-ajax-api cc @haszari So assuming we used the in-session cart, we'd just send the customer address and get back rates.
Not familiar with their APIs but looking at docs it doesn't seem to cover eCommerce usage. |
Shipping rates: #1318 |
@woocommerce/blocks @mikejolley has agreed to take point on this epic but he is still going to need help. If you are willing to help him get this epic done please assign yourself to the epic (it's okay to have multiple peeps on it). That helps Mike know who he can ping too if necessary. |
Added an issue for cart totals: #1324 |
In order for the cart and checkout blocks to become functional, a series of APIs will be required to interact with the server and WooCommerce data.
Many of these APIs do not exist, and current code in core is not flexible enough to handle these scenarios due to it being tightly coupled to the existing cart and checkout.
The following APIs will be added to the Store API in the blocks plugin. APIs will require customer context, so like the current cart API, this will use the current logged in user, or customer session cookie for guests.
Unanswered Questions/Notes:
TODO
- Payment Methods API - Lists available/registered payment methods. Used by the cart to show a payment methods list (icons only), and used by the checkout to show available express and regular payment methods. See #1321low_stock_remaining
field to product API #1319The text was updated successfully, but these errors were encountered: