Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Hybrid View

  1. #1
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,535
    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.

  2. #2
    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?

  3. #3
    Join Date
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,535
    Plugin Contributions
    127

    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.

  4. #4
    Join Date
    Jan 2004
    Posts
    66,446
    Plugin Contributions
    81

    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.

  5. #5
    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.

  6. #6
    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?

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

    Default Re: Override for includes/modules/pages?

    I have no earthly idea. But if you feel strongly - and it appears you do - put a note in the suggestions forum. Adding a donation might help it percolate up too.

    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,446
    Plugin Contributions
    81

    Default Re: Override for includes/modules/pages?

    Quote Originally Posted by qhome View Post
    Is there plans on using overrides here in the future?
    No .
    .

    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
    Feb 2006
    Location
    Tampa Bay, Florida
    Posts
    10,535
    Plugin Contributions
    127

    Default Re: Override for includes/modules/pages?

    Well there's your answer!

    What I do in cases like this is to keep a copy of the unchanged file as

    <filename>.orig

    Then when it comes time to upgrade, I can consult my notes AND search for *.orig to be sure I catch all the files that need manual merging.

    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.

  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
    Well there's your answer!

    What I do in cases like this is to keep a copy of the unchanged file as

    <filename>.orig

    Then when it comes time to upgrade, I can consult my notes AND search for *.orig to be sure I catch all the files that need manual merging.

    Good luck,
    Scott
    Ya i used to do that.. but now I find it easier to backup the new version... then after the upgrade overwrites my existing file, I can just merge it with a copy of my backup.

 

 
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