- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Magento 2 Ajax to show large numbers of attribute values in layered navigation
I am using Magento 2.2.6, I have large numbers of brands in layered navigation. It is almost 3000. I want to show the alphabets letters there. when someone clicks on letter. e.g. A, then ajax should run it returns brands starting from A. I have displayed Alphabets letters there, but couldn't get the ajax which return the brands for that specific alphabets and specific. How can i do that.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2 Ajax to show large numbers of attribute values in layered navigation
Hello @ankurkinex ,
Please use below extension, In which you will get below features
- Tailor menu and filters' display to your needs
- Generate SEO-friendly URLs and brand pages
- Let customers filter products by brands
- Speed up product filtering with AJAX
- Use sliders and widgets for numeric attributes
- Fully optimized for mobile
https://amasty.com/improved-layered-navigation-for-magento-2.html
--
If my answer is useful, please Accept as Solution & give Kudos
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2 Ajax to show large numbers of attribute values in layered navigation
This extension is not matching with our requirements.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: Magento 2 Ajax to show large numbers of attribute values in layered navigation
I am trying to print the data from this file. but it is returning blank page. Is there any way?
class FilterRenderer extends Template implements FilterRendererInterface { /** * @param FilterInterface $filter * @return string */ public function render(FilterInterface $filter) { $arrayval = $filter->getItems(); var_dump($arrayval); exit; $this->assign('filterItems', $filter->getItems()); $html = $this->_toHtml(); $this->assign('filterItems', []); return $html; } }