DarkLucas Posted August 8, 2011 Share Posted August 8, 2011 Stie cineva, se poate implementa in presta ceva de genul cum exista pe acest site AutoLand ? Link to comment Share on other sites More sharing options...
valentin.g Posted August 19, 2011 Share Posted August 19, 2011 bineinteles. Link to comment Share on other sites More sharing options...
DarkLucas Posted August 19, 2011 Author Share Posted August 19, 2011 bineinteles. Daca nu e cu suparare, imi dai si ceva idee cum se poate face? Ca la asta mi-am cam prins urechile. MULTUMESC. Link to comment Share on other sites More sharing options...
valentin.g Posted August 19, 2011 Share Posted August 19, 2011 creezi in tema ta un fisier tpl care va contine formularul dorit sau rezultate interogarii dupa caz creezi fisierele searchComponenta.php, controllers/SearchComponentaController.php cu contintul similar ca si search.php respectiv controllers/SearchController.php aceste fisiere le adaptezi pentru cazul tau controllers/SearchComponentaController.php va contine o functia IF in felul urmator: if ($cod_produs = urldecode(Tools::getValue('cod_produs')) AND $cod_fabricant = urldecode(Tools::getValue('cod_fabricant'))) $nbProducts = (int)(Search::searchCod((int)(self::$cookie->id_lang), $tag, true)); $this->pagination($nbProducts); $result = Search::searchCod((int)(self::$cookie->id_lang), $tag, false, $this->p, $this->n, $this->orderBy, $this->orderWay); Module::hookExec('search', array('expr' => $tag, 'total' => sizeof($result))); self::$smarty->assign(array( 'search_tag' => $tag, 'products' => $result, 'search_products' => $result, 'nbProducts' => $nbProducts, 'homeSize' => Image::getSize('home'))); else .... unde va trebui sa adaugi functia searchCod in classes/Search.php functia searchCod asta va trebui sa interogheze in functia de cod_produs si cod_producator daca a fost selectat. ultimul lucru este sa adaugi un link in meniu la searchComponenta.php Link to comment Share on other sites More sharing options...
DarkLucas Posted August 24, 2011 Author Share Posted August 24, 2011 Multumesc frumos, dar e prea complicat pentru mine ! 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