-
Notifications
You must be signed in to change notification settings - Fork 15
payloadExtender is not supported in default shipping-save-processor #181
Comments
@martin-cod - Thank you for reporting this issue. We are working on a solution that will retain backward-compatibility with Magento 2.1.x, since it is still officially supported by the extension. |
Update: These changes have been merged and will be included in the next release of the extension. @sjb9774 - These changes need to be merged into the 2.x branch as well. |
This issue has been addressed in release 1.5.0. |
@rsisco I have just reviewed the code in release 1.5.0. and found that the file vendor/classyllama/module-avatax/view/frontend/web/js/model/shipping-save-processor/default.js became a mixin but payloadExtender is still not supported. Could you please check it once again? |
@martin-cod - Can you provide a use case you are trying to support so that we may properly refactor and test the code if applicable? The original issue stated that the problem was that we were overriding the core default.js file and losing the payload extender, which is now not the case. |
@rsisco Please follow the Magento official change to be able to identify what is missed in your mixin's saveShippingInformation method magento/magento2@9fc22ff#diff-6f15bee8297c1e4e27c4d32164904b80 I used payloadExtender object in my custom code to extend shippingInformation save processor. Having AvaTax module installed I lost that possibility. Hope it helps. |
The only thing to do to get that supported in 2.2 is to add that payloadExtender line as @martin-cod said. Without it, it breaks a lot of functionality for us. |
@martin-cod I just merged some code into develop that @sjb9774 worked on to address this. Could you pull that down and see if it resolves the issue. If so I will prep it for a new official release. Thanks! |
@rsisco here is the use case - I want to use payload-extender to pass extension attributes data to the server. |
@prestonchoate I've checked out develop branch and it looks like it is working. I am able to use payload-extender on checkout. |
@Kriby Perfect. I'll add this to the list of changes for the next version release. |
@prestonchoate what is the target date for the next release? |
@Kriby Not entirely sure yet. Probably next week some time. |
Released in version 1.5.1. Please update the extension. |
The following file vendor/classyllama/module-avatax/view/frontend/web/js/model/shipping-save-processor/default.js overwrites the core file
vendor/magento/module-checkout/view/frontend/web/js/model/shipping-save-processor/default.js
Since Magento 2.2 default shipping-save-processor supports payloadExtender to allow third party extensions to modify the payload for the shipping address selection process
Preconditions
Steps to reproduce
Expected result
Actual result
The text was updated successfully, but these errors were encountered: