This repository has been archived by the owner on Aug 30, 2018. It is now read-only.
add user feedback on qty update ajax drawer #130
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
add scrollTop() if user updates quantity outside of cart drawer when cart drawer is-visible
There is no obvious close button on ajax cart drawer so user naturally scrolls down. user could click Cart link to close the drawer or simply keep scrolling and leave drawer visible. In this case, if user then adds item or updates quantity to cart from 'Add to Cart' button there is no user feedback that the item was added.
If the user checks drawer after page load, leaves open, and then adds a new item on same page, then visible drawer expands a bit pushing down page and exposing a bit of drawer into view at top (probably not intended experience). If it is a quantity change of an item already in cart, then no feedback/movement. There are probably many routes to address this:
I figured the easiest was the latter, and this patch addresses that. Please check.