
prunica
Members-
Posts
45 -
Joined
-
Last visited
prunica's Achievements
Newbie (1/14)
3
Reputation
-
Search in title doesn't work correctly
prunica replied to prunica's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
To solve this problem open the file classes/Search.php Search the "find" function. There you will have something like $intersectArray[] = 'SELECT id_product FROM '._DB_PREFIX_.'search_word sw LEFT JOIN '._DB_PREFIX_.'search_index si ON sw.id_word = si.id_word WHERE sw.id_lang = '.(int)$id_lang.' AND sw.word LIKE '.($word[0] == '-' ? ' \''.pSQL(Tools::substr($word, 1, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' : '\''.pSQL(Tools::substr($word, 0, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' ); if ($word[0] != '-') $scoreArray[] = 'sw.word LIKE \''.pSQL(Tools::substr($word, 0, PS_SEARCH_MAX_WORD_LENGTH)).'%\''; If you know some MySQL, you'll guess that this query searches only words starting with your searched term. In order to make it search words that start with it, but, also, end with it. So, you have to add 3 '%' characters after every like. So, the code will be: $intersectArray[] = 'SELECT id_product FROM '._DB_PREFIX_.'search_word sw LEFT JOIN '._DB_PREFIX_.'search_index si ON sw.id_word = si.id_word WHERE sw.id_lang = '.(int)$id_lang.' AND sw.word LIKE '.($word[0] == '-' ? ' \'%'.pSQL(Tools::substr($word, 1, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' : '\'%'.pSQL(Tools::substr($word, 0, PS_SEARCH_MAX_WORD_LENGTH)).'%\'' ); if ($word[0] != '-') $scoreArray[] = 'sw.word LIKE \'%'.pSQL(Tools::substr($word, 0, PS_SEARCH_MAX_WORD_LENGTH)).'%\''; -
Search in title doesn't work correctly
prunica replied to prunica's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
Anyone having this problem please? -
Search in title doesn't work correctly
prunica replied to prunica's topic in Ecommerce x PrestaShop [ARCHIVE BOARD]
Thanks, you have right, is just a temoporary solution, i have at least 4000 products and many of them are simillar, i can't do it manually for all of them. -
Hi, I have a little problem with prestashop search engine. I use 1.4.9 version and for example i have a product "yamaha rx-v373". If i type in search box the product name, it appears but if i type for example v373 or just 373 doesn';t show me this product. I set the product Product name weight to 10 in Preferences--> Searh and Minimum word length to 1. I have reindexd the products but no result. Please can someone advise me if is a simple method to solve this? otherwise i should change the search php to search only in title. PS in backend if i type 373 or v373 it works, the product appears. Thanks Stefan.
-
How to display a hook position for each category
prunica replied to prunica's topic in Core developers
Nobody... -
Salut, Nu pot sa afisez un modul doar pentr o anumita categorie Spre exemplu am pus codul acesta {if $page_name == 'category' AND $smarty.get.id_category == 5} <div id="left_column" class="column">{$HOOK_LEFT_COLUMN}</div> {/if} Cu acest cod am facut sa imi apara pozitia respectiva doar cand se acceseaza categoria cu id-ul 5 dar atunic cand intru pe un produs din pagina respectiva ,face trimitere catre pagina produsului si codul se anuleaza si numai imi apare modulul. Stiu ca este posibil sa adaug in if conditia if$page_name =="product" si id-ul produsului respectiv,doar ca am multe multe produse si doresc sa fac o setare globala pentru toate din categoria respectiva inclusiv pentru subcategorii. Doresc sa fac acest lucru deoarece am pe site 3 categorii diferite pe care vreau sa afisez module diferite. Exista o alta posibilitate? Multumesc
-
Hi, I 'm a having a problem with displaying a hook (in this hook will be a category module). For example: {if $page_name == 'category' AND $smarty.get.id_category == 5} <div id="left_column" class="column">{$HOOK_LEFT_COLUMN}</div> {/if} With this code this hook appears on the category with id 5 ,but when i acces a product from that category it goes to product page and the hook dissapear. I know that it's possible to add in that if if$page_name =="product" and the id related to one product,but i have many products in that category and ii want to make the hook to be displayed in all the products page from that cateogry ,and even in subcategories from that category. I want to make this thing perhaps i have three different categories , and each other must have different modules on the left column .
-
Am incercat sa tirmit un feed celor de la compari.ro dar cere Product URL, exista vreo posibilitate sa export link-ul produsului intr-un xml sau csv. La fel si pentru feed-ul la magazin pentru okazii,cere un camp aditional IMAGE URL....am instlat un modul de export am cautat pe forumd ar din pacate imi exporta csv-ul gol:| A mai intampinat cineva problemele astea sau a rezolvat cumva feed-ul pentru unul din aceste 2 site-uri. Multumesc!
-
Multumesc victor,mi-ai fots de mare ajutor, acum le voi exporta in format csv,dar eu le-am importat deja cu un csv nu as putea folosi acelasi csv?ca sa numai fie nevoie sa export altul:)
-
Salut, Am cautat pe forumd ar nu am gasim ceva concret ca sa inteleg,doresc sa stiu cum pot genera produsele de pe un site actual sa le generez in format xml pentru ca doresc ca produsele sa fie preluate pe site-ul www.compari.ro. Exista un modul de feed sau o solutie ca sa pot face acest lucru,a mai avut vruenul dintre voi nevoie de asa ceva? Multumesc! Prunica
-
[REZOLVAT]Eroare Import Clienti
prunica replied to prunica's topic in Instalare, configurare şi upgrade
Multumesc da de la asta era multumesc:D O zi buna,de fiecare data ma scoti din ceata. -
PB Import base client URGENT
prunica replied to Fred A's topic in Utilisation de PrestaShop : configuration et difficultés
I have the same problem,does anyone solve this error please:-( -
Salut, revin cu o problema acum la importul de clienti.Din fericire produsele am reusit sa le import dar cand incerc sa import clientii nu merge da eroarea" [email protected] cannot be saved" unde [email protected] e email-ul respectiv din csv. Mai jos am atasat fisierul nu este nimic gresit in el deoarece am mers pe aceasi pasi ca la importul de produse. Orice idee ma ajuta.......daca nu reuses sa import clientii am "imbulinat-o":D,este posibil sa fie un bug la importul de clienti? Multumesc testprunica.csv
-
Stergerea marginilor albe de la pozele produselor!
prunica replied to prunica's topic in Module şi teme [ARCHIVE]
Ms,am reusit prin atla metoda practic doar am modificat dimensiunea de la preferences images si a mers:D ,doar ca acum am problema cu marginile albe incerc sa le scot si sa se redimensioneze poza cat caseta,daca nuo a schimb culoarea albului in fondul template-ului dar sper sa reusesc sa scot albul intai:) Multumesc din nou, Prunica