Account created on 13 March 2008, almost 17 years ago
#

Recent comments

🇵🇱Poland gravisrs

Regarding #121 - this would be an easy fix. Most schema uses 'timestamp' storage item so all what we need is update

/core/lib/Drupal/Core/Field/Plugin/Field/FieldType/TimestampItem.php class

and add implementation of defaultStorageSettings() that returns ['size'=>'big']

🇵🇱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.71.5 2024