Does the Fulfullment Provider in v2 actually do anything? Cannot calculate shipping price. #9495
Unanswered
amaster507
asked this question in
Q&A
Replies: 2 comments 1 reply
|
Cross Posted on Discord: https://discord.com/channels/876835651130097704/1293036383153164318 |
1 reply
|
For reference since it doesn't auto link, here is the issue for this: #9598 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I have added the structure to my store trying to add a custom fulfillment service:
srcmodulesfulfillment-uspsservicesusps-fulfillment.tsindex.tsAs you see I am really just beginning development on this, and am trying to get the very basics of calling the function to calculate shipping costs and see what data the functions provide.
In my server console logs the only message I ever see from this file is the
Loading USPS fulfillment service. I am expecting to see at least theCreating USPS fulfillment service, but never do.Furthermore, when I am making a request to a
<domain>/store/shipping-optionsand providing thecart_idparam, I get the error:{ "type": "invalid_data", "message": "Shipping options with IDs so_01J9MW1FZ40Y24TFBC4FW60AAT do not have a price" }And while it is true that the shipping option it is referring to does not have any prices set, it is set to a calculated option, and I expect it should trigger the function calls to
canCalculateandcalculatePrice, but that never happens.If I set a price to get around the error, the price is still never "calculated".
Looking at the v2 implementation of
AbstractFulfillmentProviderServicein the manual fulfillment service, there is not much implemented functionality.All reactions