Page 1 of 2 12 LastLast
Results 1 to 10 of 13
  1. #1

    How to Removing Categories from Keywords?

    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.

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to Removing Categories from Keywords?

    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:
    /includes/modules/meta_tags.php
    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/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!

  3. #3

    Default Re: How to Removing Categories from Keywords?

    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.

  4. #4
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to Removing Categories from Keywords?

    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!

  5. #5

    Default Re: How to Removing Categories from Keywords?

    Quote Originally Posted by Ajeh View Post
    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 ...

    I want to change the global tags for all pages, not just a per page basis.
    I'm guessing that this is not an easy thing to do.

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to Removing Categories from Keywords?

    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!

  7. #7

    Default Re: How to Removing Categories from Keywords?

    I've had a look through the code and my Catagories do not appear in the meta_tags.php file for me to edit!

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: How to Removing Categories from Keywords?

    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!

  9. #9
    Join Date
    Sep 2006
    Location
    Avondale - AZ
    Posts
    8
    Plugin Contributions
    0

    Default Re: How to Removing Categories from Keywords?

    Quote Originally Posted by Ajeh View Post
    All of the CASE statements are in the /includes/modules/meta_tags.php

    You can change each and every one of them ...


    Thanks for this info..I was trying to do this and this made my day much better...I always find what I need here with a little searching.

  10. #10
    Join Date
    Nov 2006
    Posts
    6
    Plugin Contributions
    0

    Default Re: How to Removing Categories from Keywords?

    To stop show your products categories in the keywords go to in includes/modules/meta_tags.php and find next lines :
    // 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));
    Text who is bold delete it and you are remaing with this :
    define('KEYWORDS', str_replace('"','',zen_clean_html($keywords_string_metatags) . CUSTOM_KEYWORDS));
    . Look at my site to see what u looking for : www.softmrm.com

    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 :

    <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">
    Ho can i change that ?

 

 
Page 1 of 2 12 LastLast

Similar Threads

  1. Removing lines from Sub-categories
    By mswire in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 29 Oct 2011, 02:43 PM
  2. Removing this from categories
    By rebel tech in forum Templates, Stylesheets, Page Layout
    Replies: 3
    Last Post: 18 Jan 2010, 08:05 AM
  3. Can I Remove Categories from Populating in Description and Keywords?
    By mycomputerbuddy in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 14 Jan 2009, 07:37 AM
  4. removing -> from the categories links
    By TonySoprano in forum Templates, Stylesheets, Page Layout
    Replies: 1
    Last Post: 1 Dec 2007, 07:34 PM
  5. Removing '|_' from sub-categories.
    By millo_magno in forum Setting Up Categories, Products, Attributes
    Replies: 2
    Last Post: 10 Jan 2007, 10:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg