
03.02.2005, 10:42
|
|
|
|
Registriert seit: 16.06.2004
Beiträge: 56
|
|
hallo liebe entwickler,
scheinbar habt ihr in der 3.0.3er was an der product_listing.php was ge?ndert (cPath wird immer mit ?bergeben -> gute sache sowas : bug aus 3.0.2 bei produkten in mehren kategorien behoben) aber leider gibt es nun ein problem mit der suche. hier wird ein leerer cPath ?bergeben und daher wird die kategorie nicht richtig angezeigt wenn man auf ein gefundenes produkt klickt.
also::: cpath nur in der regul?ren kategorien-ansicht setzen, bei der suche nicht...
hier mein diff (klappt wunderbar)
Zitat:
*** product_listing.php.old Sun Jan 2 00:00:00 2005
-#product_listing.php Thu Feb 3 08:55:21 2005
***************
*** 87,92 ****
-#87,94 ----
}
$SEF_parameter='';
if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') $SEF_parameter='&'.xtc_cleanName($category['categories_name'],false).'='.xtc_cleanName($listing['products_name']);
+ $cpath='';
+ if ($_GET['cPath']) $cpath = '&cPath='.$_GET['cPath'];
$module_content[]=array(
'PRODUCTS_NAME'=>$listing['products_name'],
'PRODUCTS_MODEL'=>$listing['products_model'],
***************
*** 94,100 ****
'PRODUCTS_SHORT_DESCRIPTION'=>$listing['products_short_description'],
'PRODUCTS_IMAGE'=>$image,
'PRODUCTS_PRICE'=>$price,
! 'PRODUCTS_LINK' =>xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id'].'&cPath='.$_GET['cPath'].$SEF_parameter),
'BUTTON_BUY_NOW'=>$buy_now,
'PRODUCTS_FSK18' => $fsk18,
'SHIPPING_NAME'=>$shipping_status_name,
-#96,103 ----
'PRODUCTS_SHORT_DESCRIPTION'=>$listing['products_short_description'],
'PRODUCTS_IMAGE'=>$image,
'PRODUCTS_PRICE'=>$price,
! // 'PRODUCTS_LINK' =>xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id'].'&cPath='.$_GET['cPath'].$SEF_parameter),
! 'PRODUCTS_LINK' =>xtc_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $listing['products_id'].$cpath.$SEF_parameter),
'BUTTON_BUY_NOW'=>$buy_now,
'PRODUCTS_FSK18' => $fsk18,
'SHIPPING_NAME'=>$shipping_status_name,
|
|