Outside the big cities, make a habit of saying an appropriate Bonjour or Au revoir when entering or leaving a shop or cafe.
372451
When you're anywhere in France that isn't a big city, it is good to say hello or goodbye when you enter and exit a shop.
372452
It's not considered polite to talk to shopkeepers in France unless they speak to you first.