Results 1 to 8 of 8
  1. #1
    Join Date
    Apr 2012
    Posts
    82
    Plugin Contributions
    0

    Default trouble with overrides and multiple addons

    i dont really know how to override i dont understand, http://www.zen-cart.com/content.php?...verride-system for example what if i have 2 header.php or english how can i override that one, example includes>languages>your template>english

  2. #2
    Join Date
    Apr 2012
    Posts
    82
    Plugin Contributions
    0

    Default Re: how to understand Override

    i just want to install http://www.zen-cart.com/downloads.php?do=file&id=75 to my free zen cart denim template but i dont know how to override etc like my admin > orders i already have orders do i need to copy some word etc

  3. #3
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    19,473
    Plugin Contributions
    3

    Default Re: how to understand Override

    In the case of the mod you mentioned, you would go through the mod folders, changing the name of any folder named YOUR_TEMPLATE to the name of your denim template's folders, and change the name of the YOUR_ADMIN_FOLDER folder to the name of your admin folder. Then upload the folders and files according to the instructions.

  4. #4
    Join Date
    Apr 2012
    Posts
    82
    Plugin Contributions
    0

    Default Re: how to understand Override

    YES BUT SOME of the files, i already have one, and when i compare the two files with the same name, most of t he code are diff their is no way i can merge the two, how to use t he override

  5. #5
    Join Date
    Feb 2005
    Location
    Lansing, Michigan USA
    Posts
    19,473
    Plugin Contributions
    3

    Default Re: how to understand Override

    Are you saying you already have installed other mods which modify some of the same files as the Tracking mod does, or your custom template did ?

  6. #6
    Join Date
    Apr 2012
    Posts
    82
    Plugin Contributions
    0

    Default Re: how to understand Override

    denimtemplate>include>language>yourtemplate>english
    same with
    package track>include>languages>yourtemplate>english

    i tried to merge the two but their is so many to change, i decided to override, how can i do that do i need to make a new folder include with complete files inside etc etc > language with complete files inside etc etc>

  7. #7
    Join Date
    Apr 2012
    Posts
    82
    Plugin Contributions
    0

    Default Re: how to understand Override

    and also the tpl_account_history_info_default do i need to get the tpl_account_history_info_default to my include>template>template default>template and merge them

  8. #8
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    21,964
    Plugin Contributions
    25

    Default Re: how to understand Override

    If you have two templates or mods that both contain an override of the same file, you will have to merge them. There is no other way to have them both work; if you were to have one override the other, the second one would not function correctly.


    To merge two customized versions of a file, you first need to identify all places where each of them differs from the original. Then you can merge the two together, bringing all custom code into the final result. If both of them modify the same line(s), you will have to understand exactly what they are doing and why in order to make a combined version. In some cases, it will not be possible to have both function at the same time.
    Last edited by gjh42; 9 Jun 2012 at 11:11 PM.

 

 

Similar Threads

  1. Need a addons for multiple images and color for single product.
    By neal99 in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 14 Oct 2010, 05:49 PM
  2. installing multiple addons with similar files
    By chemibase in forum All Other Contributions/Addons
    Replies: 4
    Last Post: 2 Jun 2010, 03:52 PM
  3. Trouble with adding multiple images to one product
    By Makrista in forum Setting Up Categories, Products, Attributes
    Replies: 1
    Last Post: 1 Sep 2008, 08:18 PM

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
  •