Magento2, remove gift options from cart page

You have to use

/app/design/frontend/Mytheme/themename/Magento_GiftMessage/layout/checkout_cart_index.xml

and

/app/design/frontend/Mytheme/themename/Magento_GiftMessage/layout/checkout_cart_item_renderers.xml

use Magento_GiftMessage only once not twice and don't need view/frontend.


If you don't need this functionallity at all, another option would be to disable the module output:

  • Just go to Stores > Configuration > Advanced > Advanced
  • Search for Magento_GiftMessage
  • Disable it and clear cache

A much better approach is simply to disable this feature rather than edit code or disable the module output.

  1. On the Admin sidebar, tap Stores. Then under Settings, choose Configuration.
  2. In the panel on the left, under Sales, choose Sales.
  3. Expand the Gift Options section.
  4. If necessary, clear the Use system value checkbox. Then, do the following: a. If the setting is for a specific store view, choose the store view where the configuration applies. b. When prompted, tap OK to continue.
  5. Set the Gift Message options according to your preference: Allow Gift Messages on Order Level Allow Gift Messages for Order Items
  6. When complete, tap Save Config.

For more details see the Magento User Guide: http://docs.magento.com/m2/ce/user_guide/sales/checkout-gift-options.html