Page 2 of 2 FirstFirst 12
Results 11 to 15 of 15
  1. #11
    Join Date
    Jan 2004
    Posts
    58,258
    Blog Entries
    3
    Plugin Contributions
    106

    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!
    Donations always welcome: www.zen-cart.com/donate

    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,086
    Plugin Contributions
    4

    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
    Charlottesville VA
    Posts
    1,193
    Plugin Contributions
    18

    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?

  4. #14
    Join Date
    Jan 2004
    Posts
    58,258
    Blog Entries
    3
    Plugin Contributions
    106

    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!
    Donations always welcome: www.zen-cart.com/donate

    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
    Charlottesville VA
    Posts
    1,193
    Plugin Contributions
    18

    Default Re: Including jquery with ready doc statements

    oh, thanks so much! That gives me something to get my teeth into!

 

 
Page 2 of 2 FirstFirst 12

Similar Threads

  1. Statements skipped during the upgrade from 1.38a to 1.3.9h
    By musicfreer in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 13 Jan 2011, 08:40 PM
  2. Skipped Upgrade Statements
    By twofair in forum Upgrading from 1.3.x to 1.3.9
    Replies: 3
    Last Post: 7 Nov 2010, 10:29 PM
  3. SQL statements
    By jasonsmith991 in forum General Questions
    Replies: 3
    Last Post: 30 Sep 2010, 09:32 PM
  4. Meta statements
    By rdcast in forum General Questions
    Replies: 1
    Last Post: 14 Mar 2010, 07:56 PM
  5. Privacy & Conditions Statements
    By tweakage in forum General Questions
    Replies: 2
    Last Post: 5 Jun 2006, 01:21 AM

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
  •