Free Step-by-Step Guide

Turn Your Instagram & WhatsApp Business Into Your Own E-Commerce Store

Use AI to create your store, accept UPI/COD orders, receive order details on WhatsApp, and take your website live — step by step.

No React. No complex backend. No traditional payment gateway required for this basic setup.

What You Will Set Up
  • A real product catalog
  • Cart & checkout flow
  • UPI QR + Cash on Delivery
  • Orders straight to WhatsApp
  • Your own live website URL
Start Here

Watch the Complete Tutorial First

I recommend watching the video once, then following the steps below while building your own store.

The Journey

From Instagram DMs to a Live Store

Eleven small steps. Nothing here needs a developer background — you copy a prompt, let AI build the starter project, then replace the demo content with your own.

01 Choose Code Editor
02 Create Project Folder
03 Copy AI Prompt
04 Let AI Build the Store
05 Add Your Products
06 Add WhatsApp + UPI Details
07 Test Checkout
08 Get Hosting
09 Connect Hostinger
10 Copy Deployment Prompt
11 Go Live
Step 1

Prepare Your Coding Workspace

You need one place where AI can write files for you. That is a code editor with an AI coding assistant built in. Pick either one below — both work exactly the same for this guide.

Option A

VS Code

The most common free code editor. Install it, then add the AI coding assistant you prefer from its extensions marketplace.

Option B

Google Antigravity

An AI-first coding environment. The assistant is already built in, so there is nothing extra to install before you start.

Then set up your project folder

  1. Create a new empty folder anywhere on your computer — for example my-ecommerce-store/.
  2. Open that folder inside VS Code or Antigravity.
  3. Inside it, create a Markdown file named AGENTS.md — this is where your AI instructions live.
  4. Paste the prompt from the next step into AGENTS.md, save it, and ask your AI tool to read it.

Why a file and not just the chat box? Keeping the instructions in AGENTS.md means the AI can re-read them at any point during the build, and you can tweak a line without retyping the whole prompt.

Step 2

Copy the E-Commerce Website Prompt

This is the full instruction set that tells the AI exactly what to build: the pages, the product JSON, the cart, the UPI and COD checkout, and the WhatsApp order message. Copy it as-is.

AI Prompt #1 — Build Your E-Commerce Store
Create a modern, premium, minimalist e-commerce website for technical gadgets using only HTML, CSS, vanilla JavaScript, and one JSON file for product data.

The website should still be beginner-friendly and easy to modify, but it should look like a real small e-commerce store rather than a basic demo.

MAIN GOAL:
Build a complete basic shopping flow:

Home → Products → Product Details → Cart → Checkout → UPI/COD → WhatsApp Order Confirmation

Do not use React, PHP, Node.js, databases, login systems, or any framework.

Use only:

- HTML
- CSS
- Vanilla JavaScript
- JSON
- localStorage for cart data

WEBSITE STRUCTURE:
Create separate files/pages:

index.html
products.html
product.html
cart.html
checkout.html
style.css
app.js
products.json
/images

Keep the JavaScript clean and modular.

HOME PAGE:
Create a modern premium homepage for a tech gadgets store.

Hero section:
Heading: “Smart Tech. Simple Shopping.”
Subheading: “Discover useful gadgets, accessories and everyday technology at great prices.”

Add:

- Shop Now button
- Browse Products button
- Clean modern gadget visual

Below the hero, show the Top 3 Categories:

1. Audio
2. Smart Accessories
3. Computer Accessories

Each category should have:

- Image or icon
- Category name
- Short description
- View Products button

Also add a small About Our Store section explaining that the store offers useful and affordable everyday technology products.

Add a small Featured Products section showing around 4 products.

PRODUCTS PAGE:
Create a dedicated products page.

Products should be loaded dynamically from products.json.

Add a very basic search bar:
“Search products...”

Add simple category filtering:

- All
- Audio
- Accessories
- Computer
- Wearables

Add basic sorting:

