Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[BUG] Mini Cart - Unable to Remove Out-of-Stock Product #1061

@ePiliK

Description

@ePiliK

Describe the bug

I encountered an issue in the mini cart.
Steps to reproduce:

Add a product to the cart(
The products were added some time ago with this account and remained in the minicart, before they became out of stock).

One of the products is out of stock, and there is still a quantity of 2 in the mini cart.

When attempting to remove the product from the mini cart by clicking the trash icon, an error message appears:
"We only have 2 of 'Cassetta Avocado Hass Bio' in stock"

Expected Behavior:
The out-of-stock product should either be removed automatically from the cart or allow the user to remove it manually from the mini cart.

Actual Behavior:
The error prevents the user from removing the out-of-stock product, and the mini cart shows 2 items, even though the product is no longer available.

Image

Steps to reproduce

No response

Screenshots and Additional Info

No response

Website link

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions