ps_facetedsearch | PrestaShop module that adds layered navigation filters | Blog library
kandi X-RAY | ps_facetedsearch Summary
kandi X-RAY | ps_facetedsearch Summary
Filter your catalog to help visitors picture the category tree and browse your store easily.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Get filter content .
- Creates faceted filters from query query object .
- Get field mapping .
- Adds filters to the search adapter .
- Get feature block .
- Finds the product with the given query .
- Modify the facet .
- get data for edit form
- Returns product search provider .
- Saves a feature .
ps_facetedsearch Key Features
ps_facetedsearch Examples and Code Snippets
npm run dev # Watch js/css files for changes
npm run build # Build for production
Community Discussions
Trending Discussions on ps_facetedsearch
QUESTION
Has anyone had any issue with using Prestashop's Product class updateCategories() before for updating lots of products categories at once? We're using this to map supplier categories to our own categories and we need to change 100's-1000's of products categories. The problem we're running into is that updateCategories usually slows down to a crawl when updating larger amounts of products 100+ and will take hours to do it.
I've checked the timings of it running on 50 products and sometimes it updates them fine and sometimes it starts slowing down immensely after 30-40.
One other thread suggested it might be an action hook triggering on updateCategories(), but even after disabling / overriding the modules with this hook (ps_mainmenu, ps_facetedsearch) it still didn't fix it.
Our shop currently has ~150 000 products and 300+ categories, the server hardware shouldn't be a problem, checked the metrics and nothing was bottlenecking it.
Would love to hear any suggestions on where the problem could be originating from, or a way to find out what's causing it myself.
Attaching an example script for bulk updating categories.
...ANSWER
Answered 2022-Mar-22 at 10:50The issue was with the cleanPositions() method in Products class, it was recalculating positions as @user3256843 mentioned in the comments, I'll be looking to override / write a different method for myself to use.
QUESTION
i work with prestashop1.7. The Search by Brand works perfectly under the form "dropdown list" in the module ps_facetedSearch.
I need to override this search instead of dropdown i need an input field, So i think that the solution can be to search if the inputed text is exist in the dropdown list. this is my essay but the console display no despite console log on txtValue and inpted showContent of these variables. that's why i need your help concerning the script js itself that must test if inputed text exist in the dropdown list.
code html of the module faceted search
...ANSWER
Answered 2020-Sep-21 at 15:00Now it works for me
QUESTION
I want to override a simple line of code of the official module ps_featuredsearch of Prestashop 1.7.6.7.
The file is /modules/ps_facetedsearch/src/Hook/ProductSearch.php, method productSearchProvider (public) and line 56.
...ANSWER
Answered 2020-Sep-19 at 22:19It's not possible to override module classes directly.
The one way is to bumb version to for example 9.99 (to avoid updates), and take care of them manually, after your change to core of this module. It's not an ideal way, but it does the job.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install ps_facetedsearch
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page