Handle integration with commerce stock

Created on 1 May 2022, almost 3 years ago
Updated 31 August 2023, over 1 year ago

Problem/Motivation

This module ignores stock levels if you (maybe) have Commerce Stock installed. This means that you can still add items to the cart through the webform, even though the item is unavailable. This results in the cart telling the user they can only add quantity 0 of the items, even though commerce webform order has added a quantity to the cart. At this point it's hard to tell that the issue is the item is out of stock and the resolution is to remove it from the cart.

Steps to reproduce

Install Commerce Stock, set your item stock level to zero, then use the webform to add it to the cart. Note that Commerce Stock may not actually be required based on using the Commerce Core "Availalbility Manager" mentioned below.

Proposed resolution

Use the "Availability Manager" included in Commerce Core to determine whether the item(s) on the webform are available for purchase and react accordingly.

✨ Feature request
Status

Active

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States Delty

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024