Hi,
Thank you for the accesses. I was able to found the issue.
The line:
was missing before the line:
$filters[] = '(('.implode(') OR (', $categoriesFilters).'))';
in the patch I had previously made 3 months ago (
www.hikashop.com/forum/discount-coupon/8...category.html#306283
).
Adding that line, it's now working fine on your website as far as I could test.
In fact, the previous code, without that modification was working fine as long as you didn't had several discounts restricted on categories and not directly attached to the products.
That's why I didn't had the issue on my end as I had only one discount enabled with a category with sub categories.
And the update was actually not related to the issue, but it was the fact that you just had less discounts which didn't create the problem.
We'll add that change on our end.