Bug #5501
openPrevent category/subcategory selection when no products exist and show error message
Description
In the Offer creation process, users are able to select Categories or Subcategories even when there are no products available under them. After creating the offer, the offer appears in the Ecommerce system, but no products are displayed because the selected Category/Subcategory is empty.
This results in invalid offers and confusion for the end user.
The system must prevent selecting a Category/Subcategory that has zero products and display an error message such as:
“No products available under this category/subcategory.”
Issue Details:
Categories or Subcategories without products are still selectable.
No validation is triggered during selection.
Offer gets created successfully but products do not appear in Ecommerce.
This behavior causes incorrect offers to be displayed with no associated products.
Expected Behavior:
When a Category/Subcategory is selected, verify if it contains products.
If products = 0, stop the selection.
Show a clear error message indicating that the selected Category/Subcategory has no products.
Prevent creating an offer without products.
If you want, I can format this with Steps to Reproduce, Expected Result, Actual Result, Severity, Priority.
Subtasks
Related issues
Updated by Rubanraj c 5 days ago
- Status changed from New to Resolved
- % Done changed from 0 to 100
- Estimated time set to 1:30 h
- Tested Date set to 12/03/2025
- Raised by Tester set to Mahananda Sai
- Page/ Module (POS) set to Admin – Offers