Hi David
I have been reading thorugh this post http://www.pricetapestry.com/node/4145 which explains how to add custom Meta Descriptions and Meta Key Words.
I have 32,000 products so no way I can write meta descriptions for them all
The existing Meta description is as follows:
<meta name='description' content='Price search results for Kong Classic Red Medium' />
I assume that is an automated description and every product will be the same, expect the product name?
If the answer is Yes, where woudl I find this to change what it says, so it still uses the automated meta description, unless I enter one manually, which would then be overwritten
Hope that makes sense
Thanks
Stuart
Hi Stuart,
You'll actually find the default text in the replacement from the custom meta tags thread - this section:
$meta_sql = "SELECT * FROM `".$config_databaseTablePrefix."productsmap` WHERE name='".database_safe($product["products"][0]["name"])."' LIMIT 1";
database_querySelect($meta_sql,$meta_rows);
if (isset($meta_rows[0]["meta_title"]) && ($meta_rows[0]["meta_title"]!=""))
{
$header["title"] = htmlentities($meta_rows[0]["meta_title"],ENT_QUOTES,$config_charset);
}
else
{
$header["title"] = htmlentities($q,ENT_QUOTES,$config_charset);
}
if (isset($meta_rows[0]["meta_description"]) && ($meta_rows[0]["meta_description"]!=""))
{
$header["meta"]["description"] = $meta_rows[0]["meta_description"];
}
else
{
$header["meta"]["description"] = translate("Price search results for")." ".htmlentities($q,ENT_QUOTES,$config_charset); // edit default meta description here
}
if (isset($meta_rows[0]["meta_keywords"]) && ($meta_rows[0]["meta_keywords"]!=""))
{
$header["meta"]["keywords"] = $meta_rows[0]["meta_keywords"];
}
else
{
$header["meta"]["keywords"] = htmlentities($q,ENT_QUOTES,$config_charset);
}
...i've added the comment "edit default meta description here" to the line where you can change the default meta description as required...
Cheers!
David.
--
PriceTapestry.com