adobe / aem-core-cif-components

A set of configurations and components to get you started with AEM Commerce development
Apache License 2.0
103 stars 80 forks source link

Ability to control carousel count #480

Open Derthenier opened 3 years ago

Derthenier commented 3 years ago

User Story

As an author, I want the ability to limit the number of products displayed in the Related Products.

Description & Motivation

Instead of showing all the products available, I would like to showcase a limited number of products in the Related Products component to entice customers to click into another page.

Deliverables

Provide a way for content authors to provide a limit to the number of products displayed. If provided, the component should display at most that many products in the component. This would require code change.

Acceptance Criteria

Should have the ability to author a maximum number of products to showcase. Should be able to "revert" back to default behavior. When authored, the component should render up to the authored maximum limit.

Verification Steps

Author the component and verify the default (existing) behavior works as expected. Configure the component to have a limit on the number of products displayed. Verify that no more than the authored limit show up. Configure the component to revert back to the default behavior. Verify that all products show up.

dplaton commented 3 years ago

Thanks for the issue @Derthenier. This is a valid request and we might put it on our roadmap, but in the meantime feel free to contribute by filing a PR.