In an 19th century style environment, shops would be small and there would be a shopkeeper or two around.  The shopkeeper would simply help customers get things off high shelves.

Alternatively, assuming the shorter races have the strength, a grabber tool could be provided to help them reach things on high shelves.  Google for "grabber tool for the handicapped" for examples.