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 / Need to get rid of Store name and switch banners/images with language

Need to get rid of Store name and switch banners/images with language

Locked

Started by hgmstore on 21 Oct 2008, 9:44 PM · Views: 1,589

Results 1 to 8 of 8
This thread is locked. New replies are disabled.
21 Oct 2008, 9:44 PM
#1
hgmstore avatar

hgmstore

New Zenner

Join Date:
Oct 2008
Posts:
11
Plugin Contributions:
0

Post #1 by hgmstore

Hi, I am relatively new to this.
My website is:
http://www.healthygourmetmarket.com

I need to get rid of the Store Name text which is showing up on the header image.
I don't want to completely delete it in admin though, because then the Welcome email is affected.
How can I do that?

Also, I want to translate the banner (image) into french when the french language is selected.
Right now its just the same image for both languages.

One more thing, when you go to an item, like here:
http://www.healthygourmetmarket.com/shop/index.php?main_page=product_info&cPath=8&products_id=33
The product image shows up in English but when you click the french flag the image doesn't show.
How do I fix this?

(I know the "Back to listings" button doesn't show up, I haven't made that button yet).

Thank you!

21 Oct 2008, 10:34 PM
#2
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Post #2 by clydejones

HGMstore:

Hi, I am relatively new to this.
My website is:
http://www.healthygourmetmarket.com

I need to get rid of the Store Name text which is showing up on the header image.
I don't want to completely delete it in admin though, because then the Welcome email is affected.
How can I do that?

Also, I want to translate the banner (image) into french when the french language is selected.
Right now its just the same image for both languages.

One more thing, when you go to an item, like here:
http://www.healthygourmetmarket.com/shop/index.php?main_page=product_info&cPath=8&products_id=33
The product image shows up in English but when you click the french flag the image doesn't show.
How do I fix this?

(I know the "Back to listings" button doesn't show up, I haven't made that button yet).

Thank you!

I need to get rid of the Store Name text which is showing up on the header image.
I don't want to completely delete it in admin though, because then the Welcome email is affected.
How can I do that?

open includes/templates/orange/tpl_header.php

Find the following section of code and delete the highlighted portion(s)

    <div id="logo"><?php echo '<a href="' . HTTP_SERVER . DIR_WS_CATALOG . '">' . zen_image($template->get_template_dir(HEADER_LOGO_IMAGE, DIR_WS_TEMPLATE, $current_page_base,'images'). '/' . HEADER_LOGO_IMAGE, HEADER_ALT_TEXT, HEADER_LOGO_WIDTH, HEADER_LOGO_HEIGHT) . '</a>'; ?></div>

After making the changes, save the file and upload to your server.

Also, I want to translate the banner (image) into french when the french language is selected.
Right now its just the same image for both languages.

create your french language banner and save it to:
open includes/templates/orange/images/header-bg-fr.jpg

upload the new image to your server

make a copy of your current stylesheet.css and rename it to:
french_stylesheet.css

Now locate the following section in the new stylesheet and make the highlighted change.

#logoWrapper {
margin: 0;
padding: 0;
width: 100%;
display: block;
background: url('../images/header-bg-fr.jpg') center no-repeat; height: 220px;
}

Save the new stylesheet and upload to your server.

One more thing, when you go to an item, like here:
http://www.healthygourmetmarket.com/shop/index.php?main_page=product_info&cPath=8&products_id=33
The product image shows up in English but when you click the french flag the image doesn't show.
How do I fix this?

Not sure about this one, On my test sites all I've done is upload the product image and it shows up whenever I switch languages.

Hope this helps

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

21 Oct 2008, 10:40 PM
#3
hgmstore avatar

hgmstore

New Zenner

Join Date:
Oct 2008
Posts:
11
Plugin Contributions:
0

Post #3 by hgmstore

Thanks so much Clyde.
I will try all this, looks like the header thing worked.

Thanks again!

21 Oct 2008, 11:19 PM
#4
hgmstore avatar

hgmstore

New Zenner

Join Date:
Oct 2008
Posts:
11
Plugin Contributions:
0

Post #4 by hgmstore

