Sorry, I haven't delved into the add to cart functions at all. There is info in the wiki about working with add to cart - in Developers > Developers API Tutorials, look for "Real World Example" and others.