I am using following API for Add product to cart.


But i want to add custom price to cart. Anyone have idea about that ?

$quote = $this->quoteRepository->getActive($cartItem['quote_id']);
$quoteItems = $quote->getItems();
$quoteItems[] = $cartItem;

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.