I am using the wp e-commerce plugin and wanted to display some information in the header of the website (display number of items in the cart). The problem is that I can only display it in the main content area or lower on the page. I'm assuming the plugin isn't loading until later in the page. Is there a way to run this plugin before the page is generated? I believe i might need a hook, but im not too familiar with them.
When downloading a website it is like this (I hope I am right): 1. load HTML-File 2. load CSS files (in head) 3. load JS files (if in head) 4. load graphics addressed in HTML 5. load graphics addressed in CSS files 6. JS files (at bottom) The rendering of the website is (AFAIK) between 3 and 4. JavaScript is getting executed after 6, if I am correct. I think your plugin needs JavaScript, no?
Your best bet would be to ask over at the wp-commerce forum or search there forum for the answer as it may have already been asked.