X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Remove product name from keywords (https://forum.x-cart.com/showthread.php?t=23964)

Light Speed 08-09-2006 12:01 AM

Remove product name from keywords
 
How can I remove the product name from the keywords?

I use the product name in the short description so it is appearing twice in the keywords.

I have:
Include categories' META data into the site meta tags:
Include products' META data into the site meta tags:
Both checked in SEO options.

jdiehl 08-09-2006 10:23 AM

You can find the file that defines the META keywords under /xcart/skin1/meta.tpl but it should be inserting the product name in their. Looking at the file it looks like it concatenates what is available of these options in this order:

б╨ Product META keywords
б╨ Category META keywords
б╨ Site META Keywords

So you shouldn't be seeing the actual product name in there.

Light Speed 08-09-2006 11:35 AM

Quote:

Originally Posted by jdiehl
You can find the file that defines the META keywords under /xcart/skin1/meta.tpl but it should be inserting the product name in their. Looking at the file it looks like it concatenates what is available of these options in this order:

б╨ Product META keywords
б╨ Category META keywords
б╨ Site META Keywords

So you shouldn't be seeing the actual product name in there.


I know and that is what is driving me crazy. I had messed around with the meta.tpl file trying to remove bits to learn how it functions and all I was able to accomplish is removing the product name AND the short description. I could not find a way to just remove the product name.

Here is the code from the meta.tpl file that handles the keywords and description:

Code:

{if $usertype eq "P" or $usertype eq "A"}
<meta name="ROBOTS" content="NOINDEX">
<meta name="ROBOTS" content="NOFOLLOW">
{else}
{assign var="_meta_descr" value=""}
{assign var="_meta_keywords" value=""}
{if $product.meta_descr ne "" and $config.SEO.include_meta_products eq "Y"}
{assign var="_meta_descr" value="`$product.meta_descr` "}
{assign var="_meta_keywords" value="`$product.meta_keywords` "}
{/if}
{if $current_category.meta_descr ne "" and $config.SEO.include_meta_categories eq "Y"}
{assign var="_meta_descr" value="$_meta_descr`$current_category.meta_descr` "}
{assign var="_meta_keywords" value="$_meta_keywords`$current_category.meta_keywords` "}
{/if}
{assign var="_meta_descr" value="$_meta_descr`$config.SEO.meta_descr`"}
{assign var="_meta_keywords" value="$_meta_keywords`$config.SEO.meta_keywords`"}
<meta name="description" content="{$_meta_descr|truncate:"500":"...":false|replace:'"':"'"}">
<meta name="keywords" content="{$_meta_keywords|truncate:"500":"":false|replace:'"':"'"}">
{/if}


Here is what prints to my page:
meta name="description" content="Dark Carnival Tee made by Strange Monster"
meta name="keywords" content="Dark Carnival Tee Dark Carnival Tee made by Strange Monster ,apparel,shirt,illustration "

The first one in the keywords is the product name. I Manually put the product name in the description because I want it there but i then have no way to remove the one that x-cart places in keywords so I have it twice :(

Scott DeToffol 08-09-2006 01:49 PM

Under General Settings / SEO options there are two checkboxs:
"Include categories' META data into the site meta tags:"
"Include products' META data into the site meta tags:"

Light Speed 08-09-2006 04:40 PM

Quote:

Originally Posted by Scott DeToffol
Under General Settings / SEO options there are two checkboxs:
"Include categories' META data into the site meta tags:"
"Include products' META data into the site meta tags:"

In my initial post you will see that I mentioned that I have both of those checked. They need to be to include the product and category keywords and descriptions and that part works fine. I just want to find a way to alter the meta.tpl code so that it does not add the product name to the front of the keywords meta content.

mltriebe 09-09-2006 01:14 PM

Re: Remove product name from keywords
 
Ever solve this I am having the same issue?


All times are GMT -8. The time now is 10:14 AM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.