My requirement is filter the discount the filter value based on the product are shown the user interface what can i do ?
To filter discounts based on the displayed products on the user interface, you need to:
- Implement a filtering function that checks for applicable discounts related to each product being shown.
- Attach filter criteria to your UI components, ensuring users only see discounts relevant to the visible products.
- Dynamically update the discount list whenever the displayed products change.
This ensures users only see relevant discounts based on the currently visible products.
If you have other questions, I am willing to answer them more.
Best regards,
Daisy