Catalysis of the reaction: S-adenosyl-L-methionine + 3,4-dihydroxy-trans-cinnamate = S-adenosyl-L-homocysteine + 3-methoxy-4-hydroxy-trans-cinnamate.
S-adenosyl-L-methionine:caffeic acid-O-methyltransferase activity