Results 1 to 6 of 6
  1. #1
    Join Date
    Jan 2007
    Posts
    23
    Plugin Contributions
    0

    Default How to change "congrats" when using custom temp.

    https://www.zen-cart.com/tutorials/i...hp?article=129 <-- doesnt help.

    I edited all the files inside the template folder to say what I want, but it just DOES NOT change the header text, title bar text, or welcome message.

    I go into the sophie blue grey template folders and edit it all... NOTHING workS!

    www.dee-two.com

    Help please.

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

    Default Re: How to change "congrats" when using custom temp.

    The directions in the tutorial couldn't be clearer.

    1) In the includes\languages\english\ folder, create a folder for your template.
    2) Copy includes\languages\english\index.php into includes\languages\english\YOUR_TEMPLATE
    3) open includes\languages\english\YOUR_TEMPLATE\index.php with a text editor like Notepad, Textpad or Crimson Editor. If you're using a Windows system, Notepad is already on your system. Textpad and Crimson Editor are both free to download and use.
    3) Near the bottom of the file is this:
    Code:
      // This section deals with the "home" page at the top level with no options/products selected
      /*Replace this text with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
      define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart&trade; E-Commerce Solution.');
    } elseif ($category_depth == 'nested') {
      // This section deals with displaying a subcategory
      /*Replace this line with the headline you would like for your shop. For example: 'Welcome to My SHOP!'*/
      define('HEADING_TITLE', 'Congratulations! You have successfully installed your Zen Cart&trade; E-Commerce Solution.'); 
    }
    Edit the two lines I've highlighted in red to say whatever you like and then save the file.

    Upload the new folder into your ZC store's includes/languages/english/ directory.

    If you've done the overrides correctly, you can select your custom template form tools->template selection in the admin. Once you do that, the message will be whatever you entered in the index.php file.

    To create a very basic custom template (you can build from there), you need:
    • includes\languages\YOUR_TEMPLATE\english.php
    • includes\languages\english\YOUR_TEMPLATE\index.php
    • includes\languages\english\YOUR_TEMPLATE\header.php (to change the logo)
    • includes\templates\YOUR_TEMPLATE\template_info.php
    • includes\templates\YOUR_TEMPLATE\common\tpl_header.php
    • includes\templates\YOUR_TEMPLATE\images\logo.gif
    • includes\templates\YOUR_TEMPLATE\css\stylesheet.css


    Any where you see a \classic\ folder, you can create a folder for your custom template.

    Since you're using a predesigned template, the file you want to edit would be includes\languages\english\sophieblue\index.php. I'm not sure what the template folders are called in this case. sophieblue is my best guess.
    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

  3. #3
    Join Date
    Jan 2007
    Posts
    23
    Plugin Contributions
    0

    Default Re: How to change "congrats" when using custom temp.

    Okay so that worked. Now what about the title bar where it says what template I used and the header text? How do I edit that?

    www.dee-two.com

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

    Default Re: How to change "congrats" when using custom temp.

    Check the list in my earlier post. Just replace "YOUR_TEMPLATE" with the template name for the correct directory. I think what you want to change is in includes\languages\english\YOUR_TEMPLATE\header.php
    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

  5. #5
    Join Date
    Jan 2007
    Posts
    23
    Plugin Contributions
    0

    Default Re: How to change "congrats" when using custom temp.

    Thanks man, this helped alot :).

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

    Default Re: How to change "congrats" when using custom temp.

    No prob. That's what the forum's here for.
    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

 

 

Similar Threads

  1. How to change text in "Order Confirmation" and "Welcome to our Store" page?
    By SandraSD in forum Templates, Stylesheets, Page Layout
    Replies: 9
    Last Post: 15 Mar 2011, 03:59 AM
  2. Replies: 2
    Last Post: 11 Feb 2010, 09:13 PM
  3. How does Zen-Cart "know" what your "custom" directory is?
    By alicia1234 in forum Templates, Stylesheets, Page Layout
    Replies: 7
    Last Post: 4 Dec 2008, 01:46 AM
  4. Replies: 0
    Last Post: 3 May 2008, 12:19 PM

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