a common stock level accross all variations

Created on 10 April 2019, about 5 years ago
Updated 9 March 2023, over 1 year ago

My client (a grower of organic salad boxes) needs the option of a single stock level counter, to decrease which ever variation is purchased.

Another use case is a fixed number of seats for an event, whether a child or adult ticket is bought.

Sometimes we need stock level per variation (as provided by your module currently) and sometimes globally, across all variations of a product.

Thanks for a great module.

✨ Feature request
Status

Closed: won't fix

Version

1.0

Component

Code

Created by

πŸ‡¬πŸ‡§United Kingdom nigelwhite Marsden

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.

  • πŸ‡΅πŸ‡±Poland gravisrs

    There is a workaround for this. You will need to write a small module for this.

    In a proper stock event hook - before the stock event is executed - just set stock to the minimum of any other product variation.
    You may want also to copy stock level back to those other variations as well.

    The only drawback - is when you actually want to increase stock you will have to do it for all of the variations at the same time.
    But here you can detect what is the source of changing the stock levels and in the same module you could do an exception - and in that case just duplicate transaction to every other variation.

Production build 0.69.0 2024