I'd like to know in what context can the word "joint" be used as a synonym for place.
Is it used for places that sell products and/or services?
It's a very common and informal way to refer to a business, usually one that sells food or drink. "I run a burger joint in Anchorage." "Lets meet at that joint on the corner of 5th and Main." Usually it will refer to a small, casual restaurant or bar.
The word joint has lots of meanings, but the relevant OED definition here is...
joint 14 a. slang or colloq. (chiefly US).
A partnership or union, or a place of meeting or resort, esp. of persons engaged in some illicit occupation; spec. (in America) a place illegally kept (usually by Chinese) for opium-smoking, an opium-den; also applied to illicit drinking-saloons.
More generally, a place; a house.
OED also note separately the now somewhat dated (also mainly US) slang usage the joint = prison. They don't specifically say how these usages arose in the first place, but I think it probably turns on the "core" definition joint = the place or part at which two or more things are joined or fitted together; a junction. That's to say, a place where people meet socially (not necessarily to smoke opium or cannabis joints).
In general, joint is definitely more likely to be used of a retail outlet if it sells food/drink rather than, say, clothes or newspapers. It also tends to imply the establishment is small, selling food/drink consumed on the premises, or "fast food" consumed immediately after purchase (still in the vicinity of other customers).
So yes, joints often "sell things". But usually they're places people go to as much for social interaction as for the products/services they actually buy (such as licensed premises, coffee shops, burger bars, etc.). If a domestic residence is referred to as "So-and-so's joint", you can probably assume people often use it as a meeting place to see each other, not just to visit whoever lives there.
There's also the idiomatic case the joint (look over an establishment, usually with intent to rob), but I can't really see how that relates to the more general usage. It seems to be something of a "one-off".
It's a slang term, referring to a place where people gather to socialize and engage in activities that are slightly frowned upon in society. Good examples are a bar, a pool hall, or perhaps a casino. Very often, the term is used facetiously: "come on over and hang out at my joint" would be an invitation to come visit me at home.
"The joint" is also a slang term for prison, probably as a sarcastic reference to the meaning I have described above.
See definition 3 in this.
[edit] after reading all the notes, I see I hadn't thought of "burger joint, pizza joint" when I was making my answer. So, "casual eating place" is another pretty distinct definition. [/edit]
Also see Fats Waller's "This Joint is Jumpin", from 1943.
A common informal usage of joint meaning place is "let's blow this joint" to mean "leave this place," It is not used to mean "smoke this marijuana cigaraette".