forked from magento/magento2
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request magento#3549 from magento-tsg/2.2-develop-pr64
[TSG] Backporting for 2.2 (pr64) (2.2.8)
- Loading branch information
Showing
54 changed files
with
1,244 additions
and
107 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
app/code/Magento/Authorizenet/Block/Adminhtml/Order/View/Info/PaymentDetails.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
declare(strict_types=1); | ||
|
||
namespace Magento\Authorizenet\Block\Adminhtml\Order\View\Info; | ||
|
||
use Magento\Framework\Phrase; | ||
use Magento\Payment\Block\ConfigurableInfo; | ||
|
||
/** | ||
* Payment information block for Authorize.net payment method. | ||
*/ | ||
class PaymentDetails extends ConfigurableInfo | ||
{ | ||
/** | ||
* Returns localized label for payment info block. | ||
* | ||
* @param string $field | ||
* @return string | Phrase | ||
*/ | ||
protected function getLabel($field) | ||
{ | ||
return __($field); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
app/code/Magento/CatalogInventory/Test/Mftf/Data/ProductStockOptionsData.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<entities xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | ||
xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataProfileSchema.xsd"> | ||
<!-- Change Maximum Qty Allowed in Shopping Cart config --> | ||
<entity name="ProductStockOptions" type="catalog_inventory_product_stock_options"> | ||
<requiredEntity type="max_qty_to_cart">MaxQtyAllowInCartChange</requiredEntity> | ||
</entity> | ||
<entity name="MaxQtyAllowInCartChange" type="max_qty_to_cart"> | ||
<data key="value">0</data> | ||
</entity> | ||
<!-- Maximum Qty Allowed in Shopping Cart to default config --> | ||
<entity name="DefaultProductStockOptions" type="catalog_inventory_product_stock_options"> | ||
<requiredEntity type="max_qty_to_cart">MaxQtyAllowInCartDefault</requiredEntity> | ||
</entity> | ||
<entity name="MaxQtyAllowInCartDefault" type="max_qty_to_cart"> | ||
<data key="value">10000</data> | ||
</entity> | ||
</entities> |
21 changes: 21 additions & 0 deletions
21
app/code/Magento/CatalogInventory/Test/Mftf/Metadata/product_stock_options-meta.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- | ||
/** | ||
* Copyright © Magento, Inc. All rights reserved. | ||
* See COPYING.txt for license details. | ||
*/ | ||
--> | ||
|
||
<operations xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:mftf:DataGenerator/etc/dataOperation.xsd"> | ||
<operation name="CatalogInventoryProductStockSetup" dataType="catalog_inventory_product_stock_options" type="create" auth="adminFormKey" url="/admin/system_config/save/section/cataloginventory/" successRegex="/messages-message-success/" method="POST"> | ||
<object key="groups" dataType="catalog_inventory_product_stock_options"> | ||
<object key="item_options" dataType="catalog_inventory_product_stock_options"> | ||
<object key="fields" dataType="catalog_inventory_product_stock_options"> | ||
<object key="max_sale_qty" dataType="max_qty_to_cart"> | ||
<field key="value">string</field> | ||
</object> | ||
</object> | ||
</object> | ||
</object> | ||
</operation> | ||
</operations> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.