Results 1 to 2 of 2
  1. #1
    Join Date
    Oct 2007
    Posts
    17
    Plugin Contributions
    0

    Default meta tags, keywords getting the names frm categories

    hi,

    has the current setup of keyword generation for each product info page, it generates a string with the name of the product and all top categories, what i wanted to achieve was a keyword generation like this:

    top category wich product belongs + sub-category if any + product name + manufacturer name

    can someone help me please'? my php knowladge isnt enough.

    i think it has something to do with the code inside, modules->meta_tags.php

    maybe this code bellow:

    // 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 .= zen_clean_html($keywords_metatags->fields['categories_name']) . METATAGS_DIVIDER;
    $keywords_metatags->MoveNext();
    }
    define('KEYWORDS', str_replace('"','',zen_clean_html($keywords_string_metatags) . CUSTOM_KEYWORDS));

    what do i need to alter to make this work ? thanks.

  2. #2
    Join Date
    Jun 2003
    Posts
    33,721
    Plugin Contributions
    0

    Default Re: meta tags, keywords getting the names frm categories

    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

 

 

Similar Threads

  1. v151 Categories appearing as Keywords in the individual products meta tags
    By Greuceanu in forum General Questions
    Replies: 2
    Last Post: 24 Sep 2014, 07:39 PM
  2. Replies: 3
    Last Post: 3 Jul 2014, 05:02 AM
  3. Help getting Meta-tags in to the EZ pages set up...
    By BenhamCollectibles in forum General Questions
    Replies: 0
    Last Post: 4 Dec 2009, 11:49 PM
  4. meta tags keywords & description are the same
    By machoman in forum General Questions
    Replies: 35
    Last Post: 3 Sep 2008, 03:10 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