Allow PurchasingCompany's Location data (CompanyLocation object) to include address information #509
erikmalueg
started this conversation in
Feedback: Delivery Customization API
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
We are writing a Delivery Customization function for our B2B Shopify Plus store.
We have enabled the "Allow customers to ship to any address" checkout setting for our B2B companies.
We need to determine if the user entered in a new address at checkout, or if they chose the location's default shipping address so that we can enable/disable 'Drop Ship' fees (for example)
However, the data that is passed into the Delivery Customization has only the 'deliveryAddress'.
I've found no way to determine if that is entered during checkout or chosen from the company location,
or how to compare it to data that exists on the B2B company.
The company location object (https://shopify.dev/docs/api/functions/reference/delivery-customization/graphql/common-objects/compa... ) doesn't actually have address data to compare to, and I don't see any indicator in the function input that could be used to determine a manually entered address.
Beta Was this translation helpful? Give feedback.
All reactions