- Featured
- Price: Low to High
- Price: High to Low
- Name: A-Z

Keep search, filtering and sorting very simple with vanilla JavaScript.

PRODUCT JSON:
Store all products inside products.json.

Example structure:

[
{
"id": 1,
"name": "Wireless Bluetooth Headphones",
"category": "Audio",
"price": 1999,
"discountPrice": 1499,
"image": "images/headphones.jpg",
"shortDescription": "Comfortable wireless headphones with rich sound.",
"description": "Enjoy wireless music, long battery life and comfortable everyday listening.",
"featured": true
}
]

Use around 8 to 10 sample technical gadgets, for example:

- Wireless Headphones
- Bluetooth Speaker
- Smart Watch
- Wireless Mouse
- Mechanical Keyboard
- USB-C Hub
- Power Bank
- Laptop Stand
- TWS Earbuds
- Fast Charger

The most important part is that another person should be able to open products.json and easily change:

- Product name
- Category
- Original price
- Discount price
- Product image
- Short description
- Full description

without editing HTML.

PRODUCT CARDS:
Each product card should show:

- Product image
- Product name
- Category
- Original price
- Discount price
- Discount percentage if applicable
- Add to Cart button
- View Product button

Example:

Wireless Headphones

₹1,999
₹1,499
25% OFF

[ View Product ]
[ Add to Cart ]

Use a subtle strike-through on the original price.

DEDICATED PRODUCT DETAILS PAGE:
Clicking “View Product” should open:

product.html?id=1

Read the product ID from the URL and load that product from products.json.

Show:

- Large product image
- Product name
- Category
- Original price
- Discount price
- Discount percentage
- Product description
- Quantity selector
- Add to Cart button
- Buy Now button

Keep it simple.

Do not create complicated variants, reviews, inventory systems, or unnecessary features.

CART PAGE:
Create a dedicated cart.html page.

Show:

- Product image
- Product name
- Price
- Quantity
- Increase quantity
- Decrease quantity
- Remove product
- Product subtotal

At the bottom show:

- Subtotal
- Discount Savings
- Total

Add a “Proceed to Checkout” button.

Store the cart using localStorage so that navigating between pages does not remove the cart.

Also show a cart item count in the navbar.

CHECKOUT PAGE:
Create checkout.html.

Show the order summary on one side and customer details on the other.

Customer fields:

- Full Name
- Phone Number
- Delivery Address

Payment options:

- UPI
- Cash on Delivery

STORE CONFIG:
Store the seller/business details inside one easy-to-edit configuration section in JavaScript:

const STORE_CONFIG = {
storeName: "TechStore",
upiId: "yourupi@bank",
upiName: "Your Name",
whatsappNumber: "919999999999"
};

The user should only need to edit this config section to change their UPI and WhatsApp details.

UPI PAYMENT:
If UPI is selected:

- Automatically calculate the complete cart total.
- Generate a standard UPI payment link using upi://pay
- Include:
  - UPI ID
  - Seller name
  - Exact cart amount
  - INR currency
  - Payment note
- Generate a QR code automatically from the UPI payment link.
- Show “Scan & Pay”.
- On mobile, show a “Pay via UPI” button that opens the installed UPI app.

The QR amount must always match the final cart total.

UPI TRANSACTION ID / UTR:
After UPI payment, show an optional field:

“UPI Transaction ID / UTR”

Also clearly show:
“Your payment will be manually verified by the seller.”

Do not pretend that payment is automatically verified.

CASH ON DELIVERY:
If Cash on Delivery is selected:

Hide:

- QR code
- UPI payment button
- UTR field

Allow the customer to continue with the order normally.

WHATSAPP ORDER CONFIRMATION:
Add a “Confirm Order on WhatsApp” button.

When clicked, open WhatsApp with a pre-filled message containing:

- Store name
- Customer name
- Phone number
- Delivery address
- Ordered products
- Quantity of each product
- Product subtotal
- Final total
- Payment method
- UTR number, if available

