Help - Search - Members - Calendar
Full Version: Breadcrumbs...not Showing
MonsterSmallBusiness Forums > MonsterCommerce > How do I?
heartland
Shouldn't the item you are viewing appear in your breadcrumbs? At least that's what I believe to be true...

Mine aren't...when you look at a product, it only lists the category it's in!

Help!!
jmioni
Some stores do that (Yahoo Stores are one example), but it's not the way monstersmile.gif has it designed. It seems to me that it's not a problem though, since breadcrumbs are a way to see where you've been, not where you are. What is the advantage of having the product name in the breadcrumbs?
Monster Tech Lead
Hi Heartland,

jmioni is correct, our software only includes the categories that you have viewed before and was designed to provide a link back to the previous categories for the customer so they would not need to use the back button. This was also designed for seo reasons as well.

Joe
heartland
QUOTE
(monstersmile.gif Tech Lead @ Aug 24 2006, 11:50 AM)

Hi Heartland,

jmioni is correct, our software only includes the categories that you have viewed before and was designed to provide a link back to the previous categories for the customer so they would not need to use the back button. This was also designed for seo reasons as well.

Joe


OK, thanks Joe and JM...I thought something might be wrong. Appreciate your help.

Heartland
crashingflwrgrl
There is a script (created by user: Undejj) that will add the product name to your breadcrumbs. It's floating around this forum somewhere.

EDIT: Here it is....

<script language=javascript>if (document.URL.match(/VIEWPROD/) ){j=document.getElementsByTagName('font');for(i=0; i<j.length; i++){if (j(i).className=='prodmfg' && j(i).innerText.length>3){productName=j(i).innerText;}}for(i=0; i<j.length; i++){if (j(i).className=='categories' && j(i).innerHTML.match(/>/) && j(i).innerText.match(/>/) ){j(i).innerHTML=j(i).innerHTML + productName;}}}</SCRIPT>

Adding this to the bottom page html section will add the product name to your breadcrumb string.
heartland
wow...awesome crashing....thanks so much!!

P.S.
This won't affect SEO in any way, will it? Sorry...I don't know alot about scripts.
BeautynHealth.com
don't see how it would... it add's another label. it can't hurt too much to have the name of the product again, I can't imagine that it would

crashing.... the script gave me the sku, not the product name... i'll look into it and post back
heartland
thanks BeautynHealth, I appreciate that.

the reason I wasn't sure about it is because I've read that search engines have a problem with scripts
BeautynHealth.com
yup, sometimes they do.... but sometimes they grab the final version of the page....

I can't verify that 100%, but I know that when a page is "cached" on google, no scripts run, and it is the final version
heartland
I inserted the script, but I'm not getting anything, could it be because we use APD?
BeautynHealth.com
Well when I first tried it I got an internal server error 500.... now it only gives me my SKU, not my product name

Heartland, do you see any breadcrumbs on your product pages?

heartland
no...it wasn't giving me the item name, it was still stopping at the category link...so I removed it

However if anyone knows how to correct it, I'm all ears. happy.gif
KennyE
QUOTE(heartland @ Aug 24 2006, 10:11 PM) [snapback]114270[/snapback]

no...it wasn't giving me the item name, it was still stopping at the category link...so I removed it

However if anyone knows how to correct it, I'm all ears. happy.gif

Hi. Not to seem stupid, which I seem to be doing a lot on here lately. But .. what are you talking about? Not the script. The breadcrumbs. New term to me. Thanks ........ Ken
crashingflwrgrl
Sorry guys. I'm not sure what's wrong with the script. It worked fine for me (when I was still with MC). blinking.gif

Let me see what I can find.

QUOTE
The breadcrumbs. New term to me.

They are the clickable links that tell the customer where they currently are on your site.

eg; Home>Category>Sub Category>Product
heartland
thanks for your help Crashing!
crashingflwrgrl
Here is the script again. This time I copied it exactly as written from the thread it was originally posted in...

<script language=javascript>
if (document.URL.match(/VIEWPROD/) )
{
j=document.getElementsByTagName('font');
for(i=0; i<j.length; i++)
{
if (j[i].className=='producttext')
{
productName=j[i].innerText;
}
}
for(i=0; i<j.length; i++)
{
if (j[i].className=='categories' && j[i].innerHTML.match(/>/) && j[i].innerText.match(/>/) )
{
j[i].innerHTML=j[i].innerHTML + productName;
}
}
}
</script>

That should do it. wink.gif
heartland
Darn it! Maybe it's just me...I still don't see anything else appear when I add this script.

Anyone...?
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.