Jump to content
  • Checkout
  • Login
  • Get in touch


The e-commerce.

Display keywords for all products on page


Recommended Posts

I have meta tag controller contrib installed and working


What I am trying to do....


I am working on making a list of keywords from a manufacturer appear on the list by manufacturer page.


What I have done is.....



if (isset($HTTP_GET_VARS['manufacturers_id'])) {

$mt_manufacturer_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");

$mt_manufacturer = tep_db_fetch_array($mt_manufacturer_query);

$mt_model_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");

$mt_model = tep_db_fetch_array($mt_model_query);


define('META_TAG_TITLE', $mt_manufacturer['manufacturers_name']);

define('META_TAG_DESCRIPTION', $mt_manufacturer['manufacturers_name']);

define('META_TAG_KEYWORDS', $mt_manufacturer['manufacturers_name'] . SPLIT_COMMA . $mt_model['products_model']);


What this results in is..........


<!doctype html public "-//W3C//DTD HTML 4.01 Transitional//EN">

<html dir="LTR" lang="en">


<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">

<title>php result from manufactures name</title>

<base href="http:// the page address/">

<meta name="description" content="the manufacturers name">

<meta name="keywords" content="manufacturers name, one product from php result">


The question..........

What change do I need to make to this code in order to display all products from specified manufacturer appear? I can get one product but not the whole list of products.


The SPLIT_COMMA is a define used to enter a space and a comma.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Create New...