Thanks for the quick reply Nicolas,
I see.
Unfortunately I need access to data which is not passed, like the products that are already in the cart and some other stuff.
I am interested though, in your alternative solution. What do you mean exactly by
"Otherwise, it's possible to reinitialize the cart loading after that by using the same code as before the call to that trigger." ?
The problem is, that the script never gets to "after that", because of an endless loop, which is triggered by the discount class in the check() function in line 347 (Version 2.4.0)
There
$class->update('',0,0,'coupon');
is called, which results in the trigger "onBeforeCartUpdate" from the cart class, which results in an endless loop between the two.
What do you propose me to change to avoid this?
BTW, why not make the whole cart (with all the loadfullcart-data) available through the trigger in the first place? That way, it wouldn't be necessary for us to call it again?