Skip to content

Commit c77964e

Browse files
committed
ACP2E-3618: [CLOUD] Re-order button functionality
1 parent 25e38e1 commit c77964e

File tree

4 files changed

+5
-6
lines changed

4 files changed

+5
-6
lines changed

app/code/Magento/CatalogInventory/Model/StockStateProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ public function checkQuoteItemQty(StockItemInterface $stockItem, $qty, $summaryQ
159159
if (!$stockItem->getIsInStock()) {
160160
$result->setHasError(true)
161161
->setErrorCode('out_stock')
162-
->setMessage(__('This product is out of stock.'))
162+
->setMessage(__('The product with SKU %sku is out of stock.', ['sku' => $item->getSku()]))
163163
->setQuoteMessage(__('Some of the products are out of stock.'))
164164
->setQuoteMessageIndex('stock');
165165
$result->setItemUseOldQty(true);

app/code/Magento/Quote/Model/Quote.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright 2011 Adobe
4-
* All Rights Reserved.
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
55
*/
66
namespace Magento\Quote\Model;
77

app/code/Magento/Sales/Controller/Adminhtml/Order/Create/Reorder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
3-
* Copyright 2011 Adobe
4-
* All Rights Reserved.
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
55
*/
66
declare(strict_types=1);
77

app/code/Magento/Sales/Model/AdminOrder/Create.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -743,7 +743,6 @@ public function initFromOrderItem(\Magento\Sales\Model\Order\Item $orderItem, $q
743743
return $this;
744744
}
745745

746-
747746
if ($additionalOptions = $orderItem->getProductOptionByCode('additional_options')) {
748747
$item->addOption(
749748
new \Magento\Framework\DataObject(

0 commit comments

Comments
 (0)