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.
Hello @ankurkinex ,
Please use below extension, In which you will get below features
https://amasty.com/improved-layered-navigation-for-magento-2.html
--
If my answer is useful, please Accept as Solution & give Kudos
This extension is not matching with our requirements.
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;
}
}