Shopware 6 Hidden Gems #6: Two state machine tricks — diagrams for free and forcing „impossible“ transitions
Order states, delivery states, payment states — Shopware models all of them as state machines with defined transitions. Which is great, until a) a new colleague asks „so which states can an order actually be in?“ and you start drawing boxes on a whiteboard, or b) an order gets stuck in a state it can’t […]