magento / magento2

Prior to making any Submission(s), you must sign an Adobe Contributor License Agreement, available here at: https://opensource.adobe.com/cla.html. All Submissions you make to Adobe Inc. and its affiliates, assigns and subsidiaries (collectively “Adobe”) are subject to the terms of the Adobe Contributor License Agreement.
http://www.magento.com
Open Software License 3.0
11.56k stars 9.32k forks source link

"Number of Products to Display" doesn't work for the Catalog Products Widgets #26564

Closed densen45 closed 4 years ago

densen45 commented 4 years ago

The setting Number of Products to Display for catalog products widgets has no effect, i.e. the amount of products shown by the widget is not limited to the provided value. Instead it shows all products passing the Conditions.

Preconditions (*)

  1. Magento 2.3.3

Steps to reproduce (*)

Create a new CMS page with a product list widget.

  1. Adminhtml: Content > Pages > Add New Page
  2. Enter a Page Title, e.g. Product List
  3. Add a widget to the content section
  4. Choose Catalog Products List for Widget Type (can be reproduced with Catalog New Products List as well)
  5. Set Number of Products to Display to e.g. 5
  6. Create a Condition that is met by at least 6 product
  7. Insert the widget
  8. Set the URL Key under Search Engine Optimization e.g. to product-list
  9. Save the page
  10. Enter your.domain/product-list in your browser

Expected result (*)

  1. Only 5 products are shown (or whatever Number of Products to Display you set to)

Actual result (*)

  1. All products that pass the condition you configured in the widget are shown

Further Information

I cannot reproduce this issue in Magento 2.3.2.

m2-assistant[bot] commented 4 years ago

Hi @densen45. Thank you for your report. To help us process this issue please make sure that you provided the following information:

Please make sure that the issue is reproducible on the vanilla Magento instance following Steps to reproduce. To deploy vanilla Magento instance on our environment, please, add a comment to the issue:

@magento give me 2.4-develop instance - upcoming 2.4.x release

For more details, please, review the Magento Contributor Assistant documentation.

@densen45 do you confirm that you were able to reproduce the issue on vanilla Magento instance following steps to reproduce?


densen45 commented 4 years ago

@magento give me 2.3.3 instance

magento-engcom-team commented 4 years ago

Hi @densen45. Thank you for your request. I'm working on Magento 2.3.3 instance for you

m2-assistant[bot] commented 4 years ago

Hi @ajijshekh123. Thank you for working on this issue. In order to make sure that issue has enough information and ready for development, please read and check the following instruction: :point_down:

magento-engcom-team commented 4 years ago

Hi @densen45, here is your Magento instance. Admin access: https://i-26564-2-3-3.instances.magento-community.engineering/admin_e4c8 Login: 3761dbfa Password: c9a1c2c3b384 Instance will be terminated in up to 3 hours.

ajijshekh123 commented 4 years ago

Give me @magento give me 2.4-develop instance

magento-engcom-team commented 4 years ago

Hi @ajijshekh123. Thank you for your request. I'm working on Magento 2.4-develop instance for you

magento-engcom-team commented 4 years ago

Hi @ajijshekh123, here is your Magento instance. Admin access: https://i-26564-2-4-develop.instances.magento-community.engineering/admin_641b Login: 8750ae65 Password: 7b7ba8cff2aa Instance will be terminated in up to 3 hours.

Mathanagopal97 commented 4 years ago

@ajijshekh123 how to reindex in magento 2.4 instance provided by @magento-engcom-team ?

ajijshekh123 commented 4 years ago

Hello @densen45, The issue is not reproduced in the Magento 2.3.3 and Magento 2.4 Instance. Thanks.

densen45 commented 4 years ago

Hey @ajijshekh123, you are right, I cannot reproduce the issue in the provided Magento 2.3.3 instance either. Therefore I close this issue. Many thanks for your investigation!