TheCartPress defines useful PHP functions for use in Themes or in plugins development. Those functions has been defined in the same way WordPress has defined its Template Tags.
This article lists most of the Buy Button Template Tags defined in TheCartPress. Any developer can see how to use them in the file thecartpress/themes-templates/buy_button-simple.php