Check in queue if still in stock

Created on 3 December 2021, about 3 years ago
Updated 7 December 2024, 11 days ago

Problem/Motivation

We have some items which are very popular, and will be sold out again within minutes of stock being purchased. The stock notification e-mails remain queued and still get sent even if this happens.

Steps to reproduce

- Let product sell out
- Add 1 stock back on
- e.g. 200 stock notification e-mails are queued
- 1 stock is purchased within minutes
- Any queued e-mails still send

Proposed resolution

Do a second check if out of stock before sending the e-mail.

See patch.

✨ Feature request
Status

Needs work

Version

1.0

Component

Code

Created by

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

Merge Requests

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