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.
- On the Admin sidebar, tap Stores. Then under Settings, choose Configuration.
- In the panel on the left, under Sales, choose Sales.
- Expand the Gift Options section.
- 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.
- Set the Gift Message options according to your preference: Allow Gift Messages on Order Level Allow Gift Messages for Order Items
- 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