Shopify / Shopify/shopify-app-template-node

How to get the abandoned data

Open
#1,236 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1k
Forks
434
PR merge metrics
No merged PRs in 30d

Description

Issue summary

How to get abandoned cart data from api

I want abandoned cart data

Actual behavior

Steps to reproduce the problem

1.firstly I am getting shop=undefined error in the auth api
2. Then I append the shop in the auth api as you can see above
3. now I am getting 503 error in both api

<--additional question-->
when I created my app though npm command, I have choosen my store already then why it is saying shop undefined in auth api.


Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the route in index.js and the shopifyApp auth configuration, then reproduce the shop=undefined and 503 responses using the documented /api/abandoned-cart request. Check how the session is obtained before the AbandonedCheckout call and compare the browser useEffect request with the auth flow. Done means the auth request has a valid shop and the endpoint returns abandoned cart data rather than either reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, node.js, react
Domain
api, authentication, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.