Results 1 to 5 of 5
  1. #1
    Join Date
    Jul 2010
    Posts
    106
    Plugin Contributions
    0

    Default Use Of Override System

    hello

    just getting to grips with Zen and have noticed the override system

    I have edited certain files when defining for example the text displayed on the visitors cart/members cart popup and a lot of other similar edits-without using the override system

    does this mean I will have problems for future upgrades?

    the only edits I have done are related to wording displayed,and not to functionality

    thanks in advance for any advice

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

    Default Re: Use Of Override System

    Quote Originally Posted by trickobrien View Post
    I have edited certain files when defining for example the text displayed on the visitors cart/members cart popup and a lot of other similar edits-without using the override system

    does this mean I will have problems for future upgrades?
    Yes. The next time you upgrade, you'll clobber all your changes.

    To prevent this, create overrides folders and start moving your changes into there.
    (e.g. includes/languages/english/YOUR_TEMPLATE and so forth.)
    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.

  3. #3
    Join Date
    Jul 2010
    Posts
    106
    Plugin Contributions
    0

    Default Re: Use Of Override System

    ok so to move all those into override folders means i am left with original files which have still been edited-should i upload files which havent been edited by me? to replace those?

    and also when you say clobbered on upgrade-do you mean script wont upgrade,or i would just lose what i have edited?

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

    Default Re: Use Of Override System

    Let's say you edited

    includes/languages/english/shopping.cart.php

    without using the overrides system. Then in the next version, this file gets upgraded. If you just upload all the files which were changed in the new version, you will overwrite your changes and lose them.

    To prevent this, create a directory using the name of your template (let's say it's YOUR_TEMPLATE):

    includes/languages/english/YOUR_TEMPLATE

    then copy

    includes/languages/english/shopping.cart.php
    to
    includes/languages/english/YOUR_TEMPLATE/shopping.cart.php

    For completeness, yes, restore the original
    includes/languages/english/shopping.cart.php

    from a fresh download. That way, if this file changes in a future release, you can just compare the copy you have with the new copy and apply these changes to

    includes/languages/english/YOUR_TEMPLATE/shopping.cart.php
    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.

  5. #5
    Join Date
    Jul 2010
    Posts
    106
    Plugin Contributions
    0

    Default Re: Use Of Override System

    Ok,makes sense to do it,I see now that this system allows for customization,without coding yourself out of future upgrades

    thanks for your help swguy

 

 

Similar Threads

  1. Didn't use the override system and want to upgrade
    By Hyena in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 5 Aug 2011, 01:11 PM
  2. Clarification needed - use admin panel or use an override file???
    By mokijo in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 8 Jan 2010, 12:45 AM
  3. Did not use the Override System
    By res in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Aug 2008, 05:23 AM
  4. Override system
    By ctpro in forum Templates, Stylesheets, Page Layout
    Replies: 15
    Last Post: 5 Jun 2007, 04:41 AM
  5. Override System
    By DRenaud in forum Basic Configuration
    Replies: 5
    Last Post: 11 May 2007, 12:14 AM

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