Right below the shower base is a trap and assuming the shower is used it should be full of water. It’s probably soap and junk in the trap that is starting to smell. Try a drain cleaner and flush it with hot water, better would be to use a snake thru it and flush it.