Project

General

Profile

Edit Copy Actions

Bug #5501

closed

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

Added by Sravani Rangannapalem about 2 months ago. Updated 16 days ago.

Status:
Closed
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

Actions #1

Updated by Rubanraj c about 2 months 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

Updated by Sai Mahananda 16 days ago

i checked in offers page if category has no products then stopped the category
i if category has no products in e commerce also not availble
it shows when the product created aned enable e comemrce then only is shows working fine in testing environment

Actions #3

Updated by Sai Mahananda 16 days ago

  • Status changed from Resolved to Closed
Edit Copy Actions

Also available in: Atom PDF