-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
Order shipping address not visible in wordpress admin panel #527
Comments
@topheroes I think you forgot the mutation CheckoutMutation{
checkout(
input:{
clientMutationId: "1216",
isPaid: false,
shipping: {
address2:"дом колотушкина",
address1: "Улица Пушкина",
email:"user@email.com",
firstName:"Уася",
lastName:"Пупкин",
postcode:"244",
state:"st",
company:"dod",
phone:"12892121",
city:"hehe",
country:RU
},
shipToDifferentAddress: true,
paymentMethod: "cod"
}
) {
clientMutationId
...
}
} |
|
Hey, I'm experiencing this issue too. Is there a suggested workaround to make this visible until the 0.11.0 milestone has been met? Thank you, P.S. I really appreciate the work that goes into the plugin 🙏 |
Hey @topheroes I just noticed that I was experiencing this problem because a Shipping Zone was not set on my instance of WooCommerce 🤦. It might be worth checking your instance too, incase it is missing a shipping zone? Once I activated the shipping zone, I could see the shipping address appearing in the WooCommerce Admin Order screen. |
@topheroes Any changes on this? |
Hi guys, I think I found the issue, on line 54 of the class-checkout-mutation.php Seems that if either the ship_to_different_address or WC()->cart->needs_shipping_address() are false then the shipping fields are skipped, for some reason in my system WC()->cart->needs_shipping_address() is always false, perhaps because I have no shipping classes set... though that has never caused issues in the past when the site was not headless. Anyway there is filter that can be used to override the check so that it is always true. 'woocommerce_cart_needs_shipping' |
When I log in
Then add to card
Then checkout
The order appears in wordpress admin Woocommerce Orders page, but it doesn't have the shipping address.
Please advise.
The text was updated successfully, but these errors were encountered: