Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Remove product name from keywords

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 08-09-2006, 12:01 AM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default 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.
Reply With Quote
  #2  
Old 08-09-2006, 10:23 AM
 
jdiehl jdiehl is offline
 

eXpert
  
Join Date: Dec 2003
Location: Kansas City, MO
Posts: 270
 

Default

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.
__________________
Jason Diehl

Finding Cures for Your Online Headaches: http://www.internetmedicineman.com/
Reply With Quote
  #3  
Old 08-09-2006, 11:35 AM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default

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
Reply With Quote
  #4  
Old 08-09-2006, 01:49 PM
 
Scott DeToffol Scott DeToffol is offline
 

Senior Member
  
Join Date: Apr 2005
Location: Minneapolis, MN
Posts: 174
 

Default

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:"
__________________
Scott DeToffol
Online Marketing and E-Commerce Consulting in Minneapolis

X-Cart Gold Version 4.1.9 for www.sundogtrading.com
X-Cart Pro Version 4.2.3 for www.heavyglare.com
Reply With Quote
  #5  
Old 08-09-2006, 04:40 PM
 
Light Speed Light Speed is offline
 

X-Adept
  
Join Date: Mar 2003
Posts: 921
 

Default

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.
Reply With Quote
  #6  
Old 09-09-2006, 01:14 PM
 
mltriebe mltriebe is offline
 

Senior Member
  
Join Date: Mar 2006
Posts: 137
 

Default Re: Remove product name from keywords

Ever solve this I am having the same issue?
__________________
X-Cart 4.3.1
Buy Together Module, AlteredCart
CDSEO Pro
One Page Checkout, AlteredCart
Smart Search, AlteredCart
On Sale, AlteredCart
Reply With Quote
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


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

   

 
X-Cart forums © 2001-2020