Can I say "Nem az üzlet előtt, hanem az iskola előtt tanulok?"
or "Nem az üzlet előtt tanulok, hanem az iskola előtt?"
Yes, both are correct. In your first sentence (only there), you can even omit the first "előtt": "Nem az üzlet, hanem az iskola előtt tanulok."
You could't do the other way around though?
Nem az üzlet előtt, hanem az iskola tanulok.
No, that doesn't work. After the last noun the postposition always has to be included.
Szuper. Köszi
"bolt" for store should be correct as well.