1], $productRequest ); $result = $quote->addProduct( $product, new DataObject($normalizedProductRequest) ); if (is_string($result)) { throw new LocalizedException(__($result)); } return $quote; } }