di.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  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:ObjectManager/etc/config.xsd">
  9. <type name="Magento\GiftMessage\Model\Plugin\QuoteItem" shared="false" />
  10. <type name="Magento\Quote\Model\Quote\Item\ToOrderItem">
  11. <plugin name="gift_message_quote_item_conversion" type="Magento\GiftMessage\Model\Plugin\QuoteItem"/>
  12. </type>
  13. <type name="Magento\Multishipping\Block\Checkout\Shipping">
  14. <plugin name="getItemsBoxTextAfter" type="Magento\GiftMessage\Block\Message\Multishipping\Plugin\ItemsBox"/>
  15. </type>
  16. <type name="Magento\GiftMessage\Helper\Message">
  17. <arguments>
  18. <argument name="skipMessageCheck" xsi:type="array">
  19. <item name="checkout_page" xsi:type="string">onepage_checkout</item>
  20. <item name="multishipping_page" xsi:type="string">multishipping_address</item>
  21. </argument>
  22. </arguments>
  23. </type>
  24. <type name="Magento\GiftMessage\Model\Type\Plugin\Onepage" shared="false" />
  25. <type name="Magento\GiftMessage\Model\Type\Plugin\Multishipping" shared="false" />
  26. <type name="Magento\Checkout\Model\Type\Onepage">
  27. <plugin name="save_gift_message" type="Magento\GiftMessage\Model\Type\Plugin\Onepage"/>
  28. </type>
  29. <type name="Magento\Multishipping\Model\Checkout\Type\Multishipping">
  30. <plugin name="save_gift_messages" type="Magento\GiftMessage\Model\Type\Plugin\Multishipping"/>
  31. </type>
  32. <type name="Magento\GiftMessage\Model\CompositeConfigProvider">
  33. <arguments>
  34. <argument name="configProviders" xsi:type="array">
  35. <item name="gift_message_config_provider" xsi:type="object">Magento\GiftMessage\Model\GiftMessageConfigProvider</item>
  36. </argument>
  37. </arguments>
  38. </type>
  39. <type name="Magento\GiftMessage\Block\Cart\Item\Renderer\Actions\GiftOptions">
  40. <arguments>
  41. <argument name="layoutProcessors" xsi:type="array">
  42. <item name="itemIdProcessor" xsi:type="object">Magento\GiftMessage\Block\Cart\Item\Renderer\Actions\ItemIdProcessor</item>
  43. </argument>
  44. </arguments>
  45. </type>
  46. <type name="Magento\Quote\Model\Quote\Item\Processor">
  47. <plugin name="mergeQuoteItems" type="Magento\GiftMessage\Model\Plugin\MergeQuoteItems"/>
  48. </type>
  49. </config>