Stock is not decremented if a product variation type is set to Local stock but at a specific variation the Always in stock field is enabled

Created on 21 February 2025, 4 months ago

Problem/Motivation

We work with sellers who manage stock level in the webshop. They have certain products where they want to enable customers to buy more than what's in stock currently. Then the negative stock level would indicate sellers that they need to restock some products because there's a higher demand of it.

Now, if product variation type is set to the Local stock service and you enable the "Always in stock?" checkbox for a specific variation, then this variations stock level will not decrement anymore if an order comes in. This confuses us and the sellers, too.

Suggestion: support this use case by continuing the automatic stock level adjustment when an order comes in.

Steps to reproduce

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΈπŸ‡°Slovakia kaszarobert

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @kaszarobert
  • πŸ‡ΈπŸ‡°Slovakia kaszarobert

    I attach a patch for this and I raise the priority of the issue since it could lead to an incorrect stock level in the reports.

  • πŸ‡¬πŸ‡§United Kingdom guy_schneerson

    This is probably not the right way of approaching the problem as this is not what the always-in-stock was designed for.
    always-in-stock is for products that are not stock-managed.
    However, I am not marking this as works as designed because the use case is real. I think this can be a useful feature if the responsibility is moved to the availability checker.
    I will update the title to: "Allow the purchase of out-of-stock items" This will need both an absolute setting. Always allow or a number. A bit like an arranged overdraft - so 10 will be: You are allowed to oversell 10 items.

  • πŸ‡¬πŸ‡§United Kingdom guy_schneerson
Production build 0.71.5 2024