Project

General

Profile

Edit Copy Actions

Bug #5501

open

Prevent category/subcategory selection when no products exist and show error message

Added by Sravani Rangannapalem 7 days ago. Updated 5 days ago.

Status:
Resolved
Priority:
Normal
Assignee:
Target version:
-
Start date:
12/02/2025
Due date:
% Done:

100%

Estimated time:
1:30 h
Spent time:
Tested Date:
12/03/2025
Raised by Tester:
Mahananda Sai
Page/ Module (POS):
Admin – Offers

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.


Add

Subtasks


Add

Related issues

Edit Copy Actions

Also available in: Atom PDF