Ok well I was able to get almost everything working (Thanks to Clyde :smile:)

But I am still having problems getting the product images to show up on the French version. I tried creating new categories/products and it didn't work.

It's strange because all the pictures work in all instances except when you view one product by itself. When its in a list I can see the images fine, I can see them in the showcase and everything.
http://www.healthygourmetmarket.com/shop/index.php?main_page=index&cPath=8

It's like the .php file or whatever for the actual product page is set to the wrong folder for the images. Right now all the images are under shop/images. And when I try and create a new product listing it only lets me upload one image (for both) but it only works for english.

Any help would be greatly appreciated.
Thanks!

BTW heres my site:
https://www.healthygourmetmarket.com

22 Oct 2008, 12:04 AM
#5
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Post #5 by clydejones

HGMstore:

Ok well I was able to get almost everything working (Thanks to Clyde :smile:)

But I am still having problems getting the product images to show up on the French version. I tried creating new categories/products and it didn't work.

It's strange because all the pictures work in all instances except when you view one product by itself. When its in a list I can see the images fine, I can see them in the showcase and everything.
http://www.healthygourmetmarket.com/shop/index.php?main_page=index&cPath=8

It's like the .php file or whatever for the actual product page is set to the wrong folder for the images. Right now all the images are under shop/images. And when I try and create a new product listing it only lets me upload one image (for both) but it only works for english.

Any help would be greatly appreciated.
Thanks!

BTW heres my site:
https://www.healthygourmetmarket.com

Just a thought. and I should have mentioned it before.

You might want to delete everything in the french_stylesheet.css except this declaration.

#logoWrapper { margin: 0; padding: 0; width: 100%; display: block; background: url('../images/header-bg-fr.jpg') center no-repeat; height: 220px; }

It won't effect the way the site displays (except for the heading) and you won't be duplicating everything from the original stylesheet.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

22 Oct 2008, 12:39 AM
#6
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Post #6 by clydejones

clydejones:

Just a thought. and I should have mentioned it before.

You might want to delete everything in the french_stylesheet.css except this declaration.

#logoWrapper { margin: 0; padding: 0; width: 100%; display: block; background: url('../images/header-bg-fr.jpg') center no-repeat; height: 220px; }

It won't effect the way the site displays (except for the heading) and you won't be duplicating everything from the original stylesheet.

HGMstore:

Ok well I was able to get almost everything working (Thanks to Clyde :smile:)

But I am still having problems getting the product images to show up on the French version. I tried creating new categories/products and it didn't work.

It's strange because all the pictures work in all instances except when you view one product by itself. When its in a list I can see the images fine, I can see them in the showcase and everything.
http://www.healthygourmetmarket.com/shop/index.php?main_page=index&cPath=8

It's like the .php file or whatever for the actual product page is set to the wrong folder for the images. Right now all the images are under shop/images. And when I try and create a new product listing it only lets me upload one image (for both) but it only works for english.

Any help would be greatly appreciated.
Thanks!

BTW heres my site:
https://www.healthygourmetmarket.com

Open includes/languages/french.php

On Line #295: find this define statement
define('TEXT_CLICK_TO_ENLARGE', 'Agrandir l'image');

and change it as follows:

define('TEXT_CLICK_TO_ENLARGE', 'Agrandir l\407image');

This thread discusses this problem:
www.zen-cart.com/forum/showthread.php?t=102633

hope this helps

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.

22 Oct 2008, 2:41 PM
#7
hgmstore avatar

hgmstore

New Zenner

Join Date:
Oct 2008
Posts:
11
Plugin Contributions:
0

Post #7 by hgmstore

WOW you are amazing that worked perfectly!
Thanks so much!!!

22 Oct 2008, 3:20 PM
#8
clydejones avatar

clydejones

Deceased

Join Date:
Nov 2005
Location:
Colorado Springs, CO USA
Posts:
7,017
Plugin Contributions:
12

Post #8 by clydejones

HGMstore:

WOW you are amazing that worked perfectly!
Thanks so much!!!

Glad you got it sorted.

NOTE: We are sorry that Clyde is no longer with us.
We are grateful for all his contributions to the Zen Cart community.