Outside the big cities, make a habit of saying an appropriate Bonjour or Au revoir when entering or leaving a shop or cafe.
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.