Hi,
I need to remove an order cart rule and recalculate the order amounts when the hook validateOrder is executed.
I seen that prestashop have a symfony order controller with the method i need.
//$oc = new OrderController();
//$oc->removeCartRuleAction(185,37);
Is possible use this? Recalculate the amounts manually will cause me a lot of bugs
The problem is that the commandBus "prestashop.core.command_bus" does not exists for front (i guess)
I tryed to execute the handler class manually, but it need some classes that im not able to create...
Thanks.