Skip to content

Commit 46daeb7

Browse files
LYNX-190: Create Luma cancellation module (#148)
1 parent 566d475 commit 46daeb7

File tree

5 files changed

+50
-0
lines changed

5 files changed

+50
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Magento_OrderCancellationUi module
2+
3+
This module allows to cancel an order and specify the order cancellation reason in the storefront. Only orders in `RECEIVED`, `PENDING` or `PROCESSING` statuses can be cancelled. If the customer has paid for the order a refund is processed.
4+
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "magento/module-order-cancellation-ui",
3+
"description": "Magento module that implement order cancellation UI.",
4+
"require": {
5+
"php": "~8.1.0||~8.2.0",
6+
"magento/framework": "*"
7+
},
8+
"type": "magento2-module",
9+
"license": [
10+
"OSL-3.0",
11+
"AFL-3.0"
12+
],
13+
"autoload": {
14+
"files": [
15+
"registration.php"
16+
],
17+
"psr-4": {
18+
"Magento\\OrderCancellationUi\\": ""
19+
}
20+
}
21+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
9+
<module name="Magento_OrderCancellationUi"/>
10+
</config>
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
declare(strict_types=1);
7+
8+
use Magento\Framework\Component\ComponentRegistrar;
9+
10+
ComponentRegistrar::register(
11+
ComponentRegistrar::MODULE,
12+
'Magento_OrderCancellationUi',
13+
__DIR__
14+
);

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -252,6 +252,7 @@
252252
"magento/module-offline-shipping": "*",
253253
"magento/module-order-cancellation": "*",
254254
"magento/module-order-cancellation-graph-ql": "*",
255+
"magento/module-order-cancellation-ui": "*",
255256
"magento/module-page-cache": "*",
256257
"magento/module-payment": "*",
257258
"magento/module-payment-graph-ql": "*",

0 commit comments

Comments
 (0)