src/Frontend/Modules/Commerce/CheckoutStep/PayOrderStep.php
/**
     * Extract quantity from cart rules because the order is paid.
     */
Extract quantity from cart rules because the order is paid.
Extract quantity from cart rules because the order is paid .
private function updateCartRules()
    {
        foreach ($this->cart->getOrder()->getRules() as $rule) {
            $updateCartRule = new UpdateCartRule($rule->getCartRule());
            $updateCartRule->quantity -= 1; 
            $this->get('command_bus')->handle($updateCartRule);
        }
    }
private function updateCartRules ( ) { foreach ( $ this -> cart -> getOrder ( ) -> getRules ( ) as $ rule ) { $ updateCartRule = new UpdateCartRule ( $ rule -> getCartRule ( ) ) ; $ updateCartRule -> quantity -= 1 ; $ this -> get ( 'command_bus' ) -> handle ( $ updateCartRule ) ; } }
Extract quantity from cart rules because the order is paid.
Extract quantity from cart rules because the order is paid .
// Cart rules cant be double