There are 2 double bonds $\ce{C=C}$ present within each piperic acid molecule, thus when piperic acid reacts with hot excess $\ce{KMnO4}$, it oxidised into a carboxyllic acid. Why is $\ce{CO2}$ produced?
The carbon atom bonded directly to the benzene ring will get oxidised into a carboxylic acid and also that the carbon bonded to the $\ce{COOH}$ group will get oxidized also to a carboxylic acid to form a dicarboxylic acid. What changes will take place to the other 2 carbon atoms.