Skip to content

[BUG] Adding another project to cart fails if there's one in the cart already with qty = 1 #9

Open
@kolaente

Description

@kolaente

Adding a product (Let's call it "product a") to cart with qty = 1 works fine. But when I then want to add another product ("product B") to the cart with some other qty, adding that second product fails with an error message "The requested qty is not available".

This is the quantity settings of product A:
image

Product B has some some quantity > 1. Adding it individually (without Product A already in cart) works fine.

I dug into it a bit and it looks like this happens because this module saves the cart. That tries to set the quantity again for product A which won't work because it does not have enough quantity available at this point. Not quite sure if this is a core issue or only related to this module.

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