-
Notifications
You must be signed in to change notification settings - Fork 170
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optionally allow a shippingMethod to be associated with
a ShippingMethodOption Resolves #3271 Craft Commerce's ShippingMethodOption erases the information of any custom ShippingMethod's that were used to create them. While not ideal, this change sets a new field, shippingMethod on the ShippingMethodOption class and also proxies the call to getShippingRules to use the attached ShippingMethod if it is present. Of course, other functions such as getName, getType, etc will not be overridden and would need to be accessed like $option->shippingMethod->getType().
- Loading branch information
1 parent
64f9d46
commit e9d5cb2
Showing
2 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters