SMSprofi Posted April 12, 2020 Share Posted April 12, 2020 Hello, The price filter (Facet Navigation) has a price limit (maximum: 1000000). If the price of the goods exceeds 1 million, the filter does not work. Does anyone know how to change this restriction? Thank you for your advice. Line Dobrý den, cenový filtr (Facet Navigation) má cenový limit (maximum: 1000000). Pokud cena zboží přesáhne 1 milion, filtr nefunguje. Ví někdo, jak toto omezení změnit? Děkuji ti za rady. Radek Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2020 Share Posted April 13, 2020 Prestashop version ? Verze Prestashopu ? Link to comment Share on other sites More sharing options...
Guest Posted April 13, 2020 Share Posted April 13, 2020 modules/ps_facetedsearch/views/templates/front/catalog/facets.tpl mt_rand:100000 Link to comment Share on other sites More sharing options...
SMSprofi Posted April 14, 2020 Author Share Posted April 14, 2020 On 4/13/2020 at 6:50 AM, Guest said: Prestashop version ? Verze Prestashopu ? Prestashop 1.7.6.4 Link to comment Share on other sites More sharing options...
SMSprofi Posted April 14, 2020 Author Share Posted April 14, 2020 Hello, Unfortunately, changing mt_rand: 100000 has no effect on filter functionality. I also tried to clear the cache and reindex the prices when I changed the value of mt_rand: 100000. No effect. 😞 Have you tested that this is a functional solution - changing the value "mt_rand: 100000"? Dobrý den, bohužel změna hodnoty mt_rand:100000 neměla vliv na funkci filtru. Zkusil jsem i smazat cache a reindexaci cen, když jsem změnil hodnotu mt_rand:100000. Bez efektu. 😞 Máš to otestované, že tohle je funkční řešení - změna hodnoty "mt_rand:100000"? Link to comment Share on other sites More sharing options...
Guest Posted April 15, 2020 Share Posted April 15, 2020 (edited) Až teď jsem se dotal k odpovědi. Odstranit profil filtrování a vytvořit nový, potom podle návodu. https://e-apps.eu/test/ps-17/6-accessories?order=product.name.asc&q=Cena-Kč-14-1797697 Edited April 15, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
SMSprofi Posted April 21, 2020 Author Share Posted April 21, 2020 Hello. I followed the procedure. Unfortunately, the price slider filter still shows the range up to 1 000 000. I'm sending prinscreen screen database. Should I change something here? Thank you for your advice and help. Dobrý den. Postup jsem dodržel. Bohužel filtr - Posuvník s cenou stále ukazuje rozsah do 1 000 000 Kč. Zasílám prinscreen obrazovky databáze. Mám i zde něco změnit? Děkuji za radu a pomoc. Link to comment Share on other sites More sharing options...
Guest Posted April 21, 2020 Share Posted April 21, 2020 (edited) SQL: DELETE FROM `ps_layered_price_index`; ALTER TABLE `ps_layered_price_index` CHANGE `price_min` `price_min` DECIMAL(15,5) NOT NULL, CHANGE `price_max` `price_max` DECIMAL(15,5) NOT NULL; after update database: step 3. or step 7. step 5. or step 9. Done. Edited April 21, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
Guest Posted April 21, 2020 Share Posted April 21, 2020 (edited) You haven't modified everything according to the images instructions. You have price_min and price_max decimal (11,5). Which means a number of 11 characters minus 5 decimal places equal to 6 characters before the decimal point. Therefore, I gave the picture decimal(15,5) !!!! eg.: 15 - 5 = 10 result: 1 234 567 890.12345 ========================== or 13 - 5 = 8 result: 12 345 678.12345 ========================== or 12 - 5 = 7 result: 1 234 567.12345 ========================== Repair is maximum for two minutes of work. Edited April 21, 2020 by Guest (see edit history) Link to comment Share on other sites More sharing options...
SMSprofi Posted April 21, 2020 Author Share Posted April 21, 2020 I received information from you that I missed. Great, it works! Thank you for your help, Mr Tengler. Radek Link to comment Share on other sites More sharing options...
Guest Posted April 21, 2020 Share Posted April 21, 2020 Rád jsem pomohl. Můžeš dát like kliknutím na šedé srdce pod příspěvkem nebo více příspěvky. I gladly helped. You can give a like by clicking on the gray heart below the posts. 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