Zen Cart Logo
If this is your first visit, check our documentation. To post, register or login.
Forums / Customizing the Look of Your Shop / Templates, Stylesheets, Page Layout / I got rid of the Header Sales Text, but did I do it right?

I got rid of the Header Sales Text, but did I do it right?

Locked

Started by birdoasis on 11 Jan 2007, 8:12 PM · Views: 1,459

Results 1 to 4 of 4
This thread is locked. New replies are disabled.
11 Jan 2007, 8:12 PM
#1
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Post #1 by birdoasis

Ok,

Since I lost my head and ranted about how hard things are to fix, I thought I'd post something that I think I figured out, but want some verification so that the next update doesn't make me crazy.

In an attempt to make the Header Sales Text go away I tried editing the file /includes/languages/english/birdoasis/header.php

By commenting out the "define('HEADER_SALES_TEXT', 'Enjoy more wild feathered friends this winter!');" line I had hoped to have no text show up at all.

However what I got was HEADER_SALES_TEXT replacing my text.

So I searched for the file that included that statement and found it in:

/includes/templates/mytemplatefolder/common/tpl_header.php

The line was an if statement. "if (HEADER_SALES_TEXT != '' etc etc.

I thought about commenting that one out too but saw that other if statements were attached. Then it clicked.

This if statement was looking for an empty define statement. So instead of just erasing my sales text in header.php, I replaced it with spaces like this.

define('HEADER_SALES_TEXT', ' ');

So now text is showing at all.

I think I did this right. Could someone please verify this for me?

John Patrick
A Zen Cart Advocate!

11 Jan 2007, 8:18 PM
#2
afo avatar

afo

Totally Zenned

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

Post #2 by afo

Yes, that's right.

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

11 Jan 2007, 8:57 PM
#3
birdoasis avatar

birdoasis

Inactive

Join Date:
Jun 2005
Location:
Cheney WA
Posts:
1,123
Plugin Contributions:
0

Post #3 by birdoasis

ALLL RIGHT!

Thanks Mary Ellen!!!

That was soooo exasperating. hehe.

John Patrick
A Zen Cart Advocate!

20 Jun 2007, 10:31 AM
#4
ashmark avatar

ashmark

New Zenner

Join Date:
Mar 2007
Posts:
3
Plugin Contributions:
0

Post #4 by ashmark

Thank you so much for posting this! You just saved me a lot of time trying to figure it out!