Advertisement
vitaliy76

Fixed field validation on the latest Magento versions

Nov 16th, 2018
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.79 KB | None | 0 0
  1. diff --git a/etc/di.xml b/etc/di.xml
  2. index ab25c9d..44915d9 100644
  3. --- a/app/code/Swissup/AddressFieldManager/etc/di.xml
  4. +++ b/app/code/Swissup/AddressFieldManager/etc/di.xml
  5. @@ -6,6 +6,9 @@
  6.      <type name="Magento\Customer\Model\Address\AddressModelInterface">
  7.          <plugin name="AddressFieldManager" type="Swissup\AddressFieldManager\Plugin\Model\Address" sortOrder="1" />
  8.      </type>
  9. +    <type name="Magento\Quote\Api\Data\AddressInterface">
  10. +        <plugin name="AddressFieldManagerValidation" type="Swissup\AddressFieldManager\Plugin\Model\Address" sortOrder="1" />
  11. +    </type>
  12.      <type name="Magento\Customer\Api\AddressRepositoryInterface">
  13.          <plugin name="AddressFieldManager" type="Swissup\AddressFieldManager\Plugin\Model\AddressRepository" sortOrder="1" />
  14.      </type>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement