Thanks for the detailed answer!
I've done the process but it doesn't work yet...
/tpl_advanced_search_default.php file
1) Ok, I've added:
Code:
<div class="centeredContent"><?php echo zen_draw_input_field('PRODUCTS_AUTHOR', $sData['products_author'], 'onfocus="RemoveFormatString(this, \'' . KEYWORD_FORMAT_STRING . '\')"'); ?>
/include/modules/pages/advanced_search/header_php.php
2) Ok, I've added:
Code:
$sData['products_author'] = (isset($_GET['products_author']) ? zen_output_string($_GET['products_author']) : '');
/include/modules/pages/advanced_search_results/header_php.php
3) added:
Code:
(isset($_GET['products_author']) && !is_string($_GET['products_author'])) &&
4) added
Code:
if (isset($_GET['products_author'])) {
$your_new_field = $_GET['products_author'];
}
5) added
Code:
&& empty($products_author)
6) added
Code:
case 'PRODUCT_LIST_AUTHOR':
$select_column_list .= 'p.products_author';
break;
7) added, but I'm not sure about the ID part...
Code:
if (isset($_GET['products_author']) && zen_not_null($_GET['products_author'])) {
$where_str .= " AND p.products_author = :productsauthorID";
$where_str = $db->bindVars($where_str, ':productsauthorID', $_GET['products_author'], 'string');
}
Where I'm wrong?
Bookmarks