Jump to content
xt:Commerce Community Forum
Sign in to follow this  
xmtx

Artikelname Anstatt Artikelnummer In Navigation?

Recommended Posts

Artikelname anstatt artikelnummer in navigation?

zur zeit:

Startseite ? Katalog ? CD ? 100001

ziel:

Startseite ? Katalog ? CD ? Produktname

wie mach ich das?

danke

Share this post


Link to post
Share on other sites

Hallo,

habs rausgefunden :rock:

wen es interessiert:

in der datei:

includes/application_top.php


// add the products model to the breadcrumb trail

if (isset($_GET['products_id'])) {

 $model_query = xtc_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . (int)$_GET['products_id'] . "'");

 $model = xtc_db_fetch_array($model_query);

 $breadcrumb->add($model['products_model'], xtc_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . (int)$_GET['products_id']));

}

ersetzen mit:

 // add the products model to the breadcrumb trail

  if (isset($_GET['products_id'])) {

  $model_query = xtc_db_query("select products_name from " . TABLE_PRODUCTS_DESCRIPTION . " where products_id = '" . (int)$_GET['products_id'] . "'");

  $model = xtc_db_fetch_array($model_query);

  $breadcrumb->add($model['products_name'], xtc_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . (int)$_GET['products_id']));

 } 

gr?sse, mt

Share this post


Link to post
Share on other sites
Sign in to follow this  

×
×
  • Create New...