Can i get the front of my iphone 4 fixed and how much does it cost?

It's totally shattered.

Check EBAY FOR THE PRICES they are really cheap

I took my old one to the apple store and they fixed it for free.

You can get it replaced if your warranty is still valid (from the apple store or wherever you got it from). But if your warranty is out there are a few options:
1. Pay the apple store to replace it for you (Expensive in my opinion, totally overpriced)
2. Go to other third-party (?) repair stores to replace it for you (it is still expensive but it is a lot cheaper than the apple store and most of the places just fix it for you on the spot)
3. D. I.Y. Got the ebay and find a replacement and replace it yourself. It's usually the cheapest. They also send the instructions on how to fix it (or go to youtube) and they even send you the tools to fix it too. And if you are buying a replacement off ebay you can get a different colours and replace it with the colour you like which the other options won't do for you.

Hope this helped.

A few months ago, my girlfriend dropped her iPhone 4 at an amusement park and the screen was smashed. Unless the actual LCD screen inside was smashed, which it probably wasn't, you can take it into any Apple store and get it replaced for cheap. It takes around 15 minutes to fix, and in Canada cost my girlfriend $29.99.

Best of luck