Give discount for child products also in category products line effect
Give discount for child products also in category products line effect

CategoryProductsBasketCondition applies to basket if basket
contains child products that doesn't belong to specified category
but parent does. If this condition was used with
DiscountFromCategoryProducts effect, user didn't get any discount
because DiscountFromCategoryProducts basket line effect only
checks if current product belongs to a specified categories.
Fix this by using different logic if product in the basket is
a child product and then checking if neither parent and child
doesn't belong to given category.

shoopio/shoop,suutari-ai/shoop,shoopio/shoop,shoopio/shoop,suutari-ai/shoop,suutari-ai/shoop