We have set up "back in stock"-notifications on a DW9 site, it works as intended.
However, we would like to only trigger this notification if there is a minimum stock threshold, e.g. 5 or 10, so we don't send out an email about a product being back in stock to a handful of users if there is only 1 in stock anyway.
I suppose it could be possible to solve this using a NotificationSubscriber to listen for when we're sending a "back in stock"-notification email and then just block/cancel it from in there, but my guess is just that it would show up as a failed email attempt in the Email marketing module, which is not preferable.
I also cannot just change the stock state to "not in stock" if this minimum threshold is not met, because then we wouldn't be able to sell it on the site..
Any suggestions?