Describe the bug
After creating a product using the Admin Create Product API, the product is set to Inactive by default.
However, when attempting to add this inactive product to the customer wishlist using the Shop Wishlist API, the product is still added successfully.
Inactive products should not be eligible for wishlist actions.
To Reproduce
Steps to Reproduce:
- Create a product using the Admin → Create Product API.
- Verify that the product status is Inactive.
- Call the Shop → Add to Wishlist API with the created product ID.
- Check the API response and wishlist items.
Expected Result:
- The Shop Wishlist API should prevent adding inactive products.
-API should return a proper validation/error message such as:
"Product is inactive and cannot be added to wishlist."
Actual Result:
Inactive product is added successfully to the wishlist.
API returns a success response.
Screenshots:
id: 306
inactive product

Describe the bug
After creating a product using the Admin Create Product API, the product is set to Inactive by default.
However, when attempting to add this inactive product to the customer wishlist using the Shop Wishlist API, the product is still added successfully.
Inactive products should not be eligible for wishlist actions.
To Reproduce
Steps to Reproduce:
Expected Result:
-API should return a proper validation/error message such as:
"Product is inactive and cannot be added to wishlist."
Actual Result:
Inactive product is added successfully to the wishlist.
API returns a success response.
Screenshots:
id: 306
inactive product