סימן נח סעיף יב
הַנִּכְנָס לְתוֹךְ חֲנוּת שֶׁל בְּשָׂמִים אוֹ (אַפָּאטָהעק) בֵּית מִרְקַחַת וְנִתְכַּוֵּן לְהָרִיחַ, מְבָרֵךְ בּוֹרֵא מִינֵי בְּשָׂמִים, כִּי הַבְּשָׂמִים שֶׁבַּחֲנוּת עוֹמְדִין לְהָרִיחַ, דְּנִיחָא לֵיה, לְבַעַל הַחֲנוּת שֶׁיָּרִיחוּ בְּנֵי אָדָם וְיִקְנוּ. נִכְנָס וְיוֹצֵא נִכְנָס וְיוֹצֵא, אִם הָיְתָה דַּעְתּוֹ מִתְּחִלָה לַחֲזוֹר, אֵינוֹ צָרִיךְ לְבָרֵךְ. וְאִם הִסִּיחַ דַּעְתּוֹ אוֹ שֶׁיָּצָא וְשָׁהָה זְמַן מְרֻבֶּה אוֹ שֶׁנִּכְנַס לַחֲנוּת אַחֶרֶת, צָרִיךְ לְבָרֵךְ בְּכָל פָּעַם.
However, if you enter a store that sells spices, or a pharmacy, and you intend to smell them, you should say Borei minei vesamim, since the spices in the store are displayed in order to be smelled, as this is the shopkeeper's interest, for the aroma will make people buy [the spices]. If you keep going in and out of the store, [and when you first said the berachah,] you had in mind to return to the store, you need not repeat the berachah. But if you were distracted9If you remain in the spice store all day, you say only one berachah, even if your thoughts are diverted; this is so because you are continuously enveloped in the aroma. (Mishnah Berurah 217: 4) or you stayed away a long time from the store or you visited another store, you must repeat the berachah when you return.
תנא דבי אליהו כל השונה הלכות בכל יום מובטח לו שהוא בן העולם הבא שנאמר הליכות עולם לו אל תקרי הליכות אלא הלכות (נדה ע"ג.)