Example:

New Order - TechStore

Customer:
Vinod Thapa

Phone:
9876543210

Address:
Pune, Maharashtra

Order:

1. Wireless Headphones
   Qty: 1
   ₹1,499
2. USB-C Hub
   Qty: 2
   ₹1,998

Total:
₹3,497

Payment:
UPI

UTR:
123456789012

For COD:
Payment: Cash on Delivery

Use the standard WhatsApp link:
https://wa.me/

No WhatsApp API should be required.

NAVIGATION:
Create a clean responsive navbar:

Logo / Store Name

Home
Products
Cart

On the right show:
Cart (2)

Make the navbar responsive on mobile.

DESIGN STYLE:
The complete website should look:

- Premium
- Minimal
- Modern
- Clean
- Professional
- Beginner-friendly

Use:

- Plenty of white space
- Soft shadows
- Rounded cards
- Large product images
- Clean typography
- Subtle hover effects
- Neutral colors with one premium accent color
- Smooth transitions
- Clear CTA buttons

Avoid:

- Heavy animations
- Too many gradients
- Too many colors
- Large libraries
- Complex layouts
- Unnecessary UI clutter

The website should feel similar to a modern electronics/startup store.

RESPONSIVE DESIGN:
Make the website fully responsive for:

- Desktop
- Tablet
- Mobile

On mobile:

- Product cards should stack properly
- Cart should remain easy to use
- Checkout should become a single-column layout
- Buttons should remain large enough to tap
- Product images should scale correctly
- Navbar should work properly

BEGINNER-FRIENDLY CODE:
Add useful comments in JavaScript such as:

// Load products from JSON

// Search products

// Filter products by category

// Sort products

// Add product to cart

// Save cart to localStorage

// Update cart quantity

// Calculate total price

// Generate UPI payment link

// Generate QR code

// Generate WhatsApp message

Do not over-engineer the JavaScript.

Prefer simple functions and easy-to-understand logic.

IMPORTANT:
Because products.json is loaded with JavaScript fetch(), make sure the project is intended to be run through a local server or hosting, not directly with file:// if the browser blocks JSON fetching.

Use relative paths properly so that the same project works when uploaded to normal shared hosting.

TEST EVERYTHING:
After creating the website, run and test the complete flow:

Home
→ Products
→ Search
→ Filter
→ Sort
→ Product Details
→ Add to Cart
→ Cart
→ Change Quantity
→ Checkout
→ UPI QR / COD
→ WhatsApp Order Confirmation

Check:

- No broken JavaScript
- Products load correctly from products.json
- Search works
- Category filtering works
- Sorting works
- Product URL ID works
- Add to Cart works
- Cart persists using localStorage
- Cart count updates correctly
- Quantity updates correctly
- Remove product works
- Discount price calculations are correct
- Discount savings are correct
- Final total is correct
- UPI amount matches cart total
- QR generation works
- Mobile UPI link works
- COD correctly hides UPI fields
- WhatsApp message contains correct details
- Responsive design works properly on mobile
- No unnecessary console errors

Fix any issues you find.

FINAL REQUIREMENT:
Keep this a simple educational e-commerce project, but visually make it look like a polished real-world tech gadget store.

The user should mainly need to edit only two places later:

1. products.json
   For:

- Product names
- Prices
- Discount prices
- Images
- Categories
- Descriptions

2. STORE_CONFIG
   For:

- Store name
- UPI ID
- UPI name
- WhatsApp number

The final working flow must remain:

Home → Products → Product Details → Cart → Checkout → UPI/COD → WhatsApp Order Confirmation

---

IMPORTANT — DO NOT IMPLEMENT YET

First, read this entire AGENTS.md file carefully and inspect the existing project/files.

Do NOT create, edit, delete, or modify any file yet.

Your first task is only to understand:

- what needs to be built
- the required pages and features
- the complete user flow
- the existing project structure
- what files will need to be created or changed

