OK, so now it works and posts to the details table also. That's good. That means the change that really fixed the issue was moving the GetContent to the top.
What is happening that's causing code snippets like GetContent and require_once("WA_eCart/WA_eCart_Database_PHP.php"); to be placed on the wrong lines? Its really problematic (and costing us a fair bit of time and grey hairs) when we build new carts or new sites and it seems that it's "not working" when all that's really wrong is the code is in the wrong position.
Can something be done to fix this?