Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
order_express_with_tax.php
Go to the documentation of this file.
1 <?php
10 
11 require __DIR__ . '/order_express.php';
12 
14 $objectManager = Bootstrap::getObjectManager();
15 
16 $subTotal = 121;
17 $taxRate = .0825;
21 
22 $order->setSubtotal($subTotal);
23 $order->setBaseSubtotal($subTotal);
24 $order->setGrandTotal($totalAmount);
25 $order->setBaseGrandTotal($totalAmount);
26 $order->setTaxAmount($taxAmount);
27 
29 $orderRepository = $objectManager->get(OrderRepository::class);
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60
$order
Definition: order.php:55