Online shopping has surged over the past decade with firms like Amazon and Alibaba facilitating purchases via the Internet. The rise of e-commerce has even forced traditional brick-and-mortar retailers to change tack.