Does the Fulfullment Provider in v2 actually do anything? Cannot calculate shipping price. #9495
Unanswered
amaster507
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Cross Posted on Discord: https://discord.com/channels/876835651130097704/1293036383153164318 |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have added the structure to my store trying to add a custom fulfillment service:
src
modules
fulfillment-usps
services
usps-fulfillment.ts
index.ts
As 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-options
and providing thecart_id
param, I get the error: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
canCalculate
andcalculatePrice
, 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
AbstractFulfillmentProviderService
in the manual fulfillment service, there is not much implemented functionality.Beta Was this translation helpful? Give feedback.
All reactions