3D Compositing with Action > Action: Surfaces > Adding Drop Shadows >
Using Shadow Mix

Use Shadow Mix to render shadows and surfaces according to their order in the Priority Editor, independently of their position in Z-space. This option makes it possible to have the shadow of one media on top of the shadow of another media. Shadow Mix is an option in the Z-Buffer box in the Rendering section of the Setup menu.