Platforms like Shopify, BigCommerce, and Squarespace make it easy to start selling online – but they come with hidden costs. Monthly subscription fees, transaction fees (often 2‑3% on top of payment processor fees), and app costs add up quickly. Worse, you don't own your customer data or your store's code. If they raise prices or change their terms, you have no recourse.
Self‑hosted e‑commerce gives you complete control. You pay only for your hosting, you own your data, and you can customize everything. In this tutorial, we'll walk through setting up a self‑hosted online store using open source software – specifically WooCommerce on WordPress, with optional integration with ERPNext for inventory and order management. No coding required, no vendor lock‑in.
SolOPENpreneur includes WordPress + WooCommerce pre‑installed. Start selling today.
Launch your store →There are several excellent open source e‑commerce platforms. For most small businesses, WooCommerce (on WordPress) is the best choice – it's beginner‑friendly, has thousands of extensions, and powers over 30% of all online stores. Other options include PrestaShop (feature‑rich), Medusa (headless, developer‑friendly), and OpenCart (lightweight). We'll focus on WooCommerce because it integrates seamlessly with the rest of the SolOPENpreneur stack.
If you're using SolOPENpreneur, WooCommerce is already available as a plugin within WordPress Multisite. If you're setting up manually, you'll need a VPS with PHP and MySQL, then install WordPress and the WooCommerce plugin.
If you're going the DIY route, start by installing WordPress on your VPS. Most VPS providers offer one‑click WordPress installs. Then, from your WordPress admin dashboard, go to Plugins → Add New and search for "WooCommerce." Install and activate it. The setup wizard will guide you through basic configuration: store location, currency, payment methods, and shipping zones.
If you're using SolOPENpreneur, WordPress and WooCommerce are pre‑installed. You just need to log in to your WordPress admin and run the WooCommerce setup wizard. The entire process takes less than 10 minutes.
You need to accept payments. WooCommerce supports dozens of payment gateways. For most small businesses, Stripe and PayPal are the best options. Stripe allows customers to pay by credit card directly on your site; PayPal is familiar to many buyers. Both have WooCommerce plugins that are free to install. Transaction fees are typically 2.9% + $0.30 per transaction – the same as Shopify, but you pay no monthly Shopify fee on top.
To set up Stripe, go to WooCommerce → Settings → Payments, enable Stripe, and connect your Stripe account. For PayPal, enable PayPal Standard or PayPal Checkout and enter your PayPal email. Test the checkout process with a small transaction to ensure everything works.
Now the fun part – adding your products. Go to Products → Add New. Enter the product name, description, price, and images. You can set inventory levels, SKUs, and product categories. For variable products (different sizes, colors), use the "Attributes" tab to create variations. WooCommerce also supports digital products – just check the "Virtual" and "Downloadable" boxes and upload your file.
If you have many products, you can import them via CSV using the built‑in product importer. This is a huge time‑saver for larger catalogs.
If you sell physical products, configure shipping. WooCommerce lets you set flat rates, free shipping, or real‑time rates from carriers (via extensions). For most small stores, flat rates per region are simplest. Go to WooCommerce → Settings → Shipping. Add shipping zones (e.g., "Domestic," "International"), then add shipping methods within each zone (e.g., "Flat Rate – $5").
For digital products, you can disable shipping entirely by not configuring any shipping zones.
Your store's design matters. WooCommerce works with almost any WordPress theme, but some are specifically optimized for e‑commerce. Popular free themes include Storefront (official WooCommerce theme), Astra (fast and customizable), and Blocksy (modern). Paid themes like Flatsome offer more features. Install your theme from Appearance → Themes → Add New, then customize colors, fonts, and layout under Appearance → Customize.
Make sure your theme is mobile‑responsive – over half of e‑commerce traffic comes from mobile devices.
WooCommerce has a vast ecosystem of free and paid extensions. For a basic store, you'll want:
Don't overload your store with extensions – each adds code and can slow down your site. Install only what you need.
As your store grows, you'll want to sync orders, inventory, and customer data with your ERP system. ERPNext has a built‑in WooCommerce integration. In ERPNext, go to the E‑commerce Settings page, enter your WooCommerce API keys (found in WooCommerce → Settings → Advanced → REST API), and enable synchronization. Orders placed in WooCommerce will automatically appear in ERPNext as Sales Orders. Inventory levels sync both ways, and customers are created automatically.
This integration saves hours of manual data entry and ensures your financial records are always accurate.
A slow store kills conversions. Optimize your site:
For SEO, use Yoast SEO or Rank Math. Optimize product titles, descriptions, and meta tags. Add schema markup (product structured data) so Google shows rich snippets with price and availability.
Over 70% of online shopping carts are abandoned. Recover those lost sales with automated emails. Use n8n to watch for abandoned carts in WooCommerce (there's a plugin that exposes a webhook or you can use the WooCommerce API). When a cart is abandoned, n8n triggers a Mautic sequence: email 1 after 1 hour ("Forgot something?"), email 2 after 24 hours ("10% off if you complete purchase"), email 3 after 48 hours ("Last chance").
This alone can recover 10‑30% of lost revenue, and it's completely automated once set up.
Before going live, test everything. Place a test order using a real credit card (use Stripe's test mode or PayPal sandbox). Check that:
Fix any issues before launching. Also test your abandoned cart recovery workflow with a test cart.
Once testing is complete, remove any "Coming Soon" plugins, announce your launch via Mautic to your email list, and start driving traffic. Use Postiz to schedule social media posts about new products. Use n8n to automate post‑purchase follow‑ups (review requests, cross‑sell emails). And set up the SolOPENpreneur Disaster Recovery add‑on to back up your entire store daily – you don't want to lose sales data.
Monitor your analytics (Matomo) to see where traffic comes from and which products sell best. Double down on what's working, and continuously optimize.
Let's compare a typical store with 1,000 monthly orders at $50 average order value:
The real savings come from control and scalability. With self‑hosting, you can add unlimited products, unlimited bandwidth, and unlimited staff accounts – all for the same monthly VPS cost. And you can move to any host anytime.
SolOPENpreneur includes WordPress + WooCommerce pre‑installed, plus ERPNext for inventory and order management. Get your store online today.
Start your e‑commerce journey →Next in our how‑to series: How to Automate Your Marketing with Open Source Tools: A Guide for Solo Entrepreneurs – coming soon.
See exactly how much a solopreneur overpays for 16 SaaS subscriptions every year, and the open source stack that replaces them for one flat price. Plus occasional open source growth tips. No spam, unsubscribe anytime.