I've added a few extra fields on price tapestry. I am thinking of using one of this extra fields for the metatags of the product so that price tapestry can obtain the keywords from the csv file and put it in meta keywords tag. This will be an additional to the default product name keyword which is already in the meta keywords tag. Can you help me with this please?
Many thanks, David
Hi,
The meta keywords tag is currently set by the following code on line 54 of products.php:
$header["meta"]["keywords"] = htmlentities($q,ENT_QUOTES,$config_charset);
At this point, the main (first) product record will be in the $product["products"][0] array, so if your new field that would like to add to the meta tags is called "foo", you could change the above code as follows:
$header["meta"]["keywords"] = htmlentities($q,ENT_QUOTES,$config_charset) . "," . $product["products"][0]["foo"];
Hope this helps,
Cheers,
David.