From 373d356d63d69a77e1b3f2b525e39892d7280590 Mon Sep 17 00:00:00 2001 From: Iurii Ivashchenko Date: Fri, 6 Jan 2017 16:33:18 +0200 Subject: [PATCH 1/9] MAGETWO-62807: Case information block on order details page in admin panel --- .../adminhtml/templates/order/view/tab/info.phtml | 4 +++- .../Magento_Signifyd/web/css/source/_module.less | 13 +++++++++++++ 2 files changed, 16 insertions(+), 1 deletion(-) create mode 100644 app/design/adminhtml/Magento/backend/Magento_Signifyd/web/css/source/_module.less diff --git a/app/code/Magento/Sales/view/adminhtml/templates/order/view/tab/info.phtml b/app/code/Magento/Sales/view/adminhtml/templates/order/view/tab/info.phtml index 10fdd078bc145..e90c76944f373 100644 --- a/app/code/Magento/Sales/view/adminhtml/templates/order/view/tab/info.phtml +++ b/app/code/Magento/Sales/view/adminhtml/templates/order/view/tab/info.phtml @@ -1,6 +1,6 @@ +getChildHtml('order_case_info') ?> + getGiftOptionsHtml() ?>
diff --git a/app/design/adminhtml/Magento/backend/Magento_Signifyd/web/css/source/_module.less b/app/design/adminhtml/Magento/backend/Magento_Signifyd/web/css/source/_module.less new file mode 100644 index 0000000000000..be7fd0f4e14ed --- /dev/null +++ b/app/design/adminhtml/Magento/backend/Magento_Signifyd/web/css/source/_module.less @@ -0,0 +1,13 @@ +// /** +// * Copyright © 2017 Magento. All rights reserved. +// * See COPYING.txt for license details. +// */ + +// +// Order Case Info +// --------------------------------------------- + +.order-case-table { + &:extend(.abs-order-tables all); + &:extend(.abs-order-tbody-border all); +} From 1fdae3aaf2bce83cef9954af0703716925700589 Mon Sep 17 00:00:00 2001 From: Volodymyr Kublytskyi Date: Tue, 10 Jan 2017 15:13:57 +0200 Subject: [PATCH 2/9] MAGETWO-63047: Add possibility to fetch raw HTTP request data from Magento app request --- app/etc/di.xml | 2 ++ .../App/PlainTextRequestInterface.php | 25 +++++++++++++++++++ .../Magento/Framework/App/Request/Http.php | 4 +-- .../Framework/App/RequestContentInterface.php | 18 +++++++++++++ 4 files changed, 47 insertions(+), 2 deletions(-) create mode 100644 lib/internal/Magento/Framework/App/PlainTextRequestInterface.php create mode 100644 lib/internal/Magento/Framework/App/RequestContentInterface.php diff --git a/app/etc/di.xml b/app/etc/di.xml index 1b347574f4b2a..a2cd59149eb31 100755 --- a/app/etc/di.xml +++ b/app/etc/di.xml @@ -18,6 +18,8 @@ + + diff --git a/lib/internal/Magento/Framework/App/PlainTextRequestInterface.php b/lib/internal/Magento/Framework/App/PlainTextRequestInterface.php new file mode 100644 index 0000000000000..e68a979a9003b --- /dev/null +++ b/lib/internal/Magento/Framework/App/PlainTextRequestInterface.php @@ -0,0 +1,25 @@ + Date: Wed, 11 Jan 2017 14:05:12 +0200 Subject: [PATCH 3/9] MAGETWO-62807: Case information block on order details page in admin panel - copyrights --- .../Sales/view/adminhtml/templates/order/view/tab/info.phtml | 2 +- .../backend/Magento_Signifyd/web/css/source/_module.less | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/code/Magento/Sales/view/adminhtml/templates/order/view/tab/info.phtml b/app/code/Magento/Sales/view/adminhtml/templates/order/view/tab/info.phtml index e90c76944f373..560d0a090ad67 100644 --- a/app/code/Magento/Sales/view/adminhtml/templates/order/view/tab/info.phtml +++ b/app/code/Magento/Sales/view/adminhtml/templates/order/view/tab/info.phtml @@ -1,6 +1,6 @@ Date: Fri, 13 Jan 2017 13:10:37 +0200 Subject: [PATCH 4/9] MAGETWO-62807: Case information block on order details page in admin panel - Extension point created for sales order view --- .../Block/Adminhtml/Order/View/AdditionalInfo.php | 14 ++++++++++++++ .../view/adminhtml/layout/sales_order_view.xml | 1 + .../templates/order/view/additional_info.phtml | 8 ++++++++ .../adminhtml/templates/order/view/tab/info.phtml | 2 +- 4 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 app/code/Magento/Sales/Block/Adminhtml/Order/View/AdditionalInfo.php create mode 100644 app/code/Magento/Sales/view/adminhtml/templates/order/view/additional_info.phtml diff --git a/app/code/Magento/Sales/Block/Adminhtml/Order/View/AdditionalInfo.php b/app/code/Magento/Sales/Block/Adminhtml/Order/View/AdditionalInfo.php new file mode 100644 index 0000000000000..bab52f6ed7601 --- /dev/null +++ b/app/code/Magento/Sales/Block/Adminhtml/Order/View/AdditionalInfo.php @@ -0,0 +1,14 @@ + + diff --git a/app/code/Magento/Sales/view/adminhtml/templates/order/view/additional_info.phtml b/app/code/Magento/Sales/view/adminhtml/templates/order/view/additional_info.phtml new file mode 100644 index 0000000000000..98d9ea2bcb726 --- /dev/null +++ b/app/code/Magento/Sales/view/adminhtml/templates/order/view/additional_info.phtml @@ -0,0 +1,8 @@ + + +getChildHtml()?> \ No newline at end of file diff --git a/app/code/Magento/Sales/view/adminhtml/templates/order/view/tab/info.phtml b/app/code/Magento/Sales/view/adminhtml/templates/order/view/tab/info.phtml index 560d0a090ad67..d086d98af6a63 100644 --- a/app/code/Magento/Sales/view/adminhtml/templates/order/view/tab/info.phtml +++ b/app/code/Magento/Sales/view/adminhtml/templates/order/view/tab/info.phtml @@ -40,7 +40,7 @@
-getChildHtml('order_case_info') ?> +getChildHtml('order_additional_info') ?> getGiftOptionsHtml() ?> From 1dc4a2252c537b3b665fc654a5bd4dacbd9ecbc4 Mon Sep 17 00:00:00 2001 From: Iurii Ivashchenko Date: Fri, 13 Jan 2017 18:28:55 +0200 Subject: [PATCH 5/9] MAGETWO-62807: Case information block on order details page in admin panel - refactoring --- .../adminhtml/templates/order/view/additional_info.phtml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/code/Magento/Sales/view/adminhtml/templates/order/view/additional_info.phtml b/app/code/Magento/Sales/view/adminhtml/templates/order/view/additional_info.phtml index 98d9ea2bcb726..9fb3cae05015f 100644 --- a/app/code/Magento/Sales/view/adminhtml/templates/order/view/additional_info.phtml +++ b/app/code/Magento/Sales/view/adminhtml/templates/order/view/additional_info.phtml @@ -3,6 +3,6 @@ * Copyright © 2013-2017 Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ -?> - -getChildHtml()?> \ No newline at end of file + +/** $block \Magento\Sales\Block\Adminhtml\Order\View\AdditionalInfo */ +echo $block->getChildHtml(); From 76863b25475bf2e676a5f3db6aee92a72c63f6fe Mon Sep 17 00:00:00 2001 From: Ievgen Sentiabov Date: Mon, 16 Jan 2017 18:23:10 +0200 Subject: [PATCH 6/9] MAGETWO-62831: Create Guarantee cancel service - Added PUT method to HTTP client - Covered guarantee canceling service by unit test --- lib/internal/Magento/Framework/HTTP/Adapter/Curl.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/internal/Magento/Framework/HTTP/Adapter/Curl.php b/lib/internal/Magento/Framework/HTTP/Adapter/Curl.php index e2ea747218f60..3a8a432920dc9 100644 --- a/lib/internal/Magento/Framework/HTTP/Adapter/Curl.php +++ b/lib/internal/Magento/Framework/HTTP/Adapter/Curl.php @@ -178,6 +178,9 @@ public function write($method, $url, $http_ver = '1.1', $headers = [], $body = ' curl_setopt($this->_getResource(), CURLOPT_POSTFIELDS, $body); } elseif ($method == \Zend_Http_Client::GET) { curl_setopt($this->_getResource(), CURLOPT_HTTPGET, true); + } elseif ($method == \Zend_Http_Client::PUT) { + curl_setopt($this->_getResource(), CURLOPT_CUSTOMREQUEST, \Zend_Http_Client::PUT); + curl_setopt($this->_getResource(), CURLOPT_POSTFIELDS, $body); } if (is_array($headers)) { From 0e67cac3fcf6219f3ab29a86797b1a19ced382d8 Mon Sep 17 00:00:00 2001 From: Iurii Ivashchenko Date: Thu, 19 Jan 2017 15:55:01 +0200 Subject: [PATCH 7/9] MAGETWO-63342: Copyright year update --- app/code/Magento/Sales/etc/di.xml | 2 +- .../Magento/Sales/view/adminhtml/layout/sales_order_view.xml | 2 +- lib/internal/Magento/Framework/App/Request/Http.php | 2 +- lib/internal/Magento/Framework/HTTP/Adapter/Curl.php | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/code/Magento/Sales/etc/di.xml b/app/code/Magento/Sales/etc/di.xml index eb392fc83d858..88e72e2b8a374 100644 --- a/app/code/Magento/Sales/etc/di.xml +++ b/app/code/Magento/Sales/etc/di.xml @@ -1,7 +1,7 @@ diff --git a/app/code/Magento/Sales/view/adminhtml/layout/sales_order_view.xml b/app/code/Magento/Sales/view/adminhtml/layout/sales_order_view.xml index 977e5109a12e6..4d1f4edb3bb93 100644 --- a/app/code/Magento/Sales/view/adminhtml/layout/sales_order_view.xml +++ b/app/code/Magento/Sales/view/adminhtml/layout/sales_order_view.xml @@ -1,7 +1,7 @@ diff --git a/lib/internal/Magento/Framework/App/Request/Http.php b/lib/internal/Magento/Framework/App/Request/Http.php index 399d7a0b03f47..0af540a187c6d 100644 --- a/lib/internal/Magento/Framework/App/Request/Http.php +++ b/lib/internal/Magento/Framework/App/Request/Http.php @@ -1,6 +1,6 @@ Date: Tue, 24 Jan 2017 12:43:20 +0200 Subject: [PATCH 8/9] MAGETWO-62807: Case information block on order details page in admin panel - Edited sales module adminhtml extension point --- .../Block/Adminhtml/Order/View/AdditionalInfo.php | 14 -------------- .../view/adminhtml/layout/sales_order_view.xml | 2 +- .../view/base/templates/container.phtml} | 1 - 3 files changed, 1 insertion(+), 16 deletions(-) delete mode 100644 app/code/Magento/Sales/Block/Adminhtml/Order/View/AdditionalInfo.php rename app/code/Magento/{Sales/view/adminhtml/templates/order/view/additional_info.phtml => Theme/view/base/templates/container.phtml} (67%) diff --git a/app/code/Magento/Sales/Block/Adminhtml/Order/View/AdditionalInfo.php b/app/code/Magento/Sales/Block/Adminhtml/Order/View/AdditionalInfo.php deleted file mode 100644 index bab52f6ed7601..0000000000000 --- a/app/code/Magento/Sales/Block/Adminhtml/Order/View/AdditionalInfo.php +++ /dev/null @@ -1,14 +0,0 @@ - - + diff --git a/app/code/Magento/Sales/view/adminhtml/templates/order/view/additional_info.phtml b/app/code/Magento/Theme/view/base/templates/container.phtml similarity index 67% rename from app/code/Magento/Sales/view/adminhtml/templates/order/view/additional_info.phtml rename to app/code/Magento/Theme/view/base/templates/container.phtml index 9fb3cae05015f..ca7910859c2ff 100644 --- a/app/code/Magento/Sales/view/adminhtml/templates/order/view/additional_info.phtml +++ b/app/code/Magento/Theme/view/base/templates/container.phtml @@ -4,5 +4,4 @@ * See COPYING.txt for license details. */ -/** $block \Magento\Sales\Block\Adminhtml\Order\View\AdditionalInfo */ echo $block->getChildHtml(); From b820263195639dc8f8ede6a573cdd91017b9b9f5 Mon Sep 17 00:00:00 2001 From: Dmytro Yushkin Date: Wed, 25 Jan 2017 17:56:32 +0200 Subject: [PATCH 9/9] MAGETWO-62807: Case information block on order details page in admin panel - Edited sales adminhtml extension point --- .../Sales/view/adminhtml/layout/sales_order_view.xml | 2 +- app/code/Magento/Theme/view/base/templates/container.phtml | 7 ------- 2 files changed, 1 insertion(+), 8 deletions(-) delete mode 100644 app/code/Magento/Theme/view/base/templates/container.phtml diff --git a/app/code/Magento/Sales/view/adminhtml/layout/sales_order_view.xml b/app/code/Magento/Sales/view/adminhtml/layout/sales_order_view.xml index 81ba3c0936cc9..feb536d18a75e 100644 --- a/app/code/Magento/Sales/view/adminhtml/layout/sales_order_view.xml +++ b/app/code/Magento/Sales/view/adminhtml/layout/sales_order_view.xml @@ -23,7 +23,7 @@ - + diff --git a/app/code/Magento/Theme/view/base/templates/container.phtml b/app/code/Magento/Theme/view/base/templates/container.phtml deleted file mode 100644 index ca7910859c2ff..0000000000000 --- a/app/code/Magento/Theme/view/base/templates/container.phtml +++ /dev/null @@ -1,7 +0,0 @@ -getChildHtml();