Skip to content

Commit 350ba94

Browse files
Merge pull request #31415 to #31369
2 parents 2610382 + 7cf7657 commit 350ba94

File tree

1 file changed

+93
-20
lines changed

1 file changed

+93
-20
lines changed

app/code/Magento/Weee/README.md

Lines changed: 93 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,99 @@
1-
# Overview
2-
The Magento_Weee module enables the application of fees/fixed product taxes (FPT) on certain types of products, usually related to electronic devices and recycling.
3-
Fixed product taxes can be used to setup a WEEE tax that is a fixed amount, rather than a percentage of the product price. FPT can be configured to be displayed at various places in Magento. Rules, amounts, and display options can be configured in the backend. This module extends the existing functionality of Magento_Tax.
1+
# Magento_Weee module
42

5-
The Magento_Weee module includes the following:
3+
The **Magento_Weee** module enables the application of fees/fixed product taxes (FPT) on certain types of products, usually related to electronic devices and recycling.
64

7-
* ability to add different number of fixed product taxes to product. They are treated as a product attribute;
8-
* configuration of where WEEE appears (on category, product, sales, invoice, or credit memo pages) and whether FPT should be taxed;
9-
* a new line item in the totals section.
5+
Fixed product taxes can be used to setup a WEEE tax that is a fixed amount, rather than a percentage of the product price. FPT can be configured to be displayed at various places in Magento. Rules, amounts, and display options can be configured in the backend.
106

11-
# System requirements
12-
The Magento_Weee module does not have any specific system requirements.
7+
This module extends the existing functionality of **Magento_Tax**.
138

14-
## Install
15-
Magento_Weee module can be installed automatically (using native Magento install mechanism) without any additional actions
9+
The **Magento_Weee** module includes the following:
1610

17-
## Uninstall
18-
Magento installation with existing products with FPT:
19-
* Disable FPT on the backend
20-
* Remove all products with FPT
21-
* Remove all FPT attributes from attribute sets
22-
* Delete all FPT attributes
23-
* Remove module directory from the code base
11+
- Ability to add different number of fixed product taxes to product. They are treated as a product attribute.
12+
- Configuration of where WEEE appears (on category, product, sales, invoice, or credit memo pages) and whether FPT should be taxed.
13+
- A new line item in the totals section.
2414

25-
New Magento installation:
26-
* Can be removed without additional actions
15+
## Installation details
16+
17+
The **Magento_Weee** module can be installed automatically (using native Magento install mechanism) without any additional actions.
18+
19+
Before installing this module, note that the **Magento_Weee** is dependent on the following modules:
20+
21+
- Magento_Catalog
22+
- Magento_Checkout
23+
- Magento_Customer
24+
- Magento_Quote
25+
- Magento_Sales
26+
- Magento_Store
27+
- Magento_Tax
28+
29+
Please find here [how to enable or disable modules in Magento 2](https://devdocs.magento.com/guides/v2.4/install-gde/install/cli/install-cli-subcommands-enable.html).
30+
31+
## Structure
32+
33+
`Pricing/` - directory that contain tax adjustment.
34+
35+
For information about a typical file structure of a module in Magento 2, see [Module file structure](http://devdocs.magento.com/guides/v2.4/extension-dev-guide/build/module-file-structure.html#module-file-structure).
36+
37+
## Extensibility
38+
39+
Extension developers can interact with the **Magento_Weee** module. For more information about the Magento extension mechanism, see [Magento plug-ins](http://devdocs.magento.com/guides/v2.4/extension-dev-guide/plugins.html).
40+
41+
[The Magento dependency injection mechanism](http://devdocs.magento.com/guides/v2.4/extension-dev-guide/depend-inj.html) enables you to override the functionality of the **Magento_Weee** module.
42+
43+
### Layouts
44+
45+
This module introduces the following layouts and layout handles in the directories:
46+
47+
- `view/adminhtml/layout`:
48+
- `catalog_product_form`
49+
- `sales_creditmemo_item_price`
50+
- `sales_invoice_item_price`
51+
- `sales_order_create_item_price`
52+
- `sales_order_creditmemo_new`
53+
- `sales_order_creditmemo_updateqty`
54+
- `sales_order_creditmemo_view`
55+
- `sales_order_invoice_new`
56+
- `sales_order_invoice_updateqty`
57+
- `sales_order_invoice_view`
58+
- `sales_order_item_price`
59+
- `sales_order_view`
60+
61+
- `view/base/layout`:
62+
- `catalog_product_prices`
63+
64+
- `view/frantend/layout`:
65+
- `checkout_cart_index`
66+
- `checkout_index_index`
67+
- `checkout_item_price_renderers`
68+
- `default`
69+
- `sales_email_item_price`
70+
- `sales_email_order_creditmemo_items`
71+
- `sales_email_order_invoice_items`
72+
- `sales_email_order_items`
73+
- `sales_guest_creditmemo`
74+
- `sales_guest_invoice`
75+
- `sales_guest_print`
76+
- `sales_guest_printcreditmemo`
77+
- `sales_guest_printinvoice`
78+
- `sales_guest_view`
79+
- `sales_order_creditmemo`
80+
- `sales_order_invoice`
81+
- `sales_order_item_price`
82+
- `sales_order_print`
83+
- `sales_order_printcreditmemo`
84+
- `sales_order_printinvoice`
85+
- `sales_order_view`
86+
87+
For more information about a layout in Magento 2, see the [Layout documentation](http://devdocs.magento.com/guides/v2.4/frontend-dev-guide/layouts/layout-overview.html).
88+
89+
### UI components
90+
91+
You can extend a customer form and widgets using the configuration files located in the directories
92+
93+
- `view/adminhtml/ui_component`:
94+
- `product_attribute_add_form`
95+
- `view/frontend/ui_component`:
96+
- `widget_recently_compared`
97+
- `widget_recently_viewed`
98+
99+
For information about a UI component in Magento 2, see [Overview of UI components](http://devdocs.magento.com/guides/v2.4/ui_comp_guide/bk-ui_comps.html).

0 commit comments

Comments
 (0)