I have created plugin for elasticSearch to set the size of the page


namespace Devall\ElasticsearchPlugin\Plugin\Checkout\Controller;

class EmptyProducts
 public function afterResolve($subject, $result)

     return $result;

code Looks something like this. the problem is that when I use pagination and go to the next page there are no products until I reload that page. Any suggestions ? how Can I fix this?

  • Value for Products per Page on Grid Allowed Value and Products per Page on Grid Default Value should have $result->setPageSize(30);(in your case). Otherwise, you can manage dynamically in the above plugin(EmptyProducts) it's self.
    – sandip
    Commented Feb 28, 2020 at 9:24


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Browse other questions tagged or ask your own question.