Page 1 of 2 12 LastLast
Results 1 to 10 of 15
  1. #1
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default Override for includes/modules/pages?

    Taking this upgrade opportunity to improve my grasp of the override system.

    I did find this in the Wiki, but I am yet uncertain of its interpretation for my example below.

    http://www.zen-cart.com/wiki/index.p...tem_simplified

    Wherever you see a folder named "classic" you can safely add your own /CUSTOM folder.
    Code:
        modules
            classic
            CUSTOM
    Does this mean that if I have a customization for the checkout confirmation page, I can do this:

    includes/modules/[MY_CUSTOM_TEMPLATE]/pages/checkout_confirmation/header.php

    ?

    Muchas gracias.

    ---Diana

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Override for includes/modules/pages?

    includes/modules/[MY_CUSTOM_TEMPLATE]/pages/checkout_confirmation/header.php
    Sorry, no it does not.
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Jul 2005
    Location
    Charlottesville, VA
    Posts
    431
    Plugin Contributions
    0

    Default Re: Override for includes/modules/pages?

    thanks for the speedy reply, Kim!

    Saved me some bumbling-around time.

    ---Diana

  4. #4
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Override for includes/modules/pages?

    Kim, are you saying the overrides can only be one level deep?

    i.e.
    /includes/modules/*.php
    can be replaced in
    /includes/modules/custom/*.php

    and

    /includes/modules/sideboxes/*.php
    can be replaced in
    /includes/modules/sideboxes/custom/*.php

  5. #5
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,476
    Plugin Contributions
    126

    Default Re: Override for includes/modules/pages?

    In includes/modules/sideboxes, there's a "classic" directory. This is your clue that the directory can be overridden. The directory includes/modules/pages does not have a classic subdirectory and cannot be overridden, so be sure to make a backup of (and notes about) any files you change.

    The things you can change in includes/modules/custom are files from includes/modules, such as column_left.php.

    Good luck,
    Scott
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  6. #6
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Override for includes/modules/pages?

    And do I understand correctly, 'template_default' is the exception to the rule?

    i.e.
    any file / dir. within the 'template_default' dir. can be copied over, or are we restricted to just 4: common, css, images, templates, and their subsequent files?

  7. #7
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,476
    Plugin Contributions
    126

    Default Re: Override for includes/modules/pages?

    template_default is the baseline. Copy out of here into your own template and start modifying. This directory is overwritten every release, so you don't want to modify files in here.

    Good luck,
    Scott
    That Software Guy. My Store: Zen Cart Support
    Available for hire - See my ad in Services
    Plugin Moderator, Documentation Curator, Chief Cook and Bottle-Washer.
    Do you benefit from Zen Cart? Then please support the project.

  8. #8
    Join Date
    Jan 2004
    Posts
    66,440
    Plugin Contributions
    279

    Default Re: Override for includes/modules/pages?

    Yes, overrides outside the "templates" folder are 1-level deep.

    http://www.zen-cart.com/index.php?ma...roducts_id=298
    .

    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.

  9. #9
    Join Date
    Oct 2006
    Location
    Alberta, Canada
    Posts
    4,571
    Plugin Contributions
    1

    Default Re: Override for includes/modules/pages?

    Nice chart, DrByte. Thanks for pointing it out. Don't think I would have found it otherwise. Hopefully, the downloads section will one day become searchable.

    The chart indicates that only 3 main directories are worked with for overrides.
    includes - languages, modules, templates

    Although the chart looks like it is/was part of something with more information on overrides, if I know the 3 above dir. are all I need to focus on then it definitely helps to focus on the required areas.

    I find I'm asking a lot of questions on the override setup because I have not yet wrapped my head around its proper usage. Will be doing a CSS Template shortly that I would like to freely offer to others and that should answer a lot of questions as well. Don't know about others but completely understanding how the overrides setup works, is so very important and for many reasons.

  10. #10
    Join Date
    Feb 2004
    Posts
    1,774
    Plugin Contributions
    14

    Default Re: Override for includes/modules/pages?

    Quote Originally Posted by swguy View Post
    . The directory includes/modules/pages does not have a classic subdirectory and cannot be overridden, so be sure to make a backup of (and notes about) any files you change.
    Scott
    Why is that ? I just came across this trying to be Zen-like and come to find I can't. Is there plans on using overrides here in the future?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. v151 Override System in re includes/modules/pages/xxxxxx
    By KenBaker in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 23 Oct 2013, 02:09 AM
  2. Override of includes/modules/pages
    By sfatula in forum Templates, Stylesheets, Page Layout
    Replies: 10
    Last Post: 6 Apr 2010, 05:21 PM
  3. how to override includes > modules > pages > page_folder > header_php.php
    By monkeytown in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 1 Feb 2008, 05:45 PM

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