I am currently staying in Japan for four weeks. I learned to read & write kana and some basic Japanese (basic particles and sentence structure and some vocabulary), but as you can imagine I’m still struggling with a lot of day-to-day stuff ;-)
I noticed that, in shops, basically nobody greats me with こんにちは konnichiwa or こんばんは konbanwa. If I do so, I get greeted back the same way (probably out of courtesy). But of course I would like to greet people (in this case store clerks) the common way. But, for the life of me, I can’t understand what exactly they are saying when greeting me. I thought for a while for hello they say すみません sumimasen, but I couldn’t find any reference for すみません being used in such a way. For goodbye, I honestly have no idea what to say (or what they are saying). I usually say “ありがとう ございます arrigato gozaimasu” and leave.
TL;DR: What’s the common way to say hello and goodbye in stores in Japan? An answer with kana (no kanji) would be very much appreciated :-)
Edit: Thanks for pointing out the duplicates in the comments, they are very helpful. I still accepted bjorn’s answer since it was also explained what the clerks actually say when I enter a store and what to say when I leave. Bonus points for adding the section about restaurants, the answer really helped me :-)