It seems you have not socialised your dog as a pup. All dogs must be taken to different places and situation to get them used to it as a pup. Any how you can still try to.
Its natural for a dog to check out its new surroundings.
Try exercising him or playing with him and then taking him out to these new places. By doing so he will already be tired and will not have so much energy, plus have you trained him before with basic obedience early, if not then start that first before taking him out. Its a must only then will your dog listen to you.
If basic obedience is done earlier then you can also at first take him to these new places regularly and may be first let him be in the car with you and let someone else do the shopping. be careful of the heat and keep the windows down or ac on. If he acts calm then take him out but if he jumps around and does not behave himself, put him back in the car.
I personally dont think its a good idea to take your dogs out to the market etc. because it can be hot, dirty and he can pick up infestions from stray dogs, get lost, etc.