If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Why does my favicon not show on my product pages?

Why does my favicon not show on my product pages?

Locked

Started by australican on 2 May 2010, 6:21 AM · Views: 3,221

Results 1 to 16 of 16
This thread is locked. New replies are disabled.
2 May 2010, 6:21 AM
#1
australican avatar

australican

Zen Follower

Join Date:
Jan 2009
Location:
Victoria Australia
Posts:
100
Plugin Contributions:
0

Why does my favicon not show on my product pages?

Hi all, anyone have any idea why my favicon shows up on all pages, except my product pages. It will however show up on a product page if I refresh or navigate away and then back to the same product page.
Just to clarify, it doesn't "kick-in" for all product pages after one refresh, have to revisit same product or refresh each one.
Thanks,
David

2 May 2010, 6:34 AM
#2
g1smd avatar

g1smd

Zen Follower

Join Date:
Mar 2010
Location:
UK
Posts:
449
Plugin Contributions:
0

Re: Why does my favicon not show on my product pages?

That's probably your browser cached the page with no favicon, and you are looking at that cached page until you manually refetch the page or after the cache times out.

Online since 1995.

2 May 2010, 1:25 PM
#3
bigal49 avatar

bigal49

Zen Follower

Join Date:
Mar 2010
Location:
California
Posts:
236
Plugin Contributions:
0

Re: Why does my favicon not show on my product pages?

Try a Ctrl-Refresh

BigAl49
Al Treadway
http://www.topnotchbassbaits.com

4 May 2010, 7:57 AM
#4
rlexyd avatar

rlexyd

Zen Follower

Join Date:
Nov 2006
Location:
Sydney, Australia
Posts:
507
Plugin Contributions:
0

Re: Why does my favicon not show on my product pages?

Hi David,

favicon.ico is set in your root folder and is configured to show on all your pages automatically.
Sometimes it doesn't show due to browser's cache, but once you clean it out and open the page again it should show.
You can also go to your IE browser tabs and click on File, click on Send and Shortcut to Desktop, that forces it to show most of the times :)

Best Regards,

*Zen Cart eCommerce Solution - Putting the Dream of Owning an Online Business within reach of anyone!

6 May 2010, 1:00 AM
#5
australican avatar

australican

Zen Follower

Join Date:
Jan 2009
Location:
Victoria Australia
Posts:
100
Plugin Contributions:
0

Re: Why does my favicon not show on my product pages?

