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

Add beforeRegisterShippingMethods event for modying the master list of shipping methods before handing off to Commerce. #68

Merged
merged 2 commits into from
Jun 29, 2021

Conversation

michaelrog
Copy link
Contributor

Per #67...

The modifyShippingMethods event currently implemented in each Provider only allows modification of the individual provider's potential methods, before the methods are hydrated with price info from the Rates.

We need a way to modify the final collection of shipping methods from Postie, before they get registered with Commerce, but after they have prices assigned.

This way, we can make modifications that are conditional upon comparisons between all the available shipping rates.

Pretty please... 🙏🏼

@engram-design engram-design merged commit 4fac333 into verbb:craft-3 Jun 29, 2021
@engram-design
Copy link
Member

Thanks!

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

Successfully merging this pull request may close these issues.

2 participants