Uploaded image for project: 'E-commerce'
  1. E-commerce
  2. ECOMMERCE-602

DOCU: Commerce tools (queries search only within 20 first items)

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Neutral
    • 1.3.6
    • None
    • None
    • None

    Description

      For documentation consider this as customer optional value, that, IF NEEDED, they can adjust. The maximum value as it's commented in CommerceTools API is 500 which is something that maybe is not documented that can be configured.

      Resource app > Commercetools.yaml, where they set up the configuration can contain the parameter limit:

      class: info.magnolia.ecommerce.common.EcommerceDefinition
      type: commercetools
      enabled: true
      implementation:
        products:
          all: info.magnolia.ecommerce.commercetools.products.All
          byId: info.magnolia.ecommerce.commercetools.products.ById
          byCategoryId: info.magnolia.ecommerce.commercetools.products.ByCategoryId
          searchByText: info.magnolia.ecommerce.commercetools.products.SearchByText
        categories:
          all: info.magnolia.ecommerce.commercetools.categories.All
          byId: info.magnolia.ecommerce.commercetools.categories.ById
          byParentCategoryId: info.magnolia.ecommerce.commercetools.categories.ByParentCategoryId
          byProductId: info.magnolia.ecommerce.commercetools.categories.ByProductId
        connectionValidator: info.magnolia.ecommerce.commercetools.common.CommercetoolsConnectionValidator
      connections:
        connection:
          enabled: true
          authUrl: https://auth.sphere.io
          parameters:
            clientId: <clientId>
            clientSecret: <clientSecret>
            apiUrl: https://api.sphere.io
            projectKey: <projectKey>
            limit: 400 
      

      Please, note to customers is that by default max of 500 is the value as stated in here https://docs.commercetools.com/api/limits

      "Within a query, up to 500 elements can be fetched. When using pagination, the maximum offset is 10 000. "

      We still don´t support pagination but it will be needed.

      Checklists

        Acceptance criteria

        Attachments

          Issue Links

            Activity

              People

                lpodkoritnik Laura Podkoritnik
                lpodkoritnik Laura Podkoritnik
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:
                  Work Started:

                  Checklists

                    Task DoR