Hi everyone and thanks to all for replying.
If I clear my browser cache it has no effect, even going to the extreme of clearing all history etc. BTW I'm using FF.
If I go to a product in any given category and use ctrl + refresh, it "fixes" it and gives me the favicon in all the products in that category. So that might be a clue to someone with more knowledge than me. But... the issue returns next time I open the browser. (I'll double check that and repost. It might have to do with the session timing out???)
I've also noticed I'm getting the same behavior in sub-categories. So perhaps it's something to do with the depth of the link? Again it works fine on all pages, info, landing page, categories, etc. But doesn't work on sub-categories and product pages.

Thanks for your help,
David

6 May 2010, 2:06 AM
#6
australican avatar

australican

Zen Follower

Join Date:
Jan 2009
Location:
Victoria Australia
Posts:
100
Plugin Contributions:
0

Re: Why does my favicon not show on my product pages?

A little more info here,
To reiterate, clearing the browser while in the same browsing session, has no effect.
Refreshing while on a product page, "fixes" the problem for all the products in that category, but so does going on to a second product. Same for sub-categories. Viewing a second sub-category "fixes" things.
So, it seems the first page load in a sub-category or product page the favicon doesn't show, any subsequent load, whether by refresh or navigating to a second sub-category (within the same main category) or product will show the favicon. This only "fixes" it within those confines. I.E. going to a sub-category in a differant main category, the issue repeats itself, but in navigating back anywhere where it has been "fixed" it remains "fixed".

After closing FF and reopening, the behaviour returns, every browser sesion.
Zen sessions don't seem to have anything to do with it and it doesn't happen in I.E.7

Seeing the favicon in my browser isn't an issue for me. My concern is the observant shopper (is that an oxymoron?) seeing this behavior and thinking my site is broken, or just unprofessional and not trustworthy. I know that's unlikely, but I'm a bit fussy about the details and trying to iron them all out.
Again thanks to everyone.
David

6 May 2010, 6:05 AM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Why does my favicon not show on my product pages?

How about a list of all the addons you've installed and things you've customized, along with a URL?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 May 2010, 5:31 AM
#8
australican avatar

australican

Zen Follower

Join Date:
Jan 2009
Location:
Victoria Australia
Posts:
100
Plugin Contributions:
0

Re: Why does my favicon not show on my product pages?

Here's my site info
Zen cart 1.3.8a all security patches
attribute separate stock
Aussie post
css drop menu
user currency
direct bank deposit
FE checkout
google mapinater
gift wrapping
google analytics
google base feeder
IH 2
newsletter subscribe
return authorization
sitemap xml
ceon uri mapping
cross sell
cherry zen template

I've made very few and only slight modification outside of styling, except where needed to get them debugged when there has been cross-compatibility issues and the like. Unfortunately, I was too inexperienced to make careful notes of exactly where I made the changes.

My site is at countrytothecore.net

Thanks David

7 May 2010, 5:48 AM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Why does my favicon not show on my product pages?

I'd recommend turning off whatever ajax stuff you've added, and turn off your URL rewriter, and test again.
Also, does the problem follow if you change your template to "Classic"?

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

10 May 2010, 7:13 AM
#10
australican avatar

australican

Zen Follower

Join Date:
Jan 2009
Location:
Victoria Australia
Posts:
100
Plugin Contributions:
0

Re: Why does my favicon not show on my product pages?

Thank you DrByte, (and everyone else who offered help)

It was the URL re-writer. I found the solution on it's thread.
For anyone else who finds this thread and needs the answer...

Open includes/templates/YOUR TEMPLATE/common/html_header.php
and find these lines,

<?php if (defined('FAVICON')) { ?>
<link rel="icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />
<link rel="shortcut icon" href="<?php echo FAVICON; ?>" type="image/x-icon" />

and replace with,

<?php if (defined('FAVICON')) { ?>
<link rel="icon" href="http://yoursite.com/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="http://yoursite.com/favicon.ico" type="image/x-icon" />

Provided your favicon is named "favicon.ico"
That should work, it worked for me anyway.

BTW, I'm hesitant to dish out advice. I'm an amateur, maybe the good Dr, will confirm that this method is kosher.

Thanks, David

10 May 2010, 8:44 AM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Why does my favicon not show on my product pages?

  1. It would be best to properly fix your URL-rewriter directly.
  2. If your URL-rewriter addon can't be fixed and you insist on using it, then it would be better to edit your /includes/languages/english/YOUR-TEMPLATE/meta_tags.php file and set the FAVICON define there, instead of hacking it out of html_header.php. One less file to have to upgrade later if you do it this way.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 May 2010, 2:40 AM
#12
australican avatar

australican

Zen Follower

Join Date:
Jan 2009
Location:
Victoria Australia
Posts:
100
Plugin Contributions:
0

Re: Why does my favicon not show on my product pages?

Thanks again Doc,

I'm trying to follow your instructions, but can't figure out the proper way of doing it.

In my includes/languages/english/MY_TEMPLATE/meta_tags.php I put...

//favicon setting
// There is usually NO need to enable this unless you need to specify a path and/or a different filename
 define('FAVICON','href="http://mysite.com/favicon.ico"');

Obviously this doesn't work. I tried without the double quotes, href, http, etc. I also tried un-commenting the //favicon setting line, and the page disappeared.
I'm afraid you may have to spell this out "for dummies" for me.

Apparently my re-write mod isn't broken, according to info from it's author, this just needs to be done for it to work.

Again I appreciate your time, especially considering you are obviously not a fan of re-writes.

David

12 May 2010, 2:53 AM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Why does my favicon not show on my product pages?

australican:

Again I appreciate your time, especially considering you are obviously not a fan of re-writes.Correct, because most people (read: mod authors) do them wrong, and that just results in endless tech support requests. Not to mention that every server is configured differently.
australican:

Apparently my re-write mod isn't broken, according to info from it's author, this just needs to be done for it to work.That's called a bandage, because it's broken.
Evidently the mod/author can't handle letting straight favicon requests go straight through.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 May 2010, 3:01 AM
#14
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Re: Why does my favicon not show on my product pages?

australican:

I'm trying to follow your instructions, but can't figure out the proper way of doing it.

In my includes/languages/english/MY_TEMPLATE/meta_tags.php I put...

//favicon setting
// There is usually NO need to enable this unless you need to specify a path and/or a different filename
define('FAVICON','href="http://mysite.com/favicon.ico"');

> 
> Obviously this doesn't work. I tried without the double quotes, href, http, etc. I also tried un-commenting the //favicon setting line, and the page disappeared.
> I'm afraid you may have to spell this out "for dummies" for me.If your mods are requiring you to add the URL, you would literally just add the URL, like this:

define('FAVICON', '[B]http://mysite.com/[/B]favicon.ico');

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

12 May 2010, 6:46 AM
#15
australican avatar

australican

Zen Follower

Join Date:
Jan 2009
Location:
Victoria Australia
Posts:
100
Plugin Contributions:
0

Re: Why does my favicon not show on my product pages?

DrByte:

Correct, because most people (read: mod authors) do them wrong, and that just results in endless tech support requests. Not to mention that every server is configured differently.
I suppose I'm case in point here. This mod works well in most respects, but not without a few of these odd issues that I have taken up your time with, thanks again.
That's called a bandage, because it's broken.
Evidently the mod/author can't handle letting straight favicon requests go straight through.
touche!

David

12 May 2010, 6:52 AM
#16
australican avatar

australican

Zen Follower

Join Date:
Jan 2009
Location:
Victoria Australia
Posts:
100
Plugin Contributions:
0

Re: Why does my favicon not show on my product pages?

DrByte:

If your mods are requiring you to add the URL, you would literally just add the URL, like this:

define('FAVICON', '[B]http://mysite.com/[/B]favicon.ico');


I get it now. I made the changes, "restored" my html_header.php and corrected the meta_tags.php and all is well.

I could have sworn that I tried that "combination." When my knowledge fails me I make educated guesses. 
I think that what I should have realized is that it is a define, not a link.

Much thanks,
David