How to Build an E-Commerce Website in India (Step by Step)
Founder & Lead Developer, Codingclave · 200+ projects since 2017
Why Build an E-Commerce Website in 2026
India's e-commerce market crossed $80 billion in 2024 and is growing at over 25% year-over-year. What has changed is not just the market size but who is buying online. Tier 2 and Tier 3 cities now account for over 60% of new online shoppers. UPI has made payments frictionless. And consumers increasingly search for niche products that Amazon and Flipkart do not specialize in.
This creates a massive opportunity for businesses that build their own e-commerce presence rather than relying solely on marketplace listings. Your own website means higher margins (no marketplace commission), direct customer relationships, brand building, and full control over the shopping experience.
Whether you are a manufacturer selling directly to consumers, a retailer expanding online, or a new D2C brand, this guide walks you through building an e-commerce website in India from scratch.
Step 1: Define Your E-Commerce Model
Before writing a single line of code or choosing a platform, clarify your business model:
Business-to-Consumer (B2C)
You sell products directly to end consumers. This is the most common e-commerce model, think online fashion stores, electronics, groceries, and specialty products.
Business-to-Business (B2B)
You sell to other businesses. B2B e-commerce requires features like bulk pricing, purchase orders, credit terms, and quotation workflows.
Direct-to-Consumer (D2C)
You are the manufacturer or brand owner selling directly without intermediaries. D2C is growing rapidly in India across categories like personal care, food, and fashion.
Marketplace
You provide a platform where multiple sellers list products and you take a commission. This is the most complex model, requiring vendor management, commission tracking, and dispute resolution.
Your model determines everything from platform choice to payment integration to compliance requirements.
Step 2: Choose Your Technology Platform
Option 1: Shopify (INR 2,000 to 15,000/month)
Best for: Small to mid-size stores launching quickly.
Pros:
- Hosted solution: no server management
- Beautiful themes and drag-and-drop editor
- Built-in payment processing (Shopify Payments works in India)
- App ecosystem for adding features
- Excellent mobile experience out of the box
Cons:
- Transaction fees on non-Shopify payments (2%)
- Limited customization without Liquid programming
- Recurring monthly cost increases with scale
- Data portability challenges if you want to migrate
Option 2: WooCommerce (WordPress) (INR 5,000 to 50,000 setup + hosting)
Best for: Businesses that want flexibility and content marketing integration.
Pros:
- Free core software (open source)
- Thousands of plugins for every feature
- Full control over code and data
- Strong for content marketing and blog-driven SEO
- One-time development cost, not recurring platform fees
Cons:
- Requires hosting management
- Security is your responsibility
- Performance requires optimization work
- Plugin conflicts can cause issues
Option 3: Custom-Built (INR 2,00,000 to 15,00,000+)
Best for: Businesses with unique requirements or high scale.
Pros:
- Complete flexibility for unique business logic
- Optimized performance for your specific use case
- No plugin dependencies or platform limitations
- Better scalability for high-traffic scenarios
- Full ownership and data control
Cons:
- Higher initial investment
- Longer development timeline
- Requires ongoing development team for maintenance
Platform Decision Framework
| Criteria | Shopify | WooCommerce | Custom |
|---|---|---|---|
| Budget | Low | Medium | High |
| Time to Launch | 1-2 weeks | 4-8 weeks | 3-6 months |
| Technical Skill Needed | Low | Medium | High (or hire team) |
| Customization | Limited | Good | Unlimited |
| Scaling Cost | Increases monthly | Server costs only | Server + dev costs |
| Best Product Count | Up to 5,000 | Up to 10,000 | Unlimited |
Step 3: Set Up Legal and Compliance
Indian e-commerce has specific legal requirements. Handle these before launch:
GST Registration
Mandatory if your annual turnover exceeds INR 40 lakhs (INR 20 lakhs for services). For e-commerce, some states require GST registration regardless of turnover if you sell through your own website.
Legal Entity
Register your business as a sole proprietorship, LLP, or private limited company. LLP is often the best balance of liability protection and simplicity for e-commerce.
Privacy Policy and Terms of Service
Required by Indian law. Your privacy policy must comply with the Information Technology Act and the upcoming Digital Personal Data Protection Act. Include details about data collection, usage, sharing, and user rights.
Consumer Protection (E-Commerce) Rules
Indian e-commerce rules require:
- Display of seller details (name, address, GSTIN)
- Clear return and refund policies
- Grievance officer contact details
- Country of origin for products
- No misleading advertisements
FSSAI License (for Food Products)
If you sell any food products, you need FSSAI registration or license depending on your turnover.
Step 4: Payment Gateway Integration
Payment processing is the backbone of your e-commerce site. In India, the major options are:
Razorpay
The most popular choice for Indian startups and SMEs. Supports UPI, cards, net banking, wallets, and EMI. Pricing: 2% per transaction.
Cashfree Payments
Strong alternative with instant settlements and good API documentation. Pricing: 1.90% per transaction.
PayU
Established player with extensive payment method support. Good for high-volume merchants. Pricing: starts at 2% per transaction.
CCAvenue
One of the oldest payment gateways in India. Wide payment method coverage including international cards. Pricing: starts at 2% per transaction plus setup fees. Our Razorpay vs Stripe vs PayU vs Cashfree comparison puts the four gateways' October 2026 MDR side by side.
Implementation tips:
- Always integrate at least two payment gateways for failover
- Enable UPI as the default payment method: it accounts for over 50% of online transactions in India
- Offer Cash on Delivery (COD): it still drives 40 to 50% of orders in many categories
- Implement proper webhook handling to avoid order status mismatches
- Test refund flows thoroughly before launch
Step 5: Shipping and Logistics
Shipping is where most Indian e-commerce businesses face operational challenges. Plan this carefully:
Shipping Aggregators
Instead of integrating with individual courier companies, use a shipping aggregator:
- Shiprocket: integrates with 17+ courier partners, automated tracking, COD support
- Delhivery: strong network for pan-India delivery, good for D2C brands
- Ecom Express: reliable for e-commerce-specific logistics
- Shadowfax: fast hyperlocal and intercity delivery
Shipping Strategy
- Offer free shipping above a threshold (INR 499 or INR 999 is common)
- Display estimated delivery dates on product pages
- Implement pincode serviceability check before checkout
- Set up automated tracking notifications via SMS and WhatsApp
- Plan for returns: reverse logistics is as important as forward logistics
COD Management
Cash on delivery introduces unique challenges:
- Higher return-to-origin (RTO) rates (15 to 30%)
- Cash handling and reconciliation
- Delayed revenue recognition
Mitigate COD RTO by verifying orders via automated IVR calls, offering discounts for prepaid payments, and blocking repeat RTO addresses.
Step 6: Product Catalog and Content
Your product catalog directly impacts conversions and SEO:
Product Photography
Invest in quality product images. You need at minimum:
- White background product shots
- Lifestyle images showing products in use
- Multiple angles
- Size reference images for applicable products
Professional product photography costs INR 100 to 500 per product depending on complexity.
Product Descriptions
Write unique descriptions for every product. Avoid copying manufacturer descriptions, duplicate content hurts SEO. Include:
- Key features and benefits
- Specifications (material, dimensions, weight)
- Use cases
- Care instructions
Category Structure
Plan your category hierarchy before adding products. A logical structure helps both users and search engines:
- Maximum 3 levels deep (Category > Subcategory > Product)
- Use clear, keyword-rich category names
- Add category descriptions for SEO
Step 7: SEO and Marketing Setup
An e-commerce website without traffic is just an expense. Set up these marketing foundations before launch:
Technical SEO
- Proper URL structure (
/category/product-name, not/product?id=123) - XML sitemap submitted to Google Search Console
- Schema markup for products (price, availability, reviews)
- Canonical tags to prevent duplicate content
- Fast page load times (under 3 seconds)
- Mobile-optimized experience
Content Marketing
- Start a blog covering topics your customers search for
- Create buying guides and comparison content
- Build FAQ pages for common product questions
Google Merchant Center
List your products on Google Shopping. Free product listings are available in India and drive significant traffic.
Social Commerce
- Set up Instagram Shopping if applicable
- Create WhatsApp Business catalog
- Use Facebook Shops for social selling
Step 8: Launch Checklist
Before going live, verify every item on this list:
- All products have images, descriptions, and correct pricing
- Payment gateway is working with live credentials (not test mode)
- Order confirmation emails are being sent
- Shipping rates and estimated delivery times are accurate
- Return and refund policy is published
- Privacy policy and terms of service are published
- GST details are displayed correctly
- Mobile checkout flow works smoothly
- Site loads in under 3 seconds on 4G connections
- Contact information (phone, email, address) is visible
- Google Analytics and Search Console are configured
- SSL certificate is active (HTTPS)
- 404 page is set up with navigation back to store
- Inventory tracking is enabled to prevent overselling
Common Mistakes to Avoid
- Launching without testing on mobile: over 75% of Indian e-commerce traffic comes from mobile devices
- Ignoring page speed: every additional second of load time reduces conversions by 7%
- Complicated checkout: aim for 3 steps or fewer from cart to order confirmation
- No return policy: Indian consumers are cautious online shoppers. A clear return policy builds trust
- Treating it as a one-time project: e-commerce websites need ongoing optimization, content updates, and feature additions
The Bottom Line
Building an e-commerce website in India is more accessible than ever, but success requires more than just putting products online. The businesses that thrive online are those that invest in user experience, logistics efficiency, and continuous optimization.
Start with the simplest technology that meets your current needs, focus on getting your first 100 orders, and iterate from there. Do not over-engineer the initial version.
At Codingclave, we help Indian businesses build e-commerce platforms across all scales, from Shopify stores to custom-built marketplaces. We handle the technology so you can focus on your products and customers. The platform decision itself is worked through in our Shopify vs WooCommerce vs custom comparison, with 3-year cost maths by order volume.
Ready to launch your e-commerce website? Get a free consultation, we will help you choose the right approach and provide a detailed roadmap.
Frequently asked questions
Costs vary based on platform choice. A Shopify store runs INR 2,000 to 15,000 per month with INR 30,000 to 1,00,000 for setup and theme customization. WooCommerce on WordPress costs INR 50,000 to 2,50,000 for setup including hosting, design, and core plugins, with around INR 15,000 per year ongoing. A fully custom-built e-commerce platform starts at INR 2,00,000 and goes up to INR 15,00,000 plus for marketplaces with vendor management, advanced search, or unique business logic. Add INR 25,000 to 1,00,000 for product photography, content writing, and initial marketing. Codingclave's e-commerce builds start at INR 75,000 for a launch-ready Shopify or WooCommerce store and scale up for headless and custom architectures.
Choose Shopify if you want to launch in 1-2 weeks, do not want to manage hosting or security, and are okay with INR 2,000 to 15,000 per month plus a 2 percent fee on non-Shopify payments. It is ideal for D2C brands, fashion, and stores under 5,000 SKUs. Choose WooCommerce if you want a one-time investment instead of recurring fees, plan heavy content marketing or blog-driven SEO, need deep customization, or already use WordPress. WooCommerce wins on margins long-term but requires hosting management. For most Indian SMEs doing under INR 50 lakh annual GMV, Shopify is faster to revenue. For content-led brands or stores expecting INR 1 crore plus GMV, WooCommerce or custom wins.
Yes, in most cases. Indian GST rules require mandatory registration if your annual turnover exceeds INR 40 lakhs for goods or INR 20 lakhs for services. However, for e-commerce specifically, many states require GST registration regardless of turnover the moment you sell through your own website or any platform. You will also need GSTIN to integrate with Razorpay, Shopify Payments, and shipping aggregators like Shiprocket. Beyond GST, you need a registered legal entity (LLP recommended for e-commerce), a privacy policy compliant with the IT Act and upcoming DPDP Act, return and refund policies, and a grievance officer as per Consumer Protection E-Commerce Rules 2020.
Timelines depend on platform and scope. A Shopify store with 50 to 200 products, 2 to 3 custom theme tweaks, payment gateway, and shipping setup takes 1 to 2 weeks. A WooCommerce store with similar scope takes 4 to 8 weeks because of theme customization, plugin configuration, and performance optimization. A custom-built platform on Next.js, Laravel, or MERN stack takes 3 to 6 months for an MVP and 6 to 12 months for a full marketplace with vendor onboarding, escrow, and dispute management. Add 2 to 4 weeks for product photography, content writing, and pre-launch marketing setup. Codingclave typically launches Shopify stores in 10 working days and WooCommerce stores in 4 to 5 weeks.
Razorpay is the default choice for most Indian e-commerce startups and SMEs because of clean APIs, instant onboarding, and strong UPI coverage. Pricing is 2 percent per transaction. Cashfree is the best alternative at 1.90 percent with faster settlement cycles and is preferred by D2C brands optimizing cash flow. PayU works well for high-volume merchants doing INR 1 crore plus monthly and offers negotiated rates. CCAvenue is best if you need international card acceptance. The best practice is to integrate at least two gateways for failover, make UPI the default option (it drives over 50 percent of Indian online transactions), and offer Cash on Delivery which still accounts for 40 to 50 percent of orders in tier 2 and tier 3 cities.
Hire a freelancer if your budget is under INR 50,000, you only need a basic Shopify or WooCommerce setup, and you can manage GST setup, payment gateway, and shipping integration yourself. Risk: no accountability after launch, no SLA, and most freelancers stop responding once paid. Hire an agency like Codingclave if your budget is INR 75,000 plus, you want a launch-ready store with payment gateway, shipping, GST invoicing, SEO, and analytics all configured, and you need ongoing support for new features, security patches, and performance tuning. Agencies typically deliver in 2 to 8 weeks with documented handover, training videos, and 30 to 90 days of post-launch support. For any store expected to do over INR 10 lakhs annual revenue, agency is the safer bet.
For most Indian D2C brands selling between INR 10 lakhs and INR 5 crores annually, Shopify is the best platform. It handles UPI, COD, Indian payment gateways via Shopify Payments or Razorpay, integrates natively with Shiprocket and Delhivery, and has theme apps optimized for Instagram-driven traffic. Beyond INR 5 crore GMV, brands often migrate to headless Shopify with a Next.js frontend or move to custom builds for advanced personalization. WooCommerce is a strong choice if your D2C strategy is content-led with SEO and blogs. Avoid Magento for early-stage D2C — it is overbuilt and expensive to maintain. Codingclave helps D2C brands choose, build, and migrate between platforms as they scale.
Cash on Delivery still drives 40 to 50 percent of orders in India but comes with 15 to 30 percent return-to-origin (RTO) rates, especially in tier 2 and tier 3 cities. Reduce RTO by adding automated IVR or WhatsApp order verification calls for COD orders above INR 1,000, offering a 5 to 10 percent discount for prepaid payments, blocking repeat RTO addresses and phone numbers, and using Shiprocket or Delhivery's COD-specific delivery networks with verified addresses. On the website, add a pincode serviceability check before checkout, display realistic delivery dates, and require OTP verification for high-value COD orders. Properly implemented, RTO can drop from 25 percent to under 10 percent within 90 days.