bello Posted October 8, 2009 Share Posted October 8, 2009 versiunea 1.2.4dupa instalare ce am observat ca apare nou in 1.2.4 la search cand scrii ceva apare un fel de drop-down cu alte produse asemanatoare literelor pe care le tastez, kiar f tare treaba astadupa o vreme am vazut ca numi mai apare, am crezut ca o fi de la browser leam incercat pe toate ie8, firefox, opera, chrome , maxthon si nimic in admin la preferences > search este bifat ajax search si am si apasat cele doua butoane de rebuild si add... idei ceva sa mearga din nou? Link to comment Share on other sites More sharing options...
irl Posted October 9, 2009 Share Posted October 9, 2009 Dca nu exista adauga astea doua linii in modules/blocksearch/blocksearch.tpl<!-- Block search module -->[removed][removed]<link rel="stylesheet" type="text/css" href="{$content_dir}css/jquery.autocomplete.css" /> Link to comment Share on other sites More sharing options...
irl Posted October 9, 2009 Share Posted October 9, 2009 De ce a removed linia java link?postez din nou <!-- Block search module --> script type="text/javascript" src="{$content_dir}js/jquery/jquery.autocomplete.js">[removed] <link rel="stylesheet" type="text/css" href="{$content_dir}css/jquery.autocomplete.css" /> Link to comment Share on other sites More sharing options...
bello Posted October 10, 2009 Author Share Posted October 10, 2009 ce miai dat tu sa fac am facut si tot nu a mersam gasit cele doua linii ale tale in modules/blocksearch/header.tpl si erau de cenu:<link rel="stylesheet" type="text/css" href="{$content_dir}css/jquery.autocomplete.css" />[removed][removed]leam pus in toate tpl urile din modulul search si tot nu a mers Link to comment Share on other sites More sharing options...
bello Posted October 10, 2009 Author Share Posted October 10, 2009 asa sunt liniile de cond nu de ce mi lea pus asa in post: <link rel="stylesheet" type="text/css" href="{$content_dir}css/jquery.autocomplete.css" /> [removed][removed] Link to comment Share on other sites More sharing options...
Radu Posted October 10, 2009 Share Posted October 10, 2009 nu cred ca e din cod, reindexeaza produsele si o sa mearga:admin->preferences->search->Re-build entire index. Link to comment Share on other sites More sharing options...
bello Posted October 10, 2009 Author Share Posted October 10, 2009 iam dat si re-build , prima data asta iam dat si iam dat si add missing product tu index si nimikde fiecare data imi zice Update successful 44/44 products Link to comment Share on other sites More sharing options...
Radu Posted October 10, 2009 Share Posted October 10, 2009 ok, am intrat pe site-ul tai si am vazut problemaintra in modules/blocksearch/blocksearch-top.tplsi modifica codul dintre tagurile script sa fie asa: {literal} function formatSearch(row) { return row[2] + ' > ' + row[1]; } function redirectSearch(event, data, formatted) { $('#search_query').val(data[1]); document.location.href = data[3]; } $('document').ready( function() { $("#search_query").autocomplete( '{/literal}{$base_dir}{literal}search.php', { minChars: 3, max:10, width:500, scroll: false, formatItem:formatSearch, extraParams:{ajaxSearch:1,id_lang:{/literal}{$cookie->id_lang}{literal[spam-filter] }).result(redirectSearch) }); {/literal} Link to comment Share on other sites More sharing options...
bello Posted October 10, 2009 Author Share Posted October 10, 2009 as fi vrut eu sa mearga dar din pacate nu a fost asa Link to comment Share on other sites More sharing options...
Radu Posted October 10, 2009 Share Posted October 10, 2009 modifcarea nu a aparut incain config/smarty.config.inc.php pune temporar $smarty->force_compile=true; Link to comment Share on other sites More sharing options...
bello Posted October 10, 2009 Author Share Posted October 10, 2009 am facut si asta Link to comment Share on other sites More sharing options...
Radu Posted October 10, 2009 Share Posted October 10, 2009 se pare canu gaseste $cookie->id_lang in modules/blocksearch/blocksearch-top.tplincearca sa pui la codul de mai sus pe care l-am atasat:extraParams:{ajaxSearch:1,id_lang:{/literal}ID_UL_LIMBII_TALE{literal[spam-filter]de ex:extraParams:{ajaxSearch:1,id_lang:{/literal}1{literal[spam-filter]===========dupa asta instaleaza/dezinstaleaza modulul - asigura-te ca este hook-uit in header si top. Link to comment Share on other sites More sharing options...
bello Posted October 10, 2009 Author Share Posted October 10, 2009 moa mergeeeee esti din bucuresti? hai la o bereee multumesc nu credeam ca o sa mai rezolv buba asta - tre sa caut aku sa editez un pic sa apara altfel drop down meniul , daca reusesc tre sa fac niste corecturi ca poate citeste si altcineva si sai fie mai usor , a trebuit sa citesc codul sursa din cele doua fisieredeci in modules/blocksearch/blocksearch-top.tpl cam pe randul 34 apare extraParams:{ajaxSearch:1,id_lang:{/literal}{$cookie->id_lang}{literal[spam-filter]din cele spuse de Radu eu am adaugat 3 dupa cum urmeazaextraParams:{ajaxSearch:1,id_lang:{/literal}{$cookie->id_lang}3{literal[spam-filter]acest 3 lam luat din admin>tools>languages si ID ul corespunzator limbii default Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now