Hi there,
How do i stop my Product Categories being listed in the Keywords and Description with the MetaTags for my Zen-Cart?
I think they are somewhere in the SQL Database in: META_TAG_KEYWORDS.
Many thanks,
Dave.![]()
Hi there,
How do i stop my Product Categories being listed in the Keywords and Description with the MetaTags for my Zen-Cart?
I think they are somewhere in the SQL Database in: META_TAG_KEYWORDS.
Many thanks,
Dave.![]()
Product meta tags are defined either generically built or built based on your custom meta tags on a per product basis ...
This is managed in the file:
If you would like to customize this further, you can do so by copying this file to your templates and overrides directory and writing the way you would like it to work:/includes/modules/meta_tags.php
/includes/modules/your_template_dir/meta_tags.php
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
Thanks for that but, what part do i have to edit? There are loads of define statments for 'Description' and 'keywords' and all seem to point to SQL entries.
I need to have my product Catagories from being listed, everything ie product item values, can stay.![]()
Find the case statement that is related to the page you want to build the meta tags differently ...
That is what you need to change ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
All of the CASE statements are in the /includes/modules/meta_tags.php
You can change each and every one of them ...
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
I've had a look through the code and my Catagories do not appear in the meta_tags.php file for me to edit!![]()
Could you post an URL for a page that you wish to change the meta tags on?
Linda McGrath
If you have to think ... you haven't been zenned ...
Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!
Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today!]
Officially PayPal-Certified! Just click here
Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!
To stop show your products categories in the keywords go to in includes/modules/meta_tags.php and find next lines :
Text who is bold delete it and you are remaing with this :// Get all top category names for use with web site keywords
$sql = "select cd.categories_name from " . TABLE_CATEGORIES . " c, " . TABLE_CATEGORIES_DESCRIPTION . " cd where c.parent_id = 0 and c.categories_id = cd.categories_id and cd.language_id='" . (int)$_SESSION['languages_id'] . "' and c.categories_status=1";
$keywords_metatags = $db->Execute($sql);
while (!$keywords_metatags->EOF) {
$keywords_string_metatags .= $keywords_metatags->fields['categories_name'] . METATAGS_DIVIDER;
$keywords_metatags->MoveNext();
}
define('KEYWORDS', str_replace('"','',zen_clean_html($keywords_string_metatags) . CUSTOM_KEYWORDS));. Look at my site to see what u looking for : www.softmrm.comdefine('KEYWORDS', str_replace('"','',zen_clean_html($keywords_string_metatags) . CUSTOM_KEYWORDS));
This will resolve your problem with products categories in keywords.
Anybody know how can i change description in meta tags??? My description is similar with my keywords :
Ho can i change that ?<meta name="keywords" content="softmrm, download, utilities, windows,internet, software, application, shareware, freeware, antivirus ">
<meta name="description" content="Softmrm.com - softmrm, download, utilities, windows,internet, software, application, shareware, freeware, antivirus">