If you fully understand everything, reply only with:

YES — I understand the complete requirement.

Then give me a very short implementation plan in 5–8 points.

After that, STOP and wait for my confirmation.

Do not start implementation until I explicitly say:

IMPLEMENT
Scroll inside the box to read the full prompt Paste into AGENTS.md

How to use it

  1. Copy the prompt above.
  2. Paste it into your AI coding tool (or into AGENTS.md and point the AI at the file).
  3. Ask the AI to first read and understand the requirement.
  4. Let it generate the project.
  5. Run the website locally.
  6. Test the complete shopping flow.

The prompt deliberately ends by asking the AI to confirm it understands and to wait for you to type IMPLEMENT. That pause is intentional — read its plan before any files get created.

Common Question

If Your AI Asks Which QR Code Method to Use

While building, the coding AI may stop and ask something like: “Should I use an external QR API or a small local QR JavaScript library?” Send it this reply:

Your reply
Use a small local qrcode.min.js file.
Do not use an external QR API or CDN.
Generate the QR locally from the UPI payment link and exact cart total.
Keep it simple and beginner friendly.

Why?

  • No dependency on an external QR API
  • Works on normal hosting
  • More reliable
  • Still simple JavaScript
  • No backend required
Step 3

Replace Demo Products With Your Own Products

The AI ships the store with sample gadgets so you can see it working. Your real job starts here: swapping that demo catalog for what you actually sell. Everything lives in one products.json file — you never touch the HTML.

products.json — one product
{
  "id": 1,
  "name": "Wireless Headphones",
  "category": "Audio",
  "price": 1999,
  "discountPrice": 1499,
  "image": "images/headphones.jpg",
  "shortDescription": "Wireless headphones with rich sound."
}

What each line means

idA unique number for the product. Keep them different — 1, 2, 3 and so on.
nameThe product title customers see on the card and detail page.
categoryUsed by the category filter on the products page.
priceThe original price, shown with a strike-through.
discountPriceWhat the customer actually pays. The discount percentage is calculated from these two.
imagePath to your product photo, for example images/headphones.jpg.
shortDescriptionOne line shown on the product card.

You normally only need to change the product name, image, category, original price, discount price and description. Copy one product block, paste it as many times as you have products, and edit those fields.

Required

Add Your Own Business Details

Everything about your business sits in one small configuration block in the JavaScript. Until you edit it, orders go to a placeholder number and payments go nowhere.

STORE_CONFIG
const STORE_CONFIG = {
    storeName: "Your Store Name",
    upiId: "yourupi@bank",
    upiName: "Your Name",
    whatsappNumber: "919999999999"
};

You must replace all four

storeNameYour shop name. It appears in the navbar and at the top of every WhatsApp order.
upiIdYour real UPI ID, the one money should reach.
upiNameThe name shown to the customer while they pay.
whatsappNumberThe number that receives orders — country code and digits only.

WhatsApp number format. Use the country code followed by the digits, with nothing else. For India that looks like 919876543210 — no + sign, no spaces, no hyphens.

Before sharing your website publicly, test the payment flow using a small amount and make sure the UPI ID and WhatsApp number are correct. A typo here means a real customer pays the wrong account.

How the Payment Flow Works

Here is the whole journey, from a customer landing on your store to you confirming the money arrived. Nothing is hidden — every step happens in plain JavaScript in your own project.

Customer
Selects Product
Add to Cart
Checkout
Name + Phone + Address
UPI or COD
UPI QR Generated Automatically
Customer Pays
Adds UTR
Confirms Order on WhatsApp
Seller Verifies Payment

The UPI Transaction ID / UTR does not automatically verify the payment. It is simply a reference number the customer types in, and it travels along with the order message.

You, the seller, should verify the transaction manually in your UPI or banking app before dispatching anything.

If you need automatic verification, refunds or webhooks, that is a different setup — it requires a proper payment gateway and a backend.

Step 4

