You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have created a discount through the saleor dashboard, set it to 10%, start date now and added my main category under which all other categories are. The product counter next to the category shows the correct amount of products in this category and all its subcategories.
When I now query the products in one of the subcategories I don't get the discount returned.
When I add the subcategory to the assigned categories in the discount, the discount is applied correctly through the graphql API.
Steps to reproduce the problem
Create a category "Category 1"
Create a subcategory "Category 1.1"
Create a product "Product 1" in category "Category 1"
Create a product "Product 1.1" in category "Category 1.1"
Create a discount and add "Category 1"
Query products through grapqhql including discount prices. "Product 1" will have a discount, "Product 1.1" not. When "Category 1.1" is added to the discount, the products in "Category 1.1" also get the discount applied.
What did you expect to happen?
The discount is applied to the category and all its subcategories. This is indicated by the "Products" count in the dashboard when adding categories to the discount.
Logs
Partial graphql response when only "Category 1" is added to the discount:
What are you trying to achieve?
I have created a discount through the saleor dashboard, set it to 10%, start date now and added my main category under which all other categories are. The product counter next to the category shows the correct amount of products in this category and all its subcategories.
When I now query the products in one of the subcategories I don't get the discount returned.
When I add the subcategory to the assigned categories in the discount, the discount is applied correctly through the graphql API.
Steps to reproduce the problem
What did you expect to happen?
The discount is applied to the category and all its subcategories. This is indicated by the "Products" count in the dashboard when adding categories to the discount.
Logs
Partial graphql response when only "Category 1" is added to the discount:
response when both categories added to the discount:
Eligible categories shows 2 products for "Category 1" (one is directly in the category, one in the subcategory):
Environment
Saleor version: dashboard v3.18.0 core v3.18.9
OS and version: saleor platform, docker through colima on mac OS
The text was updated successfully, but these errors were encountered: