Menu

Files to edit

chk

integration into default search

/admin/includes/columns_left.php
hang it into admin-menu - where you want the menu-item to appear put this: ( add it to similar looking lines that make up the menu

if (($_SESSION['customers_status']['customers_status_id'] == '0') && ($admin_access['womd_customsearch_settings'] == '1')) echo '<li><a href="' . xtc_href_link(FILENAME_WOMD_CUSTOMSEARCH_SETTINGS, '', 'NONSSL') . '" class="menuBoxContentLink"> -' . BOX_WOMD_CUSTOMSEARCH_SETTINGS . '</a></li>';

/includes/modules/product_listing.php
assign variable for no searchresult indication

//look for the else at end of the file, addthe $no_search_result variable
...
} else {
  $no_search_results = true;
  $error = TEXT_PRODUCT_NOT_FOUND;
  include (DIR_WS_MODULES.FILENAME_ERROR_HANDLER);
}

/admin/includes/filenames.php
add this to the file:

define('FILENAME_WOMD_CUSTOMSEARCH_SETTINGS','womd_customsearch_settings.php');

/lang/YOURLANGUAGE/admin/yourlanguage.php
add this to the file:

define('BOX_WOMD_CUSTOMSEARCH_SETTINGS','GoogleCustomSearch');

adding g-search box

/templates/YOURTEMPLATE/source/boxes.php

 //add or replace the default search
 // require_once(DIR_WS_BOXES . 'gsearch.php'); with 
require_once(DIR_WS_BOXES . 'gsearch.php');

/templates/YOURTEMPLATE/index.html

 //add or replace the default search
 //<div id="search">{$box_SEARCH}</div> with
<div id="search">{$box_GSEARCH}</div>

Related

Wiki: Home