Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an API for just product inventory and price #218

Open
ScopeyNZ opened this issue Nov 15, 2021 · 0 comments
Open

Add an API for just product inventory and price #218

ScopeyNZ opened this issue Nov 15, 2021 · 0 comments

Comments

@ScopeyNZ
Copy link
Contributor

The advice for Commerce.js advocates that websites take advantage of static rendering to ensure that product display pages are fast and lightweight to render, as well as getting other benefits from static rendering like no-js support. Unfortunately, the price and stock level of a product isn't so static, so it can be difficult to combine static rendering with this non-static information.

Commerce.js & the Chec API should provide an API (or APIs) to fetch just the invetory and/or price of products so that product information can be pulled statically, and the same information isn't loaded for requests that are only concerned about price & inventory.

@ScopeyNZ ScopeyNZ added this to the Commerce.js v3 ideas milestone Nov 15, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant