If you buy something in the shop that you already have it won`t be merged with the things you already have. To do that you have to drop the item and then pick it up again!