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
