We can't help you making things we can only help you correct things you couldn't manage to do on your own.
What you should do is write a little piece of JavaScript which will check if the user has passed a certain point on your page, you can do that with the onScroll
event and with the offsetheight
.
If the user is passed the point then apply the class fixed
to your checkout, if not then remove the class (don't forget this, users tend to scroll up as well). Next create a fixed CSS class and make sure the cart is positioned correctly on the screen.
Good luck