Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / New Products Header Bar edit

New Products Header Bar edit

Locked

Views: 4,399

Results 1 to 13 of 13
This thread is locked. New replies are disabled.
21 Aug 2008, 11:46 PM
#1
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

New Products Header Bar edit

Does anyone know where to go to change the New Products header bar?
On my home page, it is a center box listed below the welcome text. I didn't set it up this way...it's a factor of the template which came with the Zen Cart upload from my webhost.

It used to say New Products For (current month)

I want it to just say "New Products".

I was able to change it to New Products For Upcoming Season by changing the following code in the INCLUDES>MODULES>new_products.pho

sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime('%B')) . to
sprintf(TABLE_HEADING_NEW_PRODUCTS, strftime(Upcoming Season')) .

I know (!) this is not the way to do it. I know that it is set up to keep track of the current month. My store owners don't want this.

I have looked extensively through every template and php page I can find and no where do I see where to change it to just read: NEW PRODUCTS (or even Recently Added Products).

I've tried every search I can think of, including using the Developers Tool kit.
If you know of a way to do this could you please be as specific as possible as, obviously, I'm not good at finding things yet!

Thanks so much.

22 Aug 2008, 4:50 AM
#2
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: New Products Header Bar edit

includes/languages/english.php

define('TABLE_HEADING_NEW_PRODUCTS', 'New Products For %s');

Edit New Products For %s to just New Products and save to your overide folder :D

P.S...I believe there is no need to edit the file you edited, just this one. If you want to limit the new products that show in there to within a certain time-frame:

**Admin>>Configuration>>Maximum Values>>New Product Listing - Limited to ...

If you want to take it off the index page completely:

Admin>>Configuration>>Index Listing>>Show New Products on Main Page** and switch to 0

23 Aug 2008, 7:11 PM
#3
bluelion avatar

bluelion

New Zenner

Join Date:
Mar 2008
Posts:
73
Plugin Contributions:
0

Re: New Products Header Bar edit

Thank you (beyond words!) Simple solution but impossible to find for someone who's new to this!

My "boss" is much happier too!

23 Aug 2008, 7:54 PM
#4
lissae avatar

lissae

Totally Zenned

Join Date:
Oct 2007
Location:
Australia
Posts:
814
Plugin Contributions:
0

Re: New Products Header Bar edit

You're welcome :D

1 Sep 2008, 4:28 AM
#5
welchyboy avatar

welchyboy

Zen Follower

Join Date:
Apr 2008
Posts:
274
Plugin Contributions:
0

Re: New Products Header Bar edit

Hello I am trying to figure out how to get a picture or just a color graphic bar along with some text in the new products center box. I have figured out how to add an image you name it centerboxhead-new.gi and put it in the correct directory. However when I change resolutions the image will shrink or grow depending and it will really put the site out of wack. So I am curious on how to set it up like this...

http://(sorry, site offline)/138/index.php?main_page=index&template_dir=rustic

No matter if you are at 800 x 600 or 1280 by 768 it will work for everything. If you check out mine at

https://www.wpc-consulting.com/~stxmill/

You will see that my graphic will stretch or shrink depending on the resolution and it will not fill the box completely which looks horrible. Any thoughts on how to fix this?

1 Sep 2008, 4:41 AM
#6
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: New Products Header Bar edit

Are you talking about the image that repeats itself across the header background?

1 Sep 2008, 4:43 AM
#7
welchyboy avatar

welchyboy

Zen Follower

Join Date:
Apr 2008
Posts:
274
Plugin Contributions:
0

Re: New Products Header Bar edit

I'm talking about the new products of the month on the home page of this site...

http://www.wpc-consulting.com/~stxmill/

1 Sep 2008, 4:46 AM
#8
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,627
Plugin Contributions:
0

Re: New Products Header Bar edit

It is more than one image set up to use the sliding doors technique.

1 Sep 2008, 4:48 AM
#9
welchyboy avatar

welchyboy

Zen Follower

Join Date:
Apr 2008
Posts:
274
Plugin Contributions:
0

Re: New Products Header Bar edit

Not sure...I am not looking to do different images for each month or anything like that. I just want one image or bar with new products on there. But the important part is to have it universal for all resolutions.

1 Sep 2008, 5:33 AM
#10
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: New Products Header Bar edit

Actually, your graphic will not stretch or shrink depending on the resolution, which is why it doesn't fit neatly when the window stretches/shrinks. You are using Image Titles, which substitutes one image for the whole title text. To get the corn to stretch with the centerbox, you will have to use another approach and make the background two images in the sliding doors method.

You can't reliably use that font for the text, so you might leave the Image Titles feature alone, change the image to a transparent gif with just the words, and edit the centerbox code to add another wrapper to its heading. Then you can apply the CSS sliding doors images to the background.

1 Sep 2008, 1:21 PM
#11
welchyboy avatar

welchyboy

Zen Follower

Join Date:
Apr 2008
Posts:
274
Plugin Contributions:
0

Re: New Products Header Bar edit

You have some information on how to do this in more detail? Maybe another thread or post. I will also research it a little more to see if i can find some stuff on it. I figured it would be an easy fix...i guess not lol. Thanks for the replies.

1 Sep 2008, 5:24 PM
#12
gjh42 avatar

gjh42

Black Belt

Join Date:
Jul 2005
Location:
Upstate NY
Posts:
21,876
Plugin Contributions:
8

Re: New Products Header Bar edit

Google "sliding door method" for the standard tutorial on this.

1 Sep 2008, 5:40 PM
#13
welchyboy avatar

welchyboy

Zen Follower

Join Date:
Apr 2008
Posts:
274
Plugin Contributions:
0

Re: New Products Header Bar edit

I did but I am so new to zen cart and css that I am not able to relate the tabbed tutorial to the new product bar. I am not sure where to edit the stylesheet or which code to put in its place or anything like that. Is there a tutorial specifically for for the new products header I mean I have seen tons of sites that have used it. Even standard zen cart templates have these already. Couldn't I just look at the stylesheet of a zen cart template and it should help me? Is this coding all in the stylesheet. So for example if i were to copy the stylesheet from another template and put it into my site and change a few things would it work or is this located in more than one file? Again I am very new I am just trying to figure all this stuff out. Again thanks for the help thus far.