Page 2 of 3 FirstFirst 123 LastLast
Results 11 to 20 of 21
  1. #11
    Join Date
    Jul 2010
    Location
    UK
    Posts
    29
    Plugin Contributions
    0

    Default Re: No custom folder need to add One ?

    Quote Originally Posted by Kenichi View Post
    No, stick to the tutorial https://www.zen-cart.com/tutorials/i...hp?article=142 for a custom template.

    Code:
    includes
       /templates
           /CUSTOM
              /common
              /css
                 stylesheet.css
              /images
              /sideboxes
              /templates
           template_info.php
    What custom folders (overrides) are for is to allow you to edit core/main files without them being wiped out in a future upgrade. For example, if you edit includes/languages/english/meta_tags.php these changes would be wiped out from uploading a fresh meta_tags.php in a future full-upgrade. If the coding of these files is changed in an update then it will be easy to compare.

    As stevesh said, just add override folders everywhere you see "classic"

    The *only* exception to this would be includes/templates where it's not really an override folder but rather your actual custom template.
    Am just not getting this
    stevesh stated

    I can't think of a circumstance where you would have folders in an override folder, so, no.

    For example, you will have a includes/languages/custom folder, and an includes/languages/english/custom folder.

    But you would have an includes/languages/english/html_includes/custom folder, not includes/languages/english/custom/html_includes

    and your telling me to use the file structure as

    includes
    /templates
    /CUSTOM
    /common
    /css
    stylesheet.css
    /images
    /sideboxes
    /templates
    template_info.php

    so inside the custom folder are FOLDERS

    /commom FOLDER
    /css FOLDER
    /images FOLDER
    /sideboxes FOLDER
    /templates FOLDER

    sorry for this but am just confused as i dont know what files have been updated ,i know for sure metatags has

    regards
    dave

  2. #12
    Join Date
    Oct 2008
    Posts
    254
    Plugin Contributions
    0

    Default Re: No custom folder need to add One ?

    No, sorry for the confusion, that's the format for your custom template (Notice the indentation in the code, each indent was meant to represent the next subdirectory)

    i.e. you will have

    includes/templates/YOUR-TEMPLATE-FOLDER(CUSTOM)/common
    includes/templates/YOUR-TEMPLATE-FOLDER(CUSTOM)/css
    includes/templates/YOUR-TEMPLATE-FOLDER(CUSTOM)/images
    includes/templates/YOUR-TEMPLATE-FOLDER(CUSTOM)/sideboxes
    includes/templates/YOUR-TEMPLATE-FOLDER(CUSTOM)/templates

    Don't try to think of your template as an override. includes/templates/custom is your own unique template that your site will be using.

    Notice the template "classic" (includes/templates/classic) see how it has many folders too?


    OVERRIDES are other folders with the same name as your custom template folder. Just like stevesh explained, you could add your CUSTOM(your template name) folders everywhere "classic" is.


    ***** includes/templates/classic is the original template. All folders in other locations called "classic" are its overrides.

    ***** you are making your own template and want to duplicate this. includes/templates/YOUR-TEMPLATE-NAME(custom) will be your template and all other folders called YOUR-TEMPLATE-NAME(custom) will be your overrides.

  3. #13
    Join Date
    Jul 2010
    Location
    UK
    Posts
    29
    Plugin Contributions
    0

    Default Re: No custom folder need to add One ?

    so i would need to make a folder

    includes/template/custom

    and in the custom folder it would have the sub directory

    includes/template/custom
    /css
    /images

    in the css folder i would have the stylesheet.css

    in the images folder i would have my modded header_bg.jpg

    is this correct ?

    in includes/language/english/html_includes/classic there are a load of files in this folder define_checkout_success.php etc, now i dont know if any of these files have been modified , so would i just make a custom folder like the path below

    includes/language/english/html_includes/custom and copy all the files from the classic folder to my custom folder

    as i am not sure what files have been modified

    hope you understand what i am trying to say

    regards
    dave

  4. #14
    Join Date
    Jul 2010
    Location
    UK
    Posts
    29
    Plugin Contributions
    0

    Default Re: No custom folder need to add One ?

    so i would need to make a folder

    includes/template/custom

    and in the custom folder it would have the sub directory

    includes/template/custom
    /css
    /images

    in the css folder i would have the stylesheet.css

    in the images folder i would have my modded header_bg.jpg

    is this correct ?

    in includes/language/english/html_includes/classic there are a load of files in this folder define_checkout_success.php etc, now i dont know if any of these files have been modified , so would i just make a custom folder like the path below

    includes/language/english/html_includes/custom and copy all the files from the classic folder to my custom folder

    as i am not sure what files have been modified

    hope you understand what i am trying to say

    regards
    dave

  5. #15
    Join Date
    Oct 2008
    Posts
    254
    Plugin Contributions
    0

    Default Re: No custom folder need to add One ?

    Correct.

    And yes, it would be a good idea to have those files, they are most likely changed since they include your contact us, shipping policies, privacy statement, etc

  6. #16
    Join Date
    Oct 2008
    Posts
    254
    Plugin Contributions
    0

    Default Re: No custom folder need to add One ?

    Might have misunderstood what you said, you will only have the subdirectories css and images in there, not another includes>templates>custom>includes>templates>custom

  7. #17
    Join Date
    Jul 2010
    Location
    UK
    Posts
    29
    Plugin Contributions
    0

    Default Re: No custom folder need to add One ?

    so if i want to use new buttons for example i would stick them in my

    includes/templates/custom
    /buttons
    /english


    is this correct

    regards
    dave

  8. #18
    Join Date
    Oct 2008
    Posts
    254
    Plugin Contributions
    0

    Default Re: No custom folder need to add One ?

    You'd just stick them in a folder called "buttons" with sub-directory "english" your custom template.

    Ex.

    includes/templates/custom/buttons/english


  9. #19
    Join Date
    Jul 2010
    Location
    UK
    Posts
    29
    Plugin Contributions
    0

    Default Re: No custom folder need to add One ?

    @Kenichi

    now i think i understand, i will make a start on my custom folders and let you know how it goes shortly

    thanks for all your help

    regards
    dave

  10. #20
    Join Date
    Jul 2010
    Location
    UK
    Posts
    29
    Plugin Contributions
    0

    Default Re: No custom folder need to add One ?

    i have the big royalmail installed

    in the read me it states the following

    1)find your zen-cart folder
    2) copy the files from big_royalmail_v2.3/images/icons/ to YOUR_ZC_FOLDER/images/icons/
    3) copy the files from big_royalmail_v2.3/includes/modules/shipping/ to YOUR_ZC_FOLDER/includes/modules/shipping/
    4) copy the files from big_royalmail_v2.3/includes/languages/english/modules/shipping/ to YOUR_ZC_FOLDER/includes/languages/english/modules/shipping/


    could you tell me the correct file path to my custom folders to put the modified files already installed - is it this below

    includes/modules/shipping/custom/

    regards
    dave

 

 
Page 2 of 3 FirstFirst 123 LastLast

Similar Threads

  1. Replies: 0
    Last Post: 20 Jul 2011, 02:17 PM
  2. I can't find the CUSTOM folder -- includes/languages/english/custom/header.php
    By Yammits in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 11 Jul 2010, 10:26 PM
  3. moving ZC from one folder to another folder
    By hazephase in forum Installing on a Windows Server
    Replies: 5
    Last Post: 1 Jun 2010, 11:40 PM
  4. Do I need custom sub-folder under admin?
    By Jazzyp in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 23 Feb 2009, 10:47 PM
  5. custom Add Customer email (need custom welcome email)
    By rennsix in forum All Other Contributions/Addons
    Replies: 1
    Last Post: 8 Dec 2007, 08:06 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