Skip to content

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

@mcdis

Description

@mcdis
    <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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions