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