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

[BUG] inline cart does not remember the number of items in the cart after edit shopping cart content #2

Open
mcdis opened this issue Aug 4, 2020 · 1 comment

Comments

@mcdis
Copy link

mcdis commented Aug 4, 2020

    <script>
        window.document.getElementById('buy-button').addEventListener('click', function () {
            TwoCoInlineCart.cart.checkout();
        });
        window.document.getElementById('add-button').addEventListener('click', function () {
            TwoCoInlineCart.products.add({
                code    : 'OBPower',
                quantity: 1
            });
        });
    </script>
  1. Click Add button (after 1 item in cart)
  2. Click buy
  3. Edit cart content
  4. Increase items in cart (for example increse to 5)
  5. Close dialog
  6. Again click Buy button
  7. [BUG] there isonly 1 item in shopping cart instead 5

image

@mcdis mcdis changed the title [BUG] inline cart does not remember the number of items in the cart [BUG] inline cart does not remember the number of items in the cart after edit shopping cart content Aug 4, 2020
@mcdis
Copy link
Author

mcdis commented Aug 4, 2020

P.S, sorry for making an issue here, but I couldn't find a repository from your library

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

No branches or pull requests

1 participant