This is a simple web application to generate reports of Shopify orders based on a date range and tags. It can fetch orders from a single shop or multiple shops using an Excel file.
- Fetch orders from a single Shopify store.
- Fetch orders from multiple Shopify stores using an Excel file.
- Filter orders by date range and tags.
- Download the report as an Excel file.
- Node.js (which includes npm)
-
Clone the repository:
git clone <your-repository-url> cd <your-repository-name>
-
Install dependencies:
npm install
-
Build the application:
npm run build
-
Start the proxy server:
This server is necessary to handle requests to the Shopify API and avoid CORS issues.
node server.js
The server will start on
http://localhost:3000. -
Open the application:
Open the
index.htmlfile in your web browser. -
Fill in the details:
- Start Date & End Date: Select the date range for the order report.
- Tags: Enter comma-separated tags to filter the orders.
- Single Shop:
- Enter the Shop URL (e.g.,
https://your-store.myshopify.com). - Enter the Shopify Access Token.
- Click "Fetch Orders".
- Enter the Shop URL (e.g.,
- Multiple Shops:
- Create an Excel file with two columns:
shopUrlandaccessToken. - Upload the file.
- Click "Fetch Orders".
- Create an Excel file with two columns:
-
Download the report:
Once the orders are fetched, click the "Download Report" button to get the Excel file.
- Log in to your Shopify admin.
- Go to Apps.
- Click Develop apps for your store.
- Click Create an app.
- Give your app a name and click Create app.
- Go to the API credentials tab.
- Click Configure Admin API scopes.
- Select the
read_ordersscope. - Click Save.
- Click Install app.
- Click Reveal token once to get your access token.