Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

metatag keywords


di_stephano20

Recommended Posts

Posted

i have installed the cdynamic metatag contribution. my only problem is that when i click on a category for example motherboards - because my site is a computer dedicated website, and i go to view->source to see the meta tags... i see that only some of the products name have been included in the meta name keywords and not all of them. Is there a field where i can set the maximum character that the meta name "keyword" can have? where are this field located in the database ... i've searched in the entire database and didn't find anything... HELP!!!

  • 1 month later...
Posted
i have installed the cdynamic metatag contribution. my only problem is that when i click on a category for example motherboards - because my site is a computer dedicated website, and i go to view->source to see the meta tags... i see that only some of the products name have been included in the meta name keywords and not all of them. Is there a field where i can set the maximum character that the meta name "keyword" can have? where are this field located in the database ... i've searched in the entire database and didn't find anything... HELP!!!

 

 

don't know if you still need the answer to this but just found it earlier myself having the same problem.

go to catalog/includes/functions/meta.php, you'll find it more towards the bottom in this part of the coding..

 

// Strip HTML and Truncate to create a META description
function meta_create_meta_description($str, $length = 300) {
$str=xstripper($str);
$str=str_replace('- -', '',$str);
$meta_description = truncate_string(meta_simple_strip_tags($str), $length);
if (strlen($str) > $length) {	// only display ... if case original string is longer than allowed length
	$meta_description .= "...";
}
return $meta_description;
}

function meta_create_meta_keywords($str, $length = 700) {

 

as you can see, I've already edited mine lol, I think the default was around 200. Worked great too!

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...