The musical you're likely thinking of is She Loves Me, the 1963 Broadway classic (based on Miklós László's play Parfumerie). Set in a Budapest perfume shop, it features romantic complications among the staff.
The song "Try Me" includes a scene where one character detains another in the shop—a moment of comic tension that epitomizes the show's blend of charm and theatrical ingenuity. The musical has been revived multiple times and inspired the film You've Got Mail.