So, I know there is still an open question of a link to explain the sequence and structure of the cart loading, which is likely to help. I usually get around understanding this through review of the indes.php file which processes the input and conditions, loads files that then also load files, etc... I thought I had seen something that provided a breakdown of the process for a general cart, but I also think that it was on someone's "personal" website when I had looked a few years back.
Regarding the location(s) to put calls to your "clock" or other features. Assuming you wanted saaya a javascript clock where the time presented is a "consistent" with the current time (seconds incrementing) then there are probably portions og that code that should be in the html_header file or loaded only when a particular page is/was being displayed. Typically the "active" portion would then be loaded in a file that is associated with the template object being displayed. To have said object (clock) display on every page, typically the display portion would be in one of the includes/templates/YOUR_TEMPLATE/common files dependent on where on the page it is to be displayed.
Sorry to be so generic, but seems more like a learning situation compared to a specific fix.



Reply With Quote
