sentence1: A cheerful buon giorno (good day) or buona sera (good evening) can work wonders when entering or leaving a shop or restaurant.
sentence2: When you get in or out of a shop or restaurant, a cheerful  good day or good evening can work wonders.