klaviyo / magento2-klaviyo

37 stars 51 forks source link

Keep existing extension attributes when extending shipping payload request #123

Closed lsimeonov closed 3 years ago

lsimeonov commented 3 years ago

Currently when using the extension with another module there is a potential problem. When another module is also making changes to extension_attributes payload it gets overridden by Klaviyo.

Magento made an effort on that part and gave possibility to extend the payload by utilising mixins. This is after version 2.2.2 I replaced the current shipping-save-processor override with new mixin approach on the mage/storage so it will work prior version 2.2.2.

And implemented the new way of extending the shipping payload on checkout.

I was unable to find good solution to feature switch based on magento version.

Any ideas and comments are quite welcome.