Page 1 of 2 12 LastLast
Results 1 to 10 of 12
  1. #1
    Join Date
    Sep 2009
    Posts
    23
    Plugin Contributions
    0

    Idea or Suggestion Having trouble customizing title

    I’ve just begun to customize my new installation of the classic template. I don’t want anything fancy, just want to customize it. So I read the instructions about the override system and thought I was doing it correctly. Apparently not! Now I’m afraid I’ve done something seriously wrong and am wondering how to return to ground zero.

    I began with the title change. When it said to create a directory /includes/languages/english/CUSTOM I did, then copied a fresh meta_tags.php into it and made the appropriate changes. However I did not do this before I created a /includes/languages/CUSTOM as well. Although I can’t find it now, but some of the reams of information I read said to do that, but that now the ‘title’ had been moved.

    So. Now I have two new CUSTOM directories. One with an english.php in it and one with a meta_tags.php in it. Both with the edited ‘title’. Of course it doesn’t work. I then see that I have to use the name of the template NOT ‘CUSTOM’. I go to Admin-Tools-Template Selection to see the name of the template is Classic Contemporary Green, which, I think, cannot be correct…spaces and all… At this point I guess the template is called ‘classic’ and I rename my two directories ‘classic’. This is where I fear I went seriously wrong.

    I still have the default ‘title’ in the title bar (Zen Cart! The Art...) and now I realize I have too many ‘classic’ directories. includes/languages/classic has a empty.txt file in it not the one I copied and includes/languages/english/classic has a header.php in it that I didn’t put there. I do not see the two files I edited and copied anywhere.

    I hope you can follow this and I particularly hope someone can help me. What is the next step for me?

    This is the latest version of zc on a Linux box, if you need to know that. Thank you in advance.

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

    Default Re: Documentation on the Override System

    Quote Originally Posted by OneSister View Post
    Now I’m afraid I’ve done something seriously wrong ...
    No, not seriously wrong.
    Just need to clear up your understanding of how it works.
    And ... you're well on your way to that already.

    Quote Originally Posted by OneSister View Post
    I began with the title change. When it said to create a directory /includes/languages/english/CUSTOM I did, then copied a fresh meta_tags.php into it and made the appropriate changes. However I did not do this before I created a /includes/languages/CUSTOM as well. Although I can’t find it now, but some of the reams of information I read said to do that, but that now the ‘title’ had been moved.

    So. Now I have two new CUSTOM directories. One with an english.php in it and one with a meta_tags.php in it. Both with the edited ‘title’. Of course it doesn’t work.
    Understandable, and not actually "wrong", but ...
    Quote Originally Posted by OneSister View Post
    I then see that I have to use the name of the template NOT ‘CUSTOM’.
    ... as long as "CUSTOM" is the name of your template's folder, then using "CUSTOM" is fine.

    Quote Originally Posted by OneSister View Post
    I go to Admin-Tools-Template Selection to see the name of the template is Classic Contemporary Green, which, I think, cannot be correct…spaces and all… At this point I guess the template is called ‘classic’ and I rename my two directories ‘classic’.
    Correct.

    Quote Originally Posted by OneSister View Post
    This is where I fear I went seriously wrong.
    No. Not seriously wrong.

    You need to understand that "classic" is the name of the example/custom template that comes *with* Zen Cart. As such, some folders *already* have a folder named "classic" in them.
    So, in that case, you have 2 options:

    a) keep using "classic" ... in which case you'd use the existing "classic" folders (no need to make your own). The downside to this is that there might be a new "classic" folder in the next upgrade, and thus you'll have to be very careful to identify and preserve *your* unique changes compared to the ones that come with the next version.

    b) or make your own custom template too, calling it "CUSTOM" ... and then the language folders you've created will automatically be grandfathered into use.

    Quote Originally Posted by OneSister View Post
    I still have the default ‘title’ in the title bar (Zen Cart! The Art...) and now I realize I have too many ‘classic’ directories.
    Not sure what you mean by "too many".
    Quote Originally Posted by OneSister View Post
    includes/languages/classic has a empty.txt file in it
    Yes, that's the one that comes with Zen Cart. If you're going to just keep using "classic", then copy your customized english.php file into that folder.
    Quote Originally Posted by OneSister View Post
    and includes/languages/english/classic has a header.php in it that I didn’t put there.
    Right. That one comes with Zen Cart too. Again, if you're going to continue with using "classic", you'll need to put your customized meta_tags.php file there.


    There's a lot of useful info and links in the rest of the discussion in this same thread, above.
    Some people have found this map useful (link posted earlier too): 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.

  3. #3
    Join Date
    Sep 2009
    Posts
    23
    Plugin Contributions
    0

    Default Re: Documentation on the Override System

    Thanks again for such a quick reply. I'm trying to get this straight. I first created two dirs called CUSTOM. Then renamed 'classic'. I didn't need to do this as there was already enough 'classic' dirs, is that right?

    Okay, next problem with my understanding: In the includes/templates dir there is a 'classic'. Of course that's the default that came with the install. I just want to tweak this classic to work for us so, yes, we want to keep that one for now. But to avoid the problem you stipulate in a) above, I should create my own CUSTOM template, as you say.

    But - when I made dirs named CUSTOM they didn't work and when I thought about it, they shouldn't have, because the program didn't know to look for them. So, are you saying that I first need to copy the /includes/templates/classic and make a new dir in /includes/templates named CUSTOM to copy it into? Then continue with the instructions?

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

    Default Re: Documentation on the Override System

    The procedure for creating your own custom template (whether it's named "CUSTOM" or "billysplace" or "greeneggsandham") is fairly simple, and documented in the FAQ area ... some links to it area discussed elsewhere in this same thread, on previous pages above.

    You don't "have to" use something other than "classic", but we generally recommend you do.

    For now, I suggest you just use classic to prove to yourself that the software works as advertised.

    As to "renaming your CUSTOM folder to 'classic'", I'm absolutely certain that you didn't do that successfully, because your server wouldn't let you rename "CUSTOM" to "classic" if "classic" already existed. That's why your customized files didn't show up in the "classic" folders. Your fastest route to seeing immediate results is to copy your customized files into their respective "classic" folders.

    Then you can work on building and activating your own custom template according to the documentation, and moving your stuff out of "classic" and into your own new folders.
    .

    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
    Sep 2009
    Posts
    23
    Plugin Contributions
    0

    Default Re: Documentation on the Override System

    I would be happy to just use the classic for now, but of course I would want to customize it - title, text, etc. I know this will take some advanced study to accomplish all we might want to do for the future, but for now I just wanted to get a cart up so my non-profit could take donations.

    To just use the "classic" theme I created dirs called CUSTOM in includes/languages/CUSTOM with an edited english.php and one in includes/languages/english/CUSTOM with an edited meta_tags.php in it. This did not change the title.

    I know I have a lot to learn, but I was hoping to get something very simple running quickly.

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

    Default Re: Documentation on the Override System

    Quote Originally Posted by OneSister View Post
    To just use the "classic" theme I created dirs called CUSTOM in includes/languages/CUSTOM with an edited english.php and one in includes/languages/english/CUSTOM with an edited meta_tags.php in it. This did not change the title.
    So, as I said, move THOSE files OUT of your "CUSTOM" folder into the "classic" folders, and you'll see results quickly.

    You can work on making your own template afterwards.
    .

    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.

  7. #7
    Join Date
    Sep 2009
    Posts
    23
    Plugin Contributions
    0

    Default Re: Documentation on the Override System

    I tried to prove to myself that it works by just editing the existing meta_tags.php and saving it with a new title. This did not change the title either. Then I went back to thinking that I needed to work in the CUSTOM directory as the instructions explained. I believe I followed all the directions (and double and triple checked my work) and when I activate the new CUSTOM template and reset the layout boxes controller the screen is blank when I refreshed. When I tried to get back into admin -IT'S BLANK TOO.

  8. #8
    Join Date
    Sep 2009
    Posts
    23
    Plugin Contributions
    0

    Default Re: Documentation on the Override System

    I stepped on your reply and missed it until after I posted again. But what have I done to make the whole thing go blank? Do I have to reinstall? OMG...

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

    Default Re: Having trouble customizing title

    At the risk of duplicating stuff already in all the docs and FAQs, this is a summary of the very basic steps one can do to change the 'title' that shows in your browser:

    1. Edit /includes/languages/english/meta_tags.php and change the TITLE definition. Save to your server.
    2. Load the site in your browser, and you'll see the change.

    Now, if you want to properly separate your customized files from the original default files, you would do your edits in a copy of that file instead of editing the original:
    1. Choose which template you're going to use. You can only use templates properly built and accessible via the Template Select tool in your admin.
    2. Assuming you've selected "classic" then you'll make a copy of the /includes/languages/english/meta_tags.php file into /include/languages/english/classic/meta_tags.php, and do your edits there.
    3. Make sure "classic" is set as the active template in your admin Template Select tool. Load the site in your browser, and you'll see your changes.

    So, now, in YOUR case, if you've put the files in folders named "CUSTOM", but don't have a template properly built in /includes/templates/CUSTOM (with the required files in that folder (as described in other FAQ articles)), then your changes saved to the "CUSTOM" language folders will NOT show on your site.

    So ... I'm going to tell you to DELETE all your folders named "CUSTOM", and start all your edits again, using the existing "classic" folders.

    It seems like you're making all this WAY more complicated than it really is.
    .

    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.

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

    Default Re: Having trouble customizing title

    Blank pages are a result of making errors in your PHP edits, including mismatching quotation marks and leaving blank lines at the top or bottom of the file before the <?php or closing ?>

    Related FAQ: https://www.zen-cart.com/tutorials/index.php?article=87
    .

    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.

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Having much trouble changing the title text of my site.
    By blossomandbe in forum General Questions
    Replies: 1
    Last Post: 25 Mar 2011, 05:38 AM
  2. Having Trouble finishing install
    By shirtsofwisdom.com in forum Installing on a Windows Server
    Replies: 1
    Last Post: 30 Jan 2009, 02:33 AM
  3. having trouble refreshing
    By dingfelder in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 4 Sep 2008, 03:13 PM
  4. Having trouble configuring...
    By rajato in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 5 May 2007, 08:34 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