Originally Posted by
Feznizzle
... ZC is automatically creating it's own meta descriptions and keywords ...
Hopefully this will help you in the crusade to completely control / alter generated meta tags for Zen Cart! Or at least give you a good starting point :-)
"/includes/modules/meta_tags.php" controls how meta tags are constructed and displayed for each type of "page" (/includes/modules/pages/page_type).
You can add defines to either your language files or in a new extra_configures file to override the generated meta tags and the title. You could also code an observer to listen for "NOTIFY_MODULE_START_META_TAGS" and override the generated meta tags and title.
For keywords you can remove the line in the header of you Zen Cart template which outputs the meta keyword if you do not want them ever to show up. Alternatively you can define 'KEYWORDS' to be '' to stop categories from being added to the keywords of a page (and still use the ones configured in the admin for products / categories).
You can specify by "page" type to use specific keywords (such as for "advanced_search", "password_forgotten", etc):
Code:
define('META_TAG_TITLE_PASSWORD_FORGOTTEN', 'Title to use for the password_forgotten page');
define('META_TAG_DESCRIPTION_PASSWORD_FORGOTTEN1', 'Description to use for the password_forgotten page');
define('META_TAG_KEYWORDS_PASSWORD_FORGOTTEN', 'Keywords to use for the password_forgotten page');
For EZ-Pages:
Code:
define('META_TAG_TITLE_EZPAGE_1', 'Title for EZ-Page 1');
define('META_TAG_DESCRIPTION_EZPAGE_1', 'Description for EZ-Page 1');
define('META_TAG_KEYWORDS_EZPAGE_1', 'Keywords for EZ-Page 1');
Bookmarks