Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / How to change "congrats" when using custom temp.

How to change "congrats" when using custom temp.

Locked

Views: 1,154

Results 1 to 6 of 6
This thread is locked. New replies are disabled.
1 Feb 2007, 3:51 PM
#1
deetwo avatar

deetwo

New Zenner

Join Date:
Jan 2007
Posts:
23
Plugin Contributions:
0

How to change "congrats" when using custom temp.

https://www.zen-cart.com/tutorials/index.php?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.

1 Feb 2007, 4:50 PM
#2
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

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.
  4. Near the bottom of the file is this:
  // 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™ 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™ 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.

1 Feb 2007, 5:34 PM
#3
deetwo avatar

deetwo

New Zenner

Join Date:
Jan 2007
Posts:
23
Plugin Contributions:
0

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?

https://www.dee-two.com

1 Feb 2007, 6:10 PM
#4
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

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

1 Feb 2007, 7:08 PM
#5
deetwo avatar

deetwo

New Zenner

Join Date:
Jan 2007
Posts:
23
Plugin Contributions:
0

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

Thanks man, this helped alot :).

1 Feb 2007, 8:02 PM
#6
afo avatar

afo

Totally Zenned

Join Date:
Aug 2004
Location:
New York City
Posts:
6,800
Plugin Contributions:
0

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

No prob. That's what the forum's here for.