Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
order_with_coupon.php
Go to the documentation of this file.
1 <?php
7 require __DIR__ . '/../../../Magento/Sales/_files/order.php';
8 
11 $order->loadByIncrementId('100000001')->setCouponCode('1234567890')->setCreatedAt('2014-10-25 10:10:10')->save();
defined('TESTS_BP')||define('TESTS_BP' __DIR__
Definition: _bootstrap.php:60