Einzelnen Beitrag anzeigen
  #7 (permalink)  
Alt 15.03.2008, 13:56
tuvalu
Gast
 
Beiträge: n/a
Standard

Schritt 1:
?ffne includes/filenames.php und suche:
Code:
define('FILENAME_PRODUCT_LISTING', 'product_listing.php');
danach einf?gen:
Code:
define('FILENAME_PRODUCT_SEARCH', 'product_search.php');
Schritt 2:
?ffne advanced_search_result.php und suche:
Code:
require (DIR_WS_MODULES.FILENAME_PRODUCT_LISTING);
ersetze mit:
Code:
require (DIR_WS_MODULES.FILENAME_PRODUCT_SEARCH);
Schritt 3:
Kopiere die includes/modules/product_listing.php und benenne die Datei um in product_search.php

?ffne die neue Datei und suche:

// get default template
...
...
...
?>
ersetze mit:
Code:
Code:
      // get default template
if ($category['listing_template'] == '' or $category['listing_template'] == 'default') {
    $files = array ();
    if ($dir = opendir(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_search/')) {
 while (($file = readdir($dir)) !== false) {
     if (is_file(DIR_FS_CATALOG.'templates/'.CURRENT_TEMPLATE.'/module/product_search/'.$file) and ($file != "index.html") and (substr($file, 0, 1) !=".")) {
  $files[] = array ('id' => $file, 'text' => $file);
     } //if
 } // while
 closedir($dir);
    }
    $category['listing_template'] = $files[0]['id'];
}

if ($result != false) {

    $module_smarty->assign('MANUFACTURER_DROPDOWN', $manufacturer_dropdown);
    $module_smarty->assign('language', $_SESSION['language']);
    $module_smarty->assign('module_content', $module_content);

    $module_smarty->assign('NAVIGATION', $navigation);
    // set cache ID
 if (!CacheCheck()) {
 $module_smarty->caching = 0;
 $module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/product_search/'.$category['listing_template']);
    } else {
 $module_smarty->caching = 1;
 $module_smarty->cache_lifetime = CACHE_LIFETIME;
 $module_smarty->cache_modified_check = CACHE_CHECK;
 $cache_id = $current_category_id.'_'.$_SESSION['language'].'_'.$_SESSION['customers_status']['customers_status_name'].'_'.$_SESSION['currency'].'_'.$_GET['manufacturers_id'].'_'.$_GET['filter_id'].'_'.$_GET['page'].'_'.$_GET['keywords'].'_'.$_GET['categories_id'].'_'.$_GET['pfrom'].'_'.$_GET['pto'].'_'.$_GET['x'].'_'.$_GET['y'];
 $module = $module_smarty->fetch(CURRENT_TEMPLATE.'/module/product_search/'.$category['listing_template'], $cache_id);
    }
    $smarty->assign('main_content', $module);
} else {

    $error = TEXT_PRODUCT_NOT_FOUND;
    include (DIR_WS_MODULES.FILENAME_ERROR_HANDLER);
}
?>
Schritt4:
Erstelle eine Kopie der Datei .... templates/xtc4/module/product_listing/product_listing_v1.html
und benenne sie um in product_search.html
Erstelle innerhalb vom Ordner module einen neuen Ordner product_search ... und dorthin wird die neue Datei hochgeladen ...
So sollte das dann aussehen:
templates/xtc4/module/product_search/product_search.html

Schritt5:
Jetzt k?nnt ihr die neue product_search.html ganz nach euren W?nschen bearbeiten
Mit Zitat antworten