Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Removing the HEADER_SALES_TEXT

Removing the HEADER_SALES_TEXT

Locked

Views: 4,959

Results 1 to 15 of 15
This thread is locked. New replies are disabled.
1 Aug 2006, 11:59 PM
#1
natasha avatar

natasha

New Zenner

Join Date:
Jul 2006
Posts:
9
Plugin Contributions:
0

Removing the HEADER_SALES_TEXT

http://www.digitalscrapbooking.co.za/store/

I've managed to customise the css and center my logo, but I'm stumped on this one.
How do I remove the HEADER_SALES_TEXT?
I have searched for the answer here and have searched my catalog with the tool kit, it shows up in the tpl header, but I'm still not sure how to edit it out? :no:

Thanks so much :smile:

2 Aug 2006, 12:26 AM
#2
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: Removing the HEADER_SALES_TEXT

Hun this part is the code that controls it -

<div id="taglineWrapper"> <?php if (HEADER_SALES_TEXT != '') { ?> <div id="tagline"><?php echo HEADER_SALES_TEXT;?></div> <?php } ?>

I believe that is the entire area to delete - I am looking at core files not one that I have removed the tagline from (btw that is what it is called) - if you get errors after deleting let me know and I will look at one I fixed to be sure I have given you the entire piece and not too much to delete.

2 Aug 2006, 12:32 AM
#3
natasha avatar

natasha

New Zenner

Join Date:
Jul 2006
Posts:
9
Plugin Contributions:
0

Re: Removing the HEADER_SALES_TEXT

:laugh: All I had to do was delete it :shocking:

Thanks so much - it worked perfectly :smile:

2 Aug 2006, 12:57 AM
#4
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing the HEADER_SALES_TEXT

Neat thing about the code is ... IF HEADER_SALES_TEXT is blank as in defined as '' then that line never appears in the output when the page renders ...

Why delete code when you can just set things to not be used? :smile:

2 Aug 2006, 2:04 AM
#5
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: Removing the HEADER_SALES_TEXT

But Linda, it has been my experience that if you just delete it in the define there appears a tagline "space" in the template anyways - I don't want to give bad advice, but that is why I delete it out of the template file.

2 Aug 2006, 2:08 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing the HEADER_SALES_TEXT

Aha! a clue ...

are you referring to this being left behind:

<div id="tagline"><?php echo HEADER_SALES_TEXT;?></div>

So you'd get a thing in the view source like:

<div id="tagline"> </div>

IF so ... that isn't logical ... as the IF says ... don't look there to even draw the div because it is not set to a value ...

If that is not what you mean ... I may need a tad more help on this to see what you see or a little time to play later ... :cool:

2 Aug 2006, 3:25 AM
#7
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: Removing the HEADER_SALES_TEXT

I will have to play with it to find the behavior again myself Linda - I will update when I can replicate it for you :thumbsup:

2 Aug 2006, 3:48 AM
#8
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing the HEADER_SALES_TEXT

Found it ... /classic is not as bright as /template_default so you get the <td> </td> you need to tell me if the empty div does anything or not ... in template_default ...

If so, I got a plan ... :cool:

2 Aug 2006, 4:05 AM
#9
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: Removing the HEADER_SALES_TEXT

I am uploading a default as test to my demo store now - will edit the tag and report back in a few :)

2 Aug 2006, 4:09 AM
#10
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing the HEADER_SALES_TEXT

No rush ... I was just poking around at the two templates to see the differences and I saw the:

<td align="center" valign="top"> </td>

vs the:

<div id="taglineWrapper"> </div>
2 Aug 2006, 4:13 AM
#11
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: Removing the HEADER_SALES_TEXT

OK here we go Linda

I uploaded the template default and renamed it test in the proper way so that it works as an over ride template.

I removed "Tagline Here" from english/header.php

And when I view source this is what we have ;

<!--bof-branding display--> <div id="logoWrapper"> <div id="logo"><a href="http://demos.crsdesignsinc.com/"><img src="includes/templates/test/images/logo.gif" alt="Powered by Zen Cart :: The Art of E-Commerce" title=" Powered by Zen Cart :: The Art of E-Commerce " width="192" height="64" /></a></div> <div id="taglineWrapper">
</div>
</div> <br class="clearBoth" /> <!--eof-branding display-->

The empty div for tagline does remove - it's the wrapper that is remaining in spite of the if statement.

EDIT : The URL for the demo so that you can see the end result is : http://demos.crsdesignsinc.com/index.php

2 Aug 2006, 4:25 AM
#12
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing the HEADER_SALES_TEXT

So losing this section would be ideal then ...

<div id="taglineWrapper"> </div>
2 Aug 2006, 4:30 AM
#13
tinas avatar

tinas

Totally Zenned

Join Date:
Jan 2005
Location:
Lake Havasu, AZ
Posts:
1,090
Plugin Contributions:
0

Re: Removing the HEADER_SALES_TEXT

Yup that would be the fix for making the suggested over ride for this element to work. Or move the wrapper inside the if statement as well ;)

6 Aug 2006, 4:07 AM
#14
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Re: Removing the HEADER_SALES_TEXT

Need to jiggle around an additional IF in there that IF there is no banner and there is no HEADER_SALES_TEXT then don't bother with the taglinewrapper guy either ...

Never ending story ... :cry:

Thanks for the confirmation ...

17 Jul 2009, 10:13 PM
#15
spid3r1987 avatar

spid3r1987

Zen Follower

Join Date:
Jul 2009
Posts:
497
Plugin Contributions:
0

Re: Removing the HEADER_SALES_TEXT

Natasha:

http://www.digitalscrapbooking.co.za/store/

I've managed to customise the css and center my logo, but I'm stumped on this one.
How do I remove the HEADER_SALES_TEXT?
I have searched for the answer here and have searched my catalog with the tool kit, it shows up in the tpl header, but I'm still not sure how to edit it out? :no:

Thanks so much :smile:
id change where your admin directory is located aswell....
default leaves you wide open