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

Implement client-side Add to Cart #86

Open
samdutton opened this issue Jun 22, 2018 · 0 comments
Open

Implement client-side Add to Cart #86

samdutton opened this issue Jun 22, 2018 · 0 comments
Labels

Comments

@samdutton
Copy link
Collaborator

At the moment we use a form submit for Add to Cart.

This works fine (and demonstrates a SSR solution, as intended) but results in a server request and a page reload each time an item is added to the cart.

We'll need to do something different once we've implemented identity/login but, in the meantime, we could look at simple JavaScript options, to update a local cart stored with localStorage (or whatever). It might be nice to combine this with a server-side rendered cart page. (We've also talked about looking into offline/flakey options at a later date: site functionality — including Add to Cart — should be available.)

I've made a start on a Cart class — give me a shout if you're picking up this PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant