Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

useApplyShippingAddressChange() to not update billing address #2409

Open
patryk-smc opened this issue Oct 9, 2024 · 4 comments
Open

useApplyShippingAddressChange() to not update billing address #2409

patryk-smc opened this issue Oct 9, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@patryk-smc
Copy link

patryk-smc commented Oct 9, 2024

Please list the related package(s)

    "@shopify/ui-extensions": "2024.10.0",
    "@shopify/ui-extensions-react": "2024.10.0",

If this related to specific APIs or components, please list them here

useApplyShippingAddressChange()

Is your feature request related to a problem? Please describe.

We need to update shipping address only and have buyer to explicitly enter their billing address, however after updating the shipping address, the "Use shipping address as billing address" option remains checked.

Describe the changes you are looking for

When updating shipping address, we would need an argument that would

At least: Uncheck "Use shipping address as billing address" checkbox

Or event better: Disable "Use shipping address as billing address" - checkbox - this should force buyer to enter their billing address

Describe alternatives you’ve considered

Updating address after order is created, but this is too late. Billing address is wrong in email notifications and order created webhooks.

Additional context

We are public app and this was requested by many merchants

@patryk-smc patryk-smc added the enhancement New feature or request label Oct 9, 2024
@sjanczy2
Copy link
Contributor

sjanczy2 commented Oct 9, 2024

Hi @patryk-smc , is there a reason that your merchants cannot use the setting highlighted below?
Image

I assume that updating the shipping address via extension API does not set the billing address automatically in this case

@patryk-smc
Copy link
Author

Hi Steven, thanks for lighting fast reply! We need to perform address update only for 10-35% of the orders so it doesn't make much sense to make experience worse for majority of the users.

@sjanczy2
Copy link
Contributor

sjanczy2 commented Oct 9, 2024

Do you mind clarifying your use case a little bit? I can make some guesses but it would help to have the full picture

@patryk-smc
Copy link
Author

At Atlas Pickup Points, we provide pickup point selection during checkout. Some merchants require the shipping address on the order to be set to the pickup point's address for fulfillment purposes, while the billing address must reflect the actual billing address for tax compliance. Currently, we handle this by updating the shipping address after the order is created. However, not all downstream systems can accommodate this approach. Some systems are so basic that they rely solely on the order created webhook (which initially contains the incorrect address) and are unable to detect the update we make after the order is placed. Then you have this issue with order confirmation email showing invalid address, but this can be resolved with small code change - yet it's not ideal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants