Closed (fixed)
Project:
Commerce USPS
Version:
8.x-1.x-dev
Component:
Code
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
29 Jan 2020 at 15:11 UTC
Updated:
20 Mar 2020 at 15:59 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
bojanz commentedHere is an initial patch.
Unfortunately it doesn't work as-is, because the ShippingRate object now expects to receive the shipping method entity ID ($this->parentEntity->id()), which is not available in the request services that USPS uses. I was unsure how to pass that along from the plugin, the existing architecture confuses me a bit, so I'm leaving that to the maintainer.
Comment #3
mglamanComment #4
mglamanHere's a working patch. \Drupal\commerce_usps\USPSRateRequestInterface::getRates now required the shipping method entity and that gets the ID passed down to the rate.
Comment #5
mglamanRC1 is released
Comment #6
rhovlandTested on latest commerce 2.x-dev and commerce_shipping 2.x-dev and it works as expected.
Comment #7
mglamanThanks for testing, @rhovland! Committed.