Aka selling different styles of pumpkin at different price per weight. The seller can sell to people willing to pay more for various styles, and people willing to pay more for various sizes. And to people wanting to spend less, and everyone in between. Which is what already happens.
One would need to know what a typical amount of waste is and the cause of that waste to determine if there is too much waste and how to fix it. But I am guessing whatever waste there is now is a pretty optimal amount of waste unless there is some new development that reduces the volatility of producing pumpkins.
Farming in general is like that, since so many variables are outside of peoples’ control. You have to aim for extra even if you are not projecting to sell all of it, assuming the cost of making the extra is absorbable.
This would encourage people to shop early as they would get the pick of the crop - so to speak. Latecomers to the party would have less choice, obviously, but would still be incentivised to buy anyway since there are not that many alternative pathches to choose from in a given area.
The price could also be reduced as time goes by so the day before halloween you're almost certain to sell the most amount possible.