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

Cart Query #224

Closed
huniqcast opened this issue Jan 29, 2020 · 4 comments
Closed

Cart Query #224

huniqcast opened this issue Jan 29, 2020 · 4 comments
Labels
question Further information is requested

Comments

@huniqcast
Copy link

Hi thanks for your work.

I use your plugin to develop a react-native apps.

But I have a problem when I add a item to the cart and try to fetch the cart after. The cart is empty.

I have read the code a bit and set the woocommerce-session header with the one the addToCart mutation return, but I still have an empty cart.

Can you give me a hint I will explore it and post the result here for others, who may encounter this problem later.

@kidunot89
Copy link
Member

@huniqcast Make sure you implemented retrieved and stash the woocommerce session took to send with your GraphQL request. Here is an example with React/Apollo

@huniqcast
Copy link
Author

Hi @kidunot89 you are a rock thanks again. it's perfect.
When I will finish with the checkout process I will show you the result of this react native apps.

@kidunot89 kidunot89 added the question Further information is requested label Jan 29, 2020
@muhaimincs
Copy link

hi @huniqcast , would you mind share apollo config?

@akshaykatale99
Copy link

@huniqcast Make sure you implemented retrieved and stash the woocommerce session took to send with your GraphQL request. Here is an example with React/Apollo

hi @huniqcast , i am trying to do the same and getting same results as you described. can you please share your example that how you resolve this. thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

4 participants