Results 1 to 10 of 15

Hybrid View

  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,721
    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,532
    Plugin Contributions
    127

    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 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?

 

 

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