× Здесь вы можете свободно общаться на русском языке. Просим отнестись с пониманием к тому, что мы не разговариваем на этом языке и не можем осуществлять поддержку на нем.

Срочно нужна помощь в доработке фильтра

  • Posts: 37
  • Thank you received: 0
9 years 10 months ago #184340

-- HikaShop version -- : 2.3.4.
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.29

Здравия честной народ!
Как можно доработать фильтр модуля, чтобы поле text - показывала выпадающий список-подсказки во время ввода запроса в поле. По принципу поисковика яндекс, гугль. Есть ли плагины ajax? Может кто знает как сделать фильтр отвечающий современным требованиям?

Please Log in or Create an account to join the conversation.

  • Posts: 26158
  • Thank you received: 4028
  • MODERATOR
9 years 10 months ago #184341

Hi,

Please understand that we can't provide support in Russian.
I moved your topic in a most appropriate section ; if you really want some support for the HikaShop team, please make posts in English.

Regards,


Jerome - Obsidev.com
HikaMarket & HikaSerial developer / HikaShop core dev team.

Also helping the HikaShop support team when having some time or couldn't sleep.
By the way, do not send me private message, use the "contact us" form instead.

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 0
9 years 10 months ago #184342

How can I modify the filter module to the text field - showed a drop-down list POPs up while typing in the field. According to the principle of the search engine Google. Is there a plugin ajax? Where to work with the code? Where the code change?

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 0
9 years 10 months ago #184347

Vorov wrote: -- HikaShop version -- : 2.3.4.
-- Joomla version -- : 3.3.6
-- PHP version -- : 5.3.29
how to change the output filter select? there is code in which when data is entered displayed information data.

change the select to input <DataList>

<input name="indexCombobox1" type="text" list="indexCombobox1_datalist" id="indexCombobox1">
<datalist id="indexCombobox1_datalist">
<option label="City1" value="City1">
<option label="City2" value="City2">
<option label="City3" value="City3">
</datalist>

filter.php (1439)
if($filter->filter_data=='custom_field'){
$field=parent::getFields($filter, $datas);
if(isset($field->field_value) && is_array($field->field_value)){
foreach($field->field_value as $val){
$selectedItem='';
if(!empty($selected) && in_array($val[0], $selected)){
$selectedItem='selected="selected"';
}
if(empty($val[0]) && $field->field_required) continue;
$html.='<OPTION '.$selectedItem.' name="'.$filter->filter_data.'" value="'.$val[0].'">'.JText::_($val[1]).'</OPTION>';
}
}
}

Please Log in or Create an account to join the conversation.

  • Posts: 37
  • Thank you received: 0
9 years 10 months ago #184348

:pinch:

Last edit: 9 years 10 months ago by Vorov.

Please Log in or Create an account to join the conversation.

Moderators: progreccor
Time to create page: 0.061 seconds
Powered by Kunena Forum