E-commerce in Morocco: A Growing Opportunity
Morocco has over 23 million internet users and rapidly increasing smartphone penetration. Whether you sell locally or internationally, a secure e-commerce site is the foundation of your digital business.
Choosing the Right Platform
WooCommerce (WordPress)
Best for small to medium stores. Easy to manage, supports CMI and PayPal. Cost: 700-2,000 MAD/year hosting + plugins.
Custom PHP / Laravel
Best for specific requirements, large catalogs, or complex business logic. Full control, best performance. Cost: 15,000-80,000 MAD.
PrestaShop
Mid-size stores wanting a dedicated e-commerce solution with strong French and Arabic support.
Payment Gateways for Morocco
- CMI - main Moroccan gateway, local Visa/Mastercard, requires bank agreement, ~2.5% fee
- PayPal - for international sales, 2.9% + fixed fee
- Cash on Delivery - most popular in Morocco, always include this option
Legal Requirements
- Business registration at OMPIC (auto-entrepreneur, SARL, or SA)
- ICE number for VAT and invoicing
- CNDP registration for collecting user data (law 09-08)
- General Terms of Sale covering return policy, payment terms, delivery
- Privacy Policy compliant with Moroccan law
Essential Features
- Product catalog with categories, filters, search
- Optimized checkout - minimum steps, guest checkout available
- CMI + PayPal + Cash on Delivery
- Stock management with low-stock alerts
- Mobile-first design - 80%+ of Moroccan shoppers use smartphones
- WhatsApp order support - essential for Moroccan market
- SSL certificate - mandatory for payment processing
E-commerce SEO
- Unique product titles and descriptions
- Schema.org Product markup for price and availability rich snippets
- Canonical tags on filtered pages
- XML sitemap for all products
Reducing Cart Abandonment (70% Average)
- No forced registration - guest checkout available
- Show shipping costs upfront
- SSL badge and return policy clearly visible
- Abandoned cart email after 1 hour
Ready to launch? Contact me for a free consultation. I build fast, secure e-commerce sites for Moroccan businesses.
US or EU team? Learn why more startups are hiring a senior web developer from Morocco - time-zone friendly, English-proficient, NDA-ready.
Picking the Right Platform - Decision Matrix
Platform choice is the single biggest predictor of success for a Moroccan e-commerce project. Here is how I decide, with real numbers.
| Platform | Initial cost | Monthly cost | Best order volume | CMI integration |
|---|---|---|---|---|
| WooCommerce | 10 000 - 40 000 MAD | 300 - 1 000 MAD | 0 - 2 000 orders/mo | Plugin available |
| Shopify | 8 000 - 25 000 MAD | 300 - 2 500 MAD (Shopify fees) | 0 - 10 000/mo | Custom app needed |
| PrestaShop | 15 000 - 50 000 MAD | 400 - 1 500 MAD | 0 - 5 000/mo | Module available |
| Magento (Adobe Commerce) | 80 000 - 250 000 MAD | 2 000 - 15 000 MAD | 5 000+ /mo | Custom module |
| Custom Laravel / Next.js | 60 000 - 300 000 MAD | 500 - 5 000 MAD | Any scale | Direct SDK integration |
My default recommendation for Moroccan SMBs in 2026
WooCommerce for shops under 2 000 orders/month, Shopify when ease of use and international reach matter, custom only when business logic is truly non-standard (marketplace, subscription with complex rules, B2B pricing tiers).
Logistics - The Part Everyone Underestimates
A beautiful e-commerce site with broken delivery is a dead business. In Morocco you have four main carriers, each with different strengths.
Amana (Barid Al-Maghrib)
Cheapest (25-45 MAD per parcel), widest rural coverage, slowest (3-7 days). API exists but paperwork is heavy. Best for low-margin products shipped outside major cities.
Cathedis
Mid-range (35-60 MAD), fast urban (24-48h), solid API with live tracking. Most e-commerces in Casablanca/Rabat/Marrakech use Cathedis as primary.
Chronopost Morocco
Premium (80-150 MAD), next-day guaranteed, best API. Use for high-value items or customer service promises.
Glovo / Jumia Logistics
Same-day in 3 cities only (Casa, Rabat, Marrakech). Expensive (50-100 MAD) but game-changing for customer experience. Integrate as premium delivery option.
Payments Setup - Beyond Just CMI
A professional Moroccan e-commerce checkout has three payment paths:
- CMI card payment - instant, costs 1.5-2% but most trusted
- Cash on delivery - still 60-70% of Moroccan e-commerce orders in 2026
- Bank transfer - for B2B or high-value orders
Hidden cost of COD: 15-25% of orders are refused at delivery. Price that into your margin.
VAT, Invoicing and Legal Basics
- VAT threshold: 500 000 MAD/year revenue. Below = VAT-exempt (auto-entrepreneur status perfect here).
- Above 500 000 MAD: register as SARL, charge 20% VAT, file monthly declarations.
- Mandatory: mentions légales, CGV, politique de retour (right of withdrawal = 7 days for physical goods sold online).
- RGPD: Morocco has Law 09-08 equivalent. A privacy policy and cookie consent banner are required.
SEO for Moroccan E-commerce - What Actually Works
On-page
- Product titles in French first (80% of searches), Arabic optional, English only for tourist-facing products
- Structured data: Product + Offer + AggregateRating schema on every product page
- Unique meta descriptions (no copy-paste from manufacturer)
- City-specific landing pages for top cities (Casa, Rabat, Marrakech, Tanger, Agadir)
Off-page
- Google Business Profile with products feed linked
- Inclusion in Morocco-specific directories (bizna.ma, marocentreprises.ma, pages-jaunes.ma)
- Active Instagram + TikTok (Morocco has one of the highest TikTok penetrations in Africa)
Technical
- Image compression below 150 KB per product (WebP format)
- CDN via Cloudflare (free tier is enough)
- Core Web Vitals green on mobile - 70% of Moroccan traffic is mobile
- HTTPS enforced, HSTS header, no mixed content
Real Project Breakdown - An Anonymized Case
Cosmetics shop in Rabat, 2025 launch. Here is the actual breakdown:
- Platform: WooCommerce + Astra theme + 6 plugins
- Initial dev: 22 000 MAD over 4 weeks
- CMI account setup: 3 weeks with Attijariwafa, 2 000 MAD setup
- Cathedis integration: 4 500 MAD (custom plugin for auto-tracking)
- First-year hosting + maintenance: 6 000 MAD (LWS Maroc Platinum plan)
- Google Ads budget month 1: 3 000 MAD → 42 orders
- Organic traffic after 6 months: 4 500 visits/month from SEO alone
- Break-even reached month 5
Top Mistakes I See in 2026
- Launching without COD - you lose 60% of potential customers
- Using only WhatsApp for orders - no SEO, no analytics, no scaling
- No return policy - illegal and scares buyers
- Unoptimized images - kills mobile conversion
- One payment gateway only - if CMI is down, you lose all sales
- Forgetting Arabic SEO - 40% of queries have Arabic variants
FAQ
How much does a real e-commerce site cost to launch in Morocco?
Functional WooCommerce: 18 000-35 000 MAD. Shopify: 10 000-25 000 MAD dev + Shopify subscription. Custom: 80 000-250 000 MAD. Add 5 000-15 000 MAD for CMI, logistics integrations, and initial SEO.
How long does it take?
4-8 weeks for WooCommerce or Shopify, 12-24 weeks for custom. CMI paperwork runs in parallel (3-6 weeks), so plan the launch around that timing.
Do I need to speak Arabic on my site?
Not mandatory, but it opens a 30-40% larger market. Most Moroccan e-commerce sites are FR-first with optional AR. EN only if you target tourists or expats.
What's the biggest risk factor?
Cash flow from COD refusals. A 20% refusal rate on 500 orders = 100 packages returned to warehouse. Factor shipping both ways + restocking time into your financial model.
I've shipped 30+ e-commerce projects in Morocco since 2014, from 10k MAD boutique shops to 1M MAD marketplaces. Contact me for a concrete quote and project roadmap.