1. What's the price of this?
2. What's price for this?
3. What's the price of the hat?
4. What's the price for the hat?
---------------------------
Which questions are grammatical? Do we have to sue 'of' or 'for?
All are fine.
These two prepositions are pretty much interchangeable for this use.