app/code/Magento/GiftMessage/README.md
This module allows adding a message to an order or to each ordered item either on the frontend or on the backend.
Before installing this module, note that this module is dependent on the following modules:
Magento_CatalogMagento_SalesMagento_QuoteBefore disabling or uninstalling this module, note that the Magento_GiftMessageGraphQl module depends on this module.
The Magento_GiftMessage module creates the gift_message table in the database.
This module modifies the following tables in the database:
quote - adds column gift_message_idquote_address - adds column gift_message_idquote_item - adds column gift_message_idquote_address_item - adds column gift_message_idsales_order - adds column gift_message_idsales_order_item - adds columns gift_message_id and gift_message_availableFor information about a module installation, see Enable or disable modules.
Extension developers can interact with the Magento_GiftMessage module. For more information about the extension mechanism, see Plugins.
The dependency injection mechanism enables you to override the functionality of the Magento_GiftMessage module.
A lot of functionality in the module is on JavaScript, use mixins to extend it.
The module dispatches the following events:
gift_options_prepare_items event in the \Magento\GiftMessage\Block\Message\Inline::getItems method. Parameters:
items is a entityItems (array type)gift_options_prepare event in the \Magento\GiftMessage\Block\Message\Inline::isMessagesOrderAvailable method. Parameters:
entity is an entity objectFor information about an event, see Events and observers.
This module introduces the following layouts in the view/frontend/layout and view/adminhtml/layout directories:
view/adminhtml/layout:
sales_order_create_indexsales_order_create_load_block_datasales_order_create_load_block_itemssales_order_viewview/frontend/layout:
checkout_cart_indexcheckout_cart_item_renderersFor more information about a layout, see the Layout documentation.
Magento\GiftMessage\Api\Data\MessageInterface
\Magento\GiftMessage\Api\CartRepositoryInterface
\Magento\GiftMessage\Api\GuestCartRepositoryInterface
\Magento\GiftMessage\Api\GuestItemRepositoryInterface
\Magento\GiftMessage\Api\ItemRepositoryInterface
\Magento\GiftMessage\Api\OrderItemRepositoryInterface
\Magento\GiftMessage\Api\OrderItemRepositoryInterface
For information about a public API, see Public interfaces & APIs.