Skip to content

orders

Auto Added by WPeMatico

Magento 2 – how to create order programmatically with custom price AND tax amount for each line item (not percent)

I created a module that creates an order programmatically and I can also set the custom price. This is part of my code: foreach($orderData[‘products’] as $product) { try { $quoteProduct = $this->productRepository->get($product[‘sku’]); $this->logger->info(sprintf(“Adding product to quote, id: %d, sku: %s,… Read More »Magento 2 – how to create order programmatically with custom price AND tax amount for each line item (not percent)