Forums / Templates, Stylesheets, Page Layout / Can't rename Define Page 2

Can't rename Define Page 2

Locked

Started by yanachka on 19 May 2010, 9:53 PM · Views: 2,636

Results 1 to 11 of 11
This thread is locked. New replies are disabled.
19 May 2010, 9:53 PM
#1
yanachka avatar

yanachka

New Zenner

Join Date:
May 2010
Posts:
16
Plugin Contributions:
0

Can't rename Define Page 2

Hello,
I am trying to rename the Page 2 to Teacher Training. I followed the instructions described here https://www.zen-cart.com/tutorials/index.php?article=242 but it's not working. When I check the sitemap (I am still figuring our how to add a link to the navigation, a help on that would be appreciated too), the name hasn't changed. When I went to includes/languages/English there was no MY_TEMPLATE folder, so I created one for the template I am using (I double checked the spelling of the template I am using) and saved the file there. What am I doing wrong?
My Zen Cart version: 1.9.3 b

19 May 2010, 10:43 PM
#3
yanachka avatar

yanachka

New Zenner

Join Date:
May 2010
Posts:
16
Plugin Contributions:
0

Re: Can't rename Define Page 2

Dear Haredo,

I didn't really understand that thread. What file should I look for in the database? And what should I do with it? I looked for page 2 but didn't find it.
(I am not really good at computers).

19 May 2010, 10:54 PM
#4
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Can't rename Define Page 2

Ya,
includes/ languages/ english.php

  1. around line 148, look for Page 2
  2. define('BOX_INFORMATION_PAGE_2', 'Page 2');
  3. change this to:
  4. define('BOX_INFORMATION_PAGE_2', 'Teacher Training');
  5. remember the override system if you are using it so place this core file here:
  6. includes/ languages/ your_template/ english.php

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

20 May 2010, 12:13 AM
#5
yanachka avatar

yanachka

New Zenner

Join Date:
May 2010
Posts:
16
Plugin Contributions:
0

Re: Can't rename Define Page 2

haredo:

Ya,
includes/ languages/ english.php

  1. around line 148, look for Page 2
  1. define('BOX_INFORMATION_PAGE_2', 'Page 2');
  1. change this to:
  1. define('BOX_INFORMATION_PAGE_2', 'Teacher Training');
  1. remember the override system if you are using it so place this core file here:
  1. includes/ languages/ your_template/ english.php

Thanx so much, it worked. :clap:

20 May 2010, 12:16 AM
#6
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Can't rename Define Page 2

Awe,
You are welcome... :smile:

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

20 May 2010, 12:24 AM
#7
yanachka avatar

yanachka

New Zenner

Join Date:
May 2010
Posts:
16
Plugin Contributions:
0

Re: Can't rename Define Page 2

Dear Haredo,

Do you by any chance know a way to add links to main navigation bar? I want that page 2 to show on the header menu. I followed the zen cart tutorial here: https://www.zen-cart.com/tutorials/index.php?article=234 but the only link I managed to add is Contact Us (the one that the tutorial is provided). And even with this after I login (as a customer for testing), 'act Us" in white font shows right after "Logout" link (it shows both in IE and Firefox)

20 May 2010, 12:34 AM
#8
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Can't rename Define Page 2

Ya,
Do you have a link to the site please...

Do you want the Page 2 link before the home???
This link will help you out too..

http://www.zen-cart.com/forum/showthread.php?t=80605

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

20 May 2010, 10:21 AM
#9
yanachka avatar

yanachka

New Zenner

Join Date:
May 2010
Posts:
16
Plugin Contributions:
0

Re: Can't rename Define Page 2

Here's the link to my site https://www.montessoribyayashy.com
I checked the forum followed instructions, I managed to put the link but when I press it it tkaes me to yahoo page not found (so for now I removed it). Also why it doesn't take me to 'page not found' page on my site?

20 May 2010, 2:12 PM
#10
haredo avatar

haredo

Totally Zenned

Join Date:
Apr 2006
Location:
Texas
Posts:
6,189
Plugin Contributions:
0

Re: Can't rename Define Page 2

Ya,
What happens when you insert this coding:

<?php if (DEFINE_PAGE_2_STATUS <= 1) { ?>
<li><?php echo '<a href="' . zen_href_link(FILENAME_PAGE_2, '', 'SSL') . '">' . BOX_INFORMATION_CONTACT . '</a>'; ?></li>

Need a hand with Zen Cart? Hire the team at myZenCartZone.com for upgrades, repairs, and custom plugins.

Zen Cart Certified hosting at myZenCartHost.com.

20 May 2010, 6:17 PM
#11
yanachka avatar

yanachka

New Zenner

Join Date:
May 2010
Posts:
16
Plugin Contributions:
0

Re: Can't rename Define Page 2

Everything just disappears. I tried both after lines 58-59 and after line 47.