Hi,
I need to implement a shipping app that will provide a custom shipping rate based on multiple factors, including order subtotal. I am trying to use DeliveryCarrierService from graphql to implement it, but the issue is that it does not send enough order info to callback uri.
To be percise, there is no order subtotal field and therefore I can’t properly calculate a shipping. The only pricing field present is lineItem price, but it provides value before line item discount(e.g. from Cart Discount Function) therefore I can’t get real subtotal.
If somebody met this issue or has any other ideas on how to implement shipping that would be really helpful.
P.S.
Right now I have only a weired idea of creating a shipping option for each possible subtotal range (12-16usd, 16-20, e.t.c.) and then filtering them in discount customization function