A plugin which avoids collisions in checkout by reducing stock when an order is placed