Skip to content

tax

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)

In Magento 2, I used the Magento 2 TaxCloud extension, but after placing an order, the tax shows as a random amount or sometimes as 0

<?php /** * Taxcloud_Magento2 * * NOTICE OF LICENSE * * This source file is subject to the Open Software License (OSL 3.0) * that is bundled with this package in the file LICENSE.txt. * It is also available through… Read More »In Magento 2, I used the Magento 2 TaxCloud extension, but after placing an order, the tax shows as a random amount or sometimes as 0