Similar to a stockpile, you can connect an earnings pile to multiple shops and collect all their earnings from a single spot.
To connect an earnings pile, click "Connect Earnings Pile" in the shop interface and click on an Ender Chest
To access the earning pile interface, you can Shift + Right click on the Ender Chest. (Without shifting, you can simply use it as an ender chest)
Alternatively, you can add shops to your earnings pile from this interface.
To do that, click "Connect Shop" and click on a valid shop to be able to collect earnings from it.