Zen Cart Logo

can't change logo

Locked

Views: 5,030

Results 1 to 20 of 22
This thread is locked. New replies are disabled.
3 Jan 2008, 12:32 AM
#2
adornit avatar

adornit

New Zenner

Join Date:
Jan 2008
Posts:
56
Plugin Contributions:
0

Re: can't change logo

Okay never mind I have it all working now that I changed it to a custom template.. But how can I change like the top background image (its now blank..)?

3 Jan 2008, 4:34 AM
#3
afo avatar

afo

Totally Zenned

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

Re: can't change logo

To create a very basic custom template (you can build from there), you need:

  • includes/languages/YOUR_TEMPLATE/english.php
  • includes/languages/english/YOUR_TEMPLATE/index.php
  • includes/languages/english/YOUR_TEMPLATE/meta_tags.php
  • includes/languages/english/YOUR_TEMPLATE/header.php (to change the logo)
  • includes/templates/YOUR_TEMPLATE/template_info.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_header.php
  • includes/templates/YOUR_TEMPLATE/common/tpl_footer.php
  • includes/templates/YOUR_TEMPLATE/images/logo.gif
  • includes/templates/YOUR_TEMPLATE/css/stylesheet.css

Anywhere you see a /classic/ folder, you can create a folder for your custom template. You can copy the necessary files from either the /classic/ folder, the /template_default/ folder or the parent folder.

Edit includes/templates/YOUR_TEMPLATE/template_info.php to give your template identifying information so you'll recognize it in the admin under tools->template selection.

You should be able to change the background image in the stylesheet.

22 Jan 2008, 10:23 PM
#4
adornit avatar

adornit

New Zenner

Join Date:
Jan 2008
Posts:
56
Plugin Contributions:
0

Re: can't change logo

okay. thanks for your help!

23 Jan 2008, 5:03 AM
#5
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: can't change logo

What did you do? I followed that same tutorial and can't get it to work either.

23 Jan 2008, 6:31 AM
#6
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: can't change logo

well, it looks like the problem is the file
/zen/email/email_template_welcome.html
has to be changed. And it seems there is no way to override this, so the file has to be changed directly. So when upgrading, it seems this would be a problem.

23 Jan 2008, 6:55 AM
#7
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: can't change logo

Logo image is changed in

includes/languages/english/NAMEOFYOURTEMPLATE/header.php

23 Jan 2008, 6:59 AM
#8
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: can't change logo

Misty, I made that change and the zen cart logo showed up, not mine. It didn't change anything until I changed this file:
/zen/email/email_template_welcome.html and uploaded my logo to that folder.

23 Jan 2008, 7:09 AM
#9
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: can't change logo

When you changed logo in header.php file, did you
rename logo.gif to something else or still use
logo.gif?

23 Jan 2008, 7:12 AM
#10
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: can't change logo

I changed it to the name of my file.

23 Jan 2008, 7:19 AM
#11
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: can't change logo

includes/languages/english/NAMEOFYOURTEMPLATE/header.php
If your custom template has header.php file, as path shown above,
and you replaced logo.gif with your own image name, and size of new image, then it should work.
/zen/email/email_template_welcome.html
should have no effect at all on a template logo.

23 Jan 2008, 7:36 AM
#12
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: can't change logo

I named my custom template "custom", and it has that path:
/zen/includes/languages/english/custom/header.php

That folder also has create_account.php in it where I customized what the welcome e-mail says. The changes I made to the welcome e-mail text worked, but not the logo change.

In the file:
/zen/email/email_template_welcome.html

I changed this:

<body class="body"> <div class="holder"> <!-- Header Section --> <div class="header"> <img src="email/header.jpg" alt="logo" /> </div> to <body class="body"> <div class="holder"> <!-- Header Section --> <div class="header"> <img src="email/blogbannersmall.jpg" alt="logo" /> </div>

and it worked. (blogbannersmall.jpg is the name of my logo file) I also put my logo in the e-mail folder.

23 Jan 2008, 7:54 AM
#13
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: can't change logo

So you were attempting to change logo image in welcome email
and NOT logo in your template?

23 Jan 2008, 8:00 AM
#14
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: can't change logo

Yes--I wanted the logo that showed up in the welcome e-mail to be mine and not the default zen cart one.

23 Jan 2008, 8:16 AM
#15
misty avatar

misty

Inactive

Join Date:
Apr 2004
Location:
UK
Posts:
5,752
Plugin Contributions:
1

Re: can't change logo

/admin/images/logo.gif
Entirely different to altering logo for template header

23 Jan 2008, 8:26 AM
#16
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: can't change logo

I'm not sure where this is that you mention:
/admin/images/logo.gif

I just followed the info for:
https://www.zen-cart.com/tutorials/index.php?article=125
because when I searched for how to change the logo on the welcome e-mail, everything pointed to that article. I didn't know there was a difference.

How are you supposed to change the logo on the welcome e-mail? What I did works, but if there is a better way, I'd like to do that. I want to make it as easy as possible for any updates so I'm not having to search for files I changed. I put my changes in a "custom" folder. but I found info that said there isn't an over-ride for the e-mail.

25 Jan 2008, 2:18 AM
#19
gezuvor avatar

gezuvor

New Zenner

Join Date:
Apr 2007
Location:
Orange County, CA
Posts:
88
Plugin Contributions:
2

Re: can't change logo

I just went through and changed all of my email messages to use the shop logo. I did have to modify them with a slash in front of the email folder to make them work...

<img src="**/**email/header.gif" alt="MYSHOPNAME" />
28 Jan 2008, 7:30 AM
#20
tracib avatar

tracib

Zen Follower

Join Date:
Oct 2007
Posts:
157
Plugin Contributions:
0

Re: can't change logo

Since I got it figured out before, I decided to upgrade to 1.3.8 and just did a frest install since I hadn't gotten very far.

Now I am having a weird problem. I named my logo header.jpg and uploaded it to my e-mail folder to replace the zencart logo called header.jpg.

My logo shows up in my admin control panel under tools/e-mail welcome, but when I create a test customer, the logo in the e-mail that is received is the zencart logo. So I don't get it.

I tried gezuvor's suggestion, putting the / before e-mail/header.jpg, but it doesn't work for me.

I reamed my logo banner.jpg and changed the reference in the welcome e-mail to that. It now works, but it also means in all of the e-mails where I want this logo to show up, I'll need to change all logo.jpg to header.jpg.