Test Your Store

Run through this on your own machine before anyone else sees the site. Tick each item as you confirm it — the list is yours to play with, nothing is submitted anywhere.

Test the UPI step on an actual phone, not just the desktop browser. The Pay via UPI button only opens a real payment app on mobile.

Step 5

Your Store Works Locally. Now Let's Put It Online.

This project is plain HTML, CSS and JavaScript, so it does not need a VPS or a server runtime. Normal compatible web or shared hosting is enough for a static project like this.

Get Your Hosting Ready

Hostinger

Shared hosting with a domain is all this store needs. Once your hosting and domain are active, the deployment prompt in Step 7 does the rest.

Coupon Code: THAPA7
Step 6

Install Hostinger Connector

The connector is what lets your AI coding tool talk to your Hostinger account directly, so it can upload the finished site for you instead of you dragging files around in a file manager.

  1. Open your coding environment.
  2. Install or connect the Hostinger Connector.
  3. Sign in and authorize your Hostinger account.
  4. Make sure your hosting plan and domain are ready and active.
  5. Return to your AI coding environment.

Once the connector is successfully connected, your AI coding tool can help you deploy the current website to your Hostinger hosting.

Exact button names and screens change from time to time, and they differ between editors. Follow whatever the connector's own setup screen tells you — the five steps above are the parts that stay the same. The video walks through the current screens.

Step 7

Copy the Deployment Prompt

This second prompt does one job: take the site exactly as it is and put it on your domain without redesigning anything.

AI Prompt #2 — Deploy Your Website Live
Our current e-commerce website is complete and ready to deploy.

The Hostinger Connect/connector is already configured and connected in this project.

Now deploy the **current website exactly as it is** to my Hostinger domain:

**https://ecom.kodyfier.com**

Before deploying:

- Verify that the project builds/runs correctly.
- Do not redesign or modify the website.
- Do not change existing functionality unless something is strictly required for deployment.
- Use the already connected Hostinger tools/connector.
- Make sure the deployment targets **ecom.kodyfier.com** and does not affect any other domain or website in my Hostinger account.

Then deploy the website and verify that **https://ecom.kodyfier.com** is live and loading correctly.
Run this only after the connector is connected Replace the domain with your own

Paste this prompt into your AI coding environment after Hostinger Connector is successfully connected. The prompt names a domain as an example — swap in the domain you actually own before sending it.

FAQ

Questions People Ask Before Starting

Basic technical understanding helps, but the guide is designed so AI generates most of the starter code. You should still review and test what the AI creates.

Not for this basic manual UPI/COD workflow. Payments are manually verified. A payment gateway is recommended when automatic payment confirmation, refunds or webhooks are required.

No. The UTR is sent along with the order, and the seller verifies it manually in their UPI or banking app.

Not necessarily for this basic static HTML/CSS/JavaScript project. Normal compatible shared or web hosting can be enough.

No. This setup uses the normal WhatsApp click-to-chat link with a pre-filled order message.

Yes. Products are editable through the JSON product file, without touching any HTML.

Yes. Change the price and discountPrice values inside the product JSON data.

It removes the dependency on an external QR-generation API and keeps the simple UPI QR generation inside your own project.

This guide is primarily a simple starter and educational setup. Larger stores should consider a proper backend, payment gateway, inventory system, security controls, database and order management system.
Finish Line

That's It — Your Store Can Now Be Online 🚀

You started with manual Instagram and WhatsApp orders. Now you have:

  • Your own website
  • Product catalog
  • Shopping cart
  • UPI/COD checkout
  • WhatsApp order confirmation
  • Your own live URL

AI isn't running your business for you. It's helping reduce repetitive work so you can spend more time on products, marketing, customers and creativity.

Want to understand the code, not just run it?
Learn Full Stack + AI, Live

Build real projects with HTML, CSS, JavaScript, React, Node and modern AI workflows in live classes with doubt-clearing support.

Explore the Bootcamp