There are an ample amount of pumpkins to smash throughout the game, but if you need to farm them, there are dozens in The Onion Quarter.
If, when completing The Onion Quarter, you're still missing this achievements, simply reload the area and start smashing again.