Page 1 of 3 123 LastLast
Results 1 to 10 of 21
  1. #1
    Join Date
    Oct 2009
    Location
    Osaka, Japan
    Posts
    44
    Plugin Contributions
    0

    Default Still can't get.

    1) I have been reading very carefully KH's book, the Tutorials FAQ and the various discussions concerning how to create custom templates but still do not get it. what else I should read?
    2) When the instructor says " copy the includes/templates/template_default/css directory" does it mean copy the whole includes directory upto the ccs file or simply copy the css file in that directory?
    Thank you.
    Alfred @ completely bewildered.

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Still can't get.

    If you have created a template called YOUR_TEMPLATE_NAME, it means copy the directory (and all its contents) called "css" in includes/templates/template_default to includes/templates/YOUR_TEMPLATE_NAME to create a new folder includes/templates/YOUR_TEMPLATE_NAME/css
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Sep 2009
    Location
    Stuart, FL
    Posts
    13,874
    Plugin Contributions
    96

    Default Re: Still can't get.

    I've found the chart provided by this contribution to be helpful: http://www.zen-cart.com/index.php?ma...roducts_id=298

  4. #4
    Join Date
    Oct 2009
    Location
    Osaka, Japan
    Posts
    44
    Plugin Contributions
    0

    Default Re: Still can't get.

    Kuroi, Lat9
    Thank you for your kind help.
    What I have been trying to do is simply to ad my own header with logo, and have copied the custom folder, which is in the includes/templates/custom directory, and renamed it customwm.
    In the customwm folder, I replaced header_bg with my own header_bg and log in the images folder and uploaded into /templates folder under the includes director as follows:
    includes/templates/
    and the same level in the templates folder:
    custom
    cumstomwm
    CUSTOM_TEMPLATE (Japanese template kindly provided by SR Ward development)
    template-defaulte
    I have also changed template_info PHP as instructed in the book.

    However, my customwm is not overriding the original custom folder. The only way that I could replace the original zen cart header and logo with my own header and logo was to replace them directly in the images folder in the the custom folder.
    Why is the files in the customwm folder are not not overriding the original files in the custom folder?

    My understanding is that if I modify directly any file located in the custom folder under templates in the include directory, they will be overridden when there is an update of the zen cart, and I will have to re-start all over again.

  5. #5
    Join Date
    Aug 2004
    Location
    New York City
    Posts
    7,174
    Plugin Contributions
    0

    Default Re: Still can't get.

    Quote Originally Posted by salib View Post
    Kuroi, Lat9
    Thank you for your kind help.
    What I have been trying to do is simply to ad my own header with logo, and have copied the custom folder, which is in the includes/templates/custom directory, and renamed it customwm.
    In the customwm folder, I replaced header_bg with my own header_bg and log in the images folder and uploaded into /templates folder under the includes director as follows:
    includes/templates/
    and the same level in the templates folder:
    custom
    cumstomwm
    CUSTOM_TEMPLATE (Japanese template kindly provided by SR Ward development)
    template-defaulte
    I have also changed template_info PHP as instructed in the book.

    However, my customwm is not overriding the original custom folder. The only way that I could replace the original zen cart header and logo with my own header and logo was to replace them directly in the images folder in the the custom folder.
    Why is the files in the customwm folder are not not overriding the original files in the custom folder?

    My understanding is that if I modify directly any file located in the custom folder under templates in the include directory, they will be overridden when there is an update of the zen cart, and I will have to re-start all over again.
    Yes, if you modify the files that came with Zen Cart, your work will be lost when you update/upgrade.

    Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

    Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.
    Mary Ellen
    I came; I saw; I Zenned
    Taking over the world... one website at a time
    Make sure brain is engaged before putting mouth in gear... or fingers to keyboard.

    Holzheimer
    Fan Odyssey

  6. #6
    Join Date
    Oct 2009
    Location
    Osaka, Japan
    Posts
    44
    Plugin Contributions
    0

    Default Re: Still can't get.

    Thank you.


    Please accept my apologies for being a little dumb
    Very stupid of me, I must be getting hysteric.
    In previous massage I should have written "classic" folder instead "custom" folder.

    Yes, I have copied the classic folder (and not the custom folder) in the directory includes/templates/classic.
    Please allow to rephrase again what I did:
    I copied the the classic folder and renamed it customwm and in this customwm folder, I replaced header_bg with my own header_bg and log in the images folder and uploaded into /templates folder under the includes director as follows:
    includes/templates/
    and the same level in the templates folder:
    classic
    cumstomwm
    CUSTOM_TEMPLATE (Japanese template kindly provided by SR Ward development)
    template-defaulte

    I have also changed template_info PHP as instructed in the book.

    However, it does not work.

  7. #7
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Still can't get.

    custom
    customwm
    CUSTOM_TEMPLATE (Japanese template kindly provided by SR Ward development)
    template-default

    Are these all the exact folder names? A standard Zen Cart installation will have /template_default/ and /classic/ folders. Those will be overwrittten in an upgrade, but any other names will not. You may have a localization which comes with one or more template folders; what folders came with your Japanese installation? The creators of your localization may have a standard template name which you will need to modify to avoid being overwritten by a new localization version.

    There are also other template folders you will need to copy and modify, in /includes/languages/ and possibly in /includes/modules/.


    OK, first question already answered:)

  8. #8
    Join Date
    Oct 2009
    Location
    Osaka, Japan
    Posts
    44
    Plugin Contributions
    0

    Default Re: Still can't get.

    Yes, these are the exact names of these folders
    Originally, there were only the classic and template_default folders in the templates folder in the includes directory when I installed the full set of zen cart ver 1.3.8a (12.11.2007).

    The CUSTOM_TEMPLATE folder was added when I uploaded the Japanese language package, CKD-Zen-Cart-Japanese-Pack1.0-UTF-8, to the server.

    After testing the newly installed zen cart, I wanted to add my header and logo and copied the classic folder in the templates folder and renamed it "customwm" and replaced header_bg and the logo in the images folder with my own header and logo hoping that it would override the classic folder, but it does it.
    I though that I may have to use tools to select customwm, but when I did that only the header and the logo appear on the main page. I must be missing something important.

    I though of copying the whole include directory and add customwm into the templates folder on the same level of classic folder in the templates folder and upload it to the server once again but I am afraid that I may damage the Japanese language template.

    Any advice?
    Thank you.

  9. #9
    Join Date
    May 2008
    Posts
    250
    Plugin Contributions
    1

    Default Re: Still can't get.

    When you copied the classic folder and renamed it, did you also modify the file 'template_info.php'?

    When you go to Admin > Tools > Template Selection do you see both Classic AND customwm?

  10. #10
    Join Date
    Jul 2005
    Location
    Upstate NY
    Posts
    22,010
    Plugin Contributions
    25

    Default Re: Still can't get.

    Did you make /customwm/ folders matching the /classic/ folders in the /includes/languages/ folder?
    Do you get the Japanese text output? Have you tried selecting the CUSTOM_TEMPLATE template which came with the Japanese pack? Is that option available?

 

 
Page 1 of 3 123 LastLast

Similar Threads

  1. Still can't get multiple photos to show
    By possien in forum General Questions
    Replies: 4
    Last Post: 6 May 2010, 11:10 PM
  2. Still can't get rid of weight displays!
    By MJA in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 10 Jan 2007, 12:30 AM
  3. Moving Zen cart to new host, can I still get 1.3.0 somwhere
    By adelante in forum Installing on a Linux/Unix Server
    Replies: 3
    Last Post: 12 Oct 2006, 10:55 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