Open ShoMasegi opened 1 month ago
@markmur Similar to this issue https://github.com/Shopify/checkout-sheet-kit-react-native/issues/77
@ShoMasegi can you share the contents of your Storefront.xcconfig
file?
@markmur
please check this.
In actually, the STOREFRONT_DOMAIN
and STOREFRONT_ACCESS_TOKEN
are filled with actual values.
STOREFRONT_DOMAIN = <mydomain.myshopify.com>
STOREFRONT_ACCESS_TOKEN = <my storefront access token>
ADDRESS_1 = 千代田区1-2-3
ADDRESS_2 = 建物
CITY = 千代田区
COUNTRY = JP
FIRST_NAME = Test
LAST_NAME = McTest
PROVINCE = JP-13
ZIP = 100-0001
EMAIL = test-checkout-sdk@shopify.com
Adding a PHONE
field will mostly likely fix this if the phone field is required for your store.
Prefilled address information is only presented when complete + valid.
You can find these settings under /settings/checkout
in the admin for your store.
I tried adding a phone number to the deliveryAddressPreference address and changing the settings, but the same issue occurred.
If you manually enter the same address in the address form, is it considered valid?
Yes.
I'm using the address returned as ShoppingAddress
in the PixelEvent checkout_address_info_submitted
.
I am also facing the issue for the web. although @markmur adding phone field some times work.
Hey @ShoMasegi,
Looks like we don't have the PHONE
field from Storefront.xcconfig
wired up in our sample app. I've opened #193 to implement it.
The buyer experience should look like this when the address is valid (including the phone field):
@markmur I tried showing the checkout sheet using the same code (branch markmur/wire-phone-field) and the same values, but the values still weren't pre-filled. Is it possible that the settings of the checkout screen is causing this issue?
@ShoMasegi can you send me your storefront name or URL so that I can check this?
@markmur Here is my storefront URL: kauche-dev.myshopify.com
@ShoMasegi are you sure you have shipping rates set up correctly?
This is more likely an issue with your storefront configuration than an issue with the sheet kit.
@markmur The delivery address is not pre-filled even for products with correct shipping rates settings.
I understand that this issue is not caused by the sheet-kit. I'd like to close this issue.
Finally, please tell me all conditions as much as possible under the delivery address of buyerIdentity
might not be pre-filled.
Hi @ShoMasegi Could you provide a cart ID or checkout URL for a time when you're able to reproduce it (for a product with correct shipping rates)? We should be able to check our logs to find out what happened
Can you also confirm if it's consistently happening, or something a bit more intermittent?
Hi @kiftio
Could you provide a cart ID or checkout URL for a time when you're able to reproduce it (for a product with correct shipping rates)?
Can you also confirm if it's consistently happening, or something a bit more intermittent?
It's consistently happening
Can you confirm you're creating the cart via the storefront API? We'd normally expect a /cart/cn
URL in that case
@kiftio
The cart is created with the storefront API (cartCreate API) in mobile-buy-sdk-ios v13.0.0.
I have also tried this in v11.3.0, which is used in the sample, but the checkoutURL of the cart is /cart/c
.
OK, thanks I'll talk with the carts team to find out more
OK, the carts team took a look through the logs and found an error related to some items in the cart being unable to ship from any location. They believe that this is the root cause of the issue.
They also mentioned that they're going to look into returning userErrors in this case, so there's more clarity on what has gone wrong.
Could you please advise on the next steps I should take? Should I wait for further information from regarding the return userErrors?
What area is the issue related to?
Checkout Sheet Kit
What version of Checkout Sheet Kit are you using?
3.0.1 (latest)
Reproducible sample code
MobileBuyIntegration Sample code
Steps to Reproduce
buyerIdentity
using the cartCreate API.checkoutUrl
.Expected Behavior
buyerIdentity
data in Cart should be pre-filled including address in checkoutActual Behavior
Do not pre-fill the buyerIdentity address (only pre-fill the email).
Screenshots/Videos/Log output
https://github.com/Shopify/checkout-sheet-kit-swift/assets/12663296/2c5233d8-6f8b-4d20-b90a-19936d151029
Storefront domain