I like what Sasarund said.
Try teaching him the ''settle'' exercise
Put your foot on the lead so he can't move and jump about, but still has room to stand up.
As soon as he sits or lies down, drop a treat by his feet.
We have been doing this at class and if i took my pup anywhere he would jump about and now he will settle on command
x