An open API service indexing awesome lists of open source software.

https://github.com/mscbuild/telegram-woocommerce-shop

๐Ÿ› Telegram store for WooCommerce. This project is a Telegram bot that connects to WooCommerce via REST API, displays products, allows you to collect a cart and place orders directly in Telegram.
https://github.com/mscbuild/telegram-woocommerce-shop

business java node payment rest-api shop telegram woocommerce wordpress

Last synced: 2 months ago
JSON representation

๐Ÿ› Telegram store for WooCommerce. This project is a Telegram bot that connects to WooCommerce via REST API, displays products, allows you to collect a cart and place orders directly in Telegram.

Awesome Lists containing this project

README

          

# ๐Ÿ› Telegram store for WooCommerce
![](https://komarev.com/ghpvc/?username=mscbuild)
[![Author](https://img.shields.io/badge/Author-Yuri%20Dev-blue.svg)](http://mscbuild.github.io/)
![](https://img.shields.io/github/license/mscbuild/telegram-woocommerce-shop)
![](https://img.shields.io/badge/PRs-Welcome-green)
![](https://img.shields.io/github/languages/code-size/mscbuild/telegram-woocommerce-shop)
![](https://img.shields.io/badge/code%20style-node.js-green)
![](https://img.shields.io/github/stars/mscbuild)
![](https://img.shields.io/badge/Topic-Github-lighred)
![](https://img.shields.io/website?url=https%3A%2F%2Fgithub.com%2Fmscbuild)

This project is a Telegram bot that connects to WooCommerce via REST API, displays products, allows you to collect a cart and place orders directly in Telegram.

## ๐Ÿš€ Possibilities

- Getting a list of products from WooCommerce
- Adding items to cart
- Step-by-step ordering (name, phone, email)
- Sending Orders in WooCommerce
- Telegram Admin Notice

---

## โš™๏ธ Installation

### 1. Clone the project

~~~bash
git clone https://github.com/yourusername/telegram-woocommerce-shop.git
cd telegram-woocommerce-shop
~~~

### 2.Install dependencies

~~~bash
npm install
~~~
### 3.Mood

Create a `.env` file based on `.env.example` and add the keys:
~~~bash
TELEGRAM_BOT_TOKEN=xxx
ADMIN_CHAT_ID=123456789
WOOCOMMERCE_URL=https://yourstore.com
WOOCOMMERCE_CONSUMER_KEY=ck_xxxxxxxxx
WOOCOMMERCE_CONSUMER_SECRET=cs_xxxxxxxxx
~~~

### 4. Launch the bot
~~~bash
npm start
~~~

๐Ÿ“ Structure
~~~bash

โ”œโ”€โ”€ bot.js # Basic logic of the bot
โ”œโ”€โ”€ config.js # Configuration (uses .env)
โ”œโ”€โ”€ .env.example # Configuration template
โ”œโ”€โ”€ .gitignore # Ignored files
โ”œโ”€โ”€ package.json
โ””โ”€โ”€ README.md
~~~

# ๐Ÿงฉ What the bot will be able to do?

- โœ… Get a list of products from WooCommerce
- โœ… Show products in Telegram with photos and buttons
- โœ… When clicking "Buy" - place an order via WooCommerce API
- โœ… Send you a notification in Telegram about a new order

# โ“ That the user can:

- ๐Ÿ“ฆ Add multiple items

- ๐Ÿงบ View cart

- โœ… Place one order with multiple items

## License

This project is licensed under the MIT License.