Again, I give a disclaimer: You should not be altering these parts of the code unless you have a VERY SOLID business reason for doing so. Way too many people start hacking away without actually properly fixing the CONTENT in their categories, category names, products, product descriptions, etc, all in the name of thinking they're experts in SEO, when in fact Zen Cart is very intentionally doing these things FOR YOUR BENEFIT. It's a rare situation that legitimately needs alteration to this section of the code.
So, that said, if you've carefully assessed your categories and products, and feel that you need to keep categories in your store which have no relevance to SEO and thus are causing you problems, then you can override the normal intelligence by making adjustments to the code.
The section of code you quoted is what builds the category names into the default keywords.
A simpler way to bypass its use would be to define the KEYWORDS constant in your /includes/languages/YOUR_TEMPLATE_NAME/meta_tags.php file. That would prevent the code you quoted from being able to add the categories to it at all.


Reply With Quote


(A real, true SEO expert)


