Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Including jquery with ready doc statements

    Just like there's built-in support for plugin javascript, there's similar support for related onload events:
    http://www.zen-cart.com/wiki/index.p...verride_How-To
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  2. #12
    Join Date
    Jan 2007
    Posts
    1,484
    Plugin Contributions
    10

    Default Re: Including jquery with ready doc statements

    There's so much to ZC that it's very easy to learn something (or two or ten) new every day with this awesome cart. Thanks for that link, I never knew that it had that capability!

    Zen Cart and it's community are the best!!

  3. #13
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,289
    Plugin Contributions
    22

    Default Re: Including jquery with ready doc statements

    I do love Zen Cart for that. I don't want to become the "expert" who knows every single detail. That would be boring! Learning is more fun.

    So I see how that works but it does start with the index.php file. I was hoping to do this without altering core files. I certainly haven't come up with another option though.

    Can you think of any way to do without altering core files?
    The full-time Zen Cart Guru. WizTech4ZC.com

  4. #14
    Join Date
    Jan 2004
    Posts
    66,364
    Blog Entries
    7
    Plugin Contributions
    274

    Default Re: Including jquery with ready doc statements

    Create your own autoloader config file which loads your own custom init_readydoc file which builds the variables you want to output in your template and then echo them in whichever template file you want them to appear.

    The "building" within the init file could be as simple as conglomerating several readydoc text files stuffed in a custom template folder's subfolder just like the onload does now. Or maybe a yaml file or something similarly contemporary.
    .

    Zen Cart - putting the dream of business ownership within reach of anyone!
    Donate to: DrByte directly or to the Zen Cart team as a whole

    Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
    Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

  5. #15
    Join Date
    May 2006
    Location
    Gardiner, Maine
    Posts
    2,289
    Plugin Contributions
    22

    Default Re: Including jquery with ready doc statements

    oh, thanks so much! That gives me something to get my teeth into!
    The full-time Zen Cart Guru. WizTech4ZC.com

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. SSL Issue with jQuery
    By contrive.it in forum General Questions
    Replies: 3
    Last Post: 23 Aug 2011, 07:13 AM
  2. A better way of dealing with large define() statements?
    By gjh42 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 19 May 2011, 01:37 PM
  3. Help with Jquery
    By tthenne in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 23 Apr 2011, 01:58 AM
  4. separating pages with body ID and if/then statements
    By doodlebee in forum Templates, Stylesheets, Page Layout
    Replies: 13
    Last Post: 29 Jan 2007, 02:55 PM

Bookmarks

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
Zen-Cart, Internet Selling Services, Klamath Falls, OR