Thread: Very First Page

Page 3 of 3 FirstFirst 123
Results 21 to 25 of 25
  1. #21
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Very First Page

    Quote Originally Posted by DivaVocals View Post
    add a clock? need a better explanation..
    If I want to put a clock on my shopping cart that says the time, your local time, and want it to stay showing, do I put the SWF file and scripts etc in""/includes/templates/YOUR_TEMPLATE/common/html_header.php"?
    Learning Fast.
    Eden Craft Supplies

  2. #22
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Very First Page

    Is there a thread that explains the order at which the pages are loaded for the home page etc? E.G. the construction of the home page. If there is I could get a better understanding of Zencart and I would stop asking very stupid questions.
    Learning Fast.
    Eden Craft Supplies

  3. #23
    Join Date
    Mar 2008
    Location
    Brampton, Cumbria, United Kingdom, United Kingdom
    Posts
    816
    Plugin Contributions
    2

    Default Re: Very First Page

    Quote Originally Posted by mc12345678 View Post
    If the clock code needs to be in the area between <head> and </head>, then that code portion could be loaded there. If you're just looking to put a clock up and thinking that html_header is the place because it has html and is at the top of the page, no.
    Where would it best be put?
    Learning Fast.
    Eden Craft Supplies

  4. #24
    Join Date
    Jul 2012
    Posts
    16,816
    Plugin Contributions
    17

    Default Re: Very First Page

    Quote Originally Posted by adb34 View Post
    Where would it best be put?
    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.
    ZC Installation/Maintenance Support <- Site
    Contribution for contributions welcome...

  5. #25
    Join Date
    Jan 2007
    Location
    Los Angeles, California, United States
    Posts
    10,021
    Plugin Contributions
    32

    Default Re: Very First Page

    Quote Originally Posted by adb34 View Post
    Where would it best be put?
    Your questions are NOT stupid.. they are VAGUE.. It helps folks to not have to GUESS at an answer if you would post the DETAILS of what it is you are trying to do so an intelligent and ACCURATE answer can be supplied..

    So let's start with you giving an idea what this code you want to include looks like.. This will help us help YOU figure out where is the best place to put it.. Then you can tell us do you want this ONLY on the home page or on EVERY page, and WHERE on the page you want this clock to appear.. Post a link to you site so we can SEE what you see and not have to GUESS (and possibly provide you with incorrect and confusing information as a result..)


    post your code between the CODE tags so that the forum software doesn't parse it..

    [ CODE ] Your code goes here [ /CODE ]

    (remove the spaces before the brackets)
    Last edited by DivaVocals; 19 Aug 2014 at 04:49 PM.
    My Site - Zen Cart & WordPress integration specialist
    I don't answer support questions via PM. Post add-on support questions in the support thread. The question & the answer will benefit others with similar issues.

 

 
Page 3 of 3 FirstFirst 123

Similar Threads

  1. First Page very slow to load
    By Jims in forum General Questions
    Replies: 7
    Last Post: 22 Mar 2011, 01:11 PM
  2. First Question New (very) User
    By CoolHandFluke in forum General Questions
    Replies: 9
    Last Post: 30 Jan 2011, 06:49 PM
  3. Very basic, first timer question
    By kittycat in forum Templates, Stylesheets, Page Layout
    Replies: 2
    Last Post: 5 Jun 2007, 04:47 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg