Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Will this enable accessing the extra shipping attributes during shipping estimate? #10

Open
LiamKarlMitchell opened this issue Jan 31, 2019 · 1 comment

Comments

@LiamKarlMitchell
Copy link

I want to add two fields for lat/long populated by js code from an address lookup service.
Which would then be used to display the appropriate shipping options.

I'm using https://github.com/owebia/magento2-module-advanced-shipping-setting which seems to have a sandboxed PHP for the actual shipping method/estimate rules.

I've added my own fields following a blog I saw from experius, and I can see that the estimate code can see the extra attributes on the shipping address but all the extra values are null.

@LiamKarlMitchell
Copy link
Author

LiamKarlMitchell commented Feb 9, 2019

Does not appear to :(.

The estimate-shipping call is before Place Order is used on the Checkout or Cart.

Need to over-write js file for sending new-account shipping estimate object to include the extra arguments.
And then need to change something in the back end to also pass those through to the carrier/shipping method getRates.

I can probably pull it out of $_POST but that seems the wrong way to go about it maybe.

After adding the js mixins the estimate-shipping-methods does include my custom fields, maybe this is from something else however.

But the shipping-information post on next step does not contain the information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant