Near the school there was a clothing store.

Near the school, there was a clothing store.

Near the school was there a clothing store.

Near the school, was there a clothing store.

(Which one is correct? Do we have to have inversion when the place adverbial comes to the front?)

1 is correct. However, it would be better to say,

Near the school was a clothing store.