Magento 2
  • Personalization for Magento 2
  • Installing
  • Disconnecting
  • Uninstalling
  • Getting Started
  • Configuring
  • Hyvä Theme
  • Guides
    • Migrating to Magento2
    • Upgrading to >= 4.0.0
    • Varnish & Full-Page Caches
    • Advanced User Guide
    • Managing Blocks
    • Overriding or Extending Functionalities
      • Overriding Product Data
        • Excluding Products
        • Customising Pricing
        • Customising Categories
        • Resizing Images
      • Overriding Customer Data
    • Console Commands
    • Tagging Providers
  • Features
    • Product data caching
      • Built-in caching
      • Database caching
    • Variations (Configurable Products)
    • Add to Cart
    • Indexer
      • On 7.x
      • On 5.x and 6.x
      • On 4.x
      • On 3.x
    • Customer Group Pricing
    • Supplier Cost & Inventory Level
    • Restore Cart Link
    • Ratings & Reviews
    • Multi Currency (Exchange Rates)
    • Marketing permission and GDPR compatibility
    • Content Staging & Special Prices
  • Integrations
    • Using Yotpo
  • FAQ
  • Developing & Contributing
  • Visit Nosto
  • Issues
  • Releases
  • Addons
    • Multi Source Inventory (MSI)
      • Installing
      • Uninstalling
      • Configuring
    • Category Merchandising (CM 1.0)
      • Installing
      • Uninstalling
      • Configuring
      • Guides
        • Translating Frontend Strings
        • PWA Implementation
        • Using Elasticsearch
        • Segmentation
        • Overriding or Extending Functionalities
          • Customize Query Parameters
          • Customize Page Size Limit
          • Customize Exclude Filters
        • Debugging
Powered by GitBook
On this page
  • Use cases
  • Setting custom page size value
  • Compiling your changes

Was this helpful?

  1. Addons
  2. Category Merchandising (CM 1.0)
  3. Guides
  4. Overriding or Extending Functionalities

Customize Page Size Limit

The CM module makes use of the default page size used in the storefront. There might be cases when the page size value might be incorrect. You can state the page size used by our module.

Use cases

There are 3 use cases:

  1. When MySQL is configured as the search engine.

  2. When ES is configured as the search engine

  3. When the merchant is using M2 graphql to fetch the catalog page

Setting custom page size value

  1. Open the file app/code/My/Nosto/etc/di.xml

  2. Override the pageSize argument for web handler Nosto\Cmp\Plugin\Framework\Search\Request\WebHandler or GraphQL handler Nosto\Cmp\Plugin\Framework\Search\Request\GraphQlHandler

    <type name="Nosto\Cmp\Plugin\Framework\Search\Request\WebHandler">
        <arguments>
            <argument name="pageSize" xsi:type="number">64</argument>
        </arguments>
    </type>
    <type name="Nosto\Cmp\Plugin\Framework\Search\Request\GraphQlHandler">
        <arguments>
            <argument name="pageSize" xsi:type="number">64</argument>
        </arguments>
    </type>

Compiling your changes

In order to compile your changes you'll need to run the di:compile command

bin/magento setup:di:compile
PreviousCustomize Query ParametersNextCustomize Exclude Filters

Last updated 3 years ago

Was this helpful?