Joan: Actually plain baking soda works well and is cheap. Leave it on the carpeting for a few hours... then vacuum.
I agree with baking soda. It absorbs the smells.
Baking soda is what I have always used. No need for unnecessary chemicals in the house. I buy in 15 pound bags at any warehouse type store.