As the popularity of online shopping increases, more and more brick-and-mortar stores are having trouble ringing the till.