Skip to content

Unable to add product to cart if stock is not configured. #698

@nickfrederiksen

Description

@nickfrederiksen

Which component is this issue related to?

Umbraco Commerce (Core)

Which Umbraco Commerce version are you using? (Please write the exact version, example: 10.1.0)

15.3.1

Bug summary

There's an issue where a product that has no stock information configured, can't be added to the cart.

I get this error:
Insufficient stock: Product '9bdde03e-7339-4e58-9321-f03c92d3c9f4' has 0,000000 item(s) left, but 1 were requested.

We have no custom validators and this issue seems to have been introduced with the 15.3.0 update. The product does not have stock and should therefore not be validated as such.

It's rather critical for this to be fixed.

Specifics

No response

Steps to reproduce

Install 15.3.0 (or 15.3.1).

Create product with no stock property.

Add that product to the basket.

Expected result / actual result

Product should be added. With no error.

Dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions