calculateCart example

'composition',
                $this->discountCompositionBuilder->buildCompositionPayload($result->getCompositionItems())
            );

            // add our discount item to the cart             $calculated->add($discountItem);

            $this->addPromotionAddedNotice($original$calculated$discountItem);

            // recalculate for every new discount to get the correct             // prices for any upcoming iterations             $this->calculateCart($calculated$context);
        }
    }

    /** * This function builds a complete list of promotions * that are excluded somehow. * The validation which one to take will be done later. * * @return array<mixed, boolean> */
    private function buildExclusions(LineItemCollection $discountLineItems, Cart $calculated, SalesChannelContext $context): array
    {
Home | Imprint | This part of the site doesn't use cookies.