Nabend,
erstmal dickes Lob an das Team
Vorraussetzung: Direct URL nach der Anleitung installiert
Fehler: category / products Links funktionieren nicht
Folgende Dateien müssen angepasst werden.
/inc/xtc_product_link.inc.php
function xtc_product_link($pID, $name='')
{
//DIRECT URL
$pName = xtc_cleanName($name);
$link = 'info=p'.$pID.'_'.$pName.'.html';
return $link;
//return 'products_id='.$pID;
//DIRECT URL
}
/inc/xtc_category_link.inc.php
function xtc_category_link($cID,$cName='')
{
//DIRECT URL
$cName = xtc_cleanName($cName);
$link = 'cat=c'.$cID.'_'.$cName.'.html';
return $link;
//require_once(DIR_FS_INC . 'xtc_get_category_path.inc.php');
//return 'cPath='.xtc_get_category_path($cID);
//DIRECT URL
}
Falls Ihr nach den 2 Anpassungen immer noch Probleme habt die /inc/xtc_href_link.inc.php überprüfen.
Um dynamische zwischen DirectURL und Shopstat URLs zu switchen diese Anpassung vornehmen:
/inc/xtc_product_link.inc.php
function xtc_product_link($pID, $name='')
{
//DIRECT URL
if (MODULE_BLUEGATE_SEO_INDEX_STATUS == 'True')
{
$pName = xtc_cleanName($name);
$link = 'info=p'.$pID.'_'.$pName.'.html';
return $link;
}
else
{
return 'products_id='.$pID;
}
//DIRECT URL
}
/inc/xtc_category_link.inc.php
function xtc_category_link($cID,$cName='')
{
//DIRECT URL
if (MODULE_BLUEGATE_SEO_INDEX_STATUS == 'True')
{
$cName = xtc_cleanName($cName);
$link = 'cat=c'.$cID.'_'.$cName.'.html';
return $link;
}
else
{
require_once(DIR_FS_INC . 'xtc_get_category_path.inc.php');
return 'cPath='.xtc_get_category_path($cID);
}
//DIRECT URL
}
Die Links sollten nun wie auf der
Testseite aussehen.
ggf. => ins Wiki eintragen
Grüße David
[
EDIT Tomcraft 03.03.2011: Anleitung
erweitert.]
Linkback: https://www.modified-shop.org/forum/index.php?topic=11369.0