Variation::onAfterWrite
Unpublish {@link Product}s if after the Variations have been saved there are no enabled Variations.
TODO check that this works when changing attributes
Signature
protected function onAfterWrite()
Line | Task |
---|---|
465 | this might not be a good idea to unpublish the product |