You are here:  » product meta tag description

Support Forum



product meta tag description

Submitted by remco on Mon, 2008-08-18 14:43 in

Hello

I want to add the "product description" in my meta tag description
i know that i need to change the line 52 on products.php

but the right syntax is a bit hard for me.
Can you help me david ?

cheerz

remco

Submitted by support on Tue, 2008-08-19 09:08

Hi Remco,

If you just want to add the text "product description", you can simply modify the text in brackets, for example:

$header["meta"]["description"] = translate("Price search results and product description for")." ".htmlentities($q,ENT_QUOTES,$config_charset);

However, if you want to output the actual product description, the variable you need is $product["products"][0]["description"], so to make the meta description tag be just that, you would use:

$header["meta"]["description"] = htmlentities($product["products"][0]["description"],ENT_QUOTES,$config_charset);

Cheers,
David.