Outside the big cities, make a habit of saying an appropriate Bonjour or Au revoir when entering or leaving a shop or cafe.
It's not considered polite to talk to shopkeepers in France unless they speak to you first.