Skip to content

Provides a full Ecommerce Suite, A plugin for Wx Eclipse

Notifications You must be signed in to change notification settings

JD544/Wx-Ecommerce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

2 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

WX E-commerce Plugin

A comprehensive e-commerce solution for the WX Eclipse website builder platform. This plugin provides a complete online store management system with product catalog, order management, customer management, and analytics.

Features

πŸ›οΈ Product Management

  • Product Catalog: Create and manage products with detailed information
  • Product Variants: Support for different sizes, colors, and options
  • Inventory Tracking: Real-time stock management
  • Categories & Collections: Organize products efficiently
  • SEO Optimization: Built-in SEO fields for better search visibility
  • Image Management: Drag & drop image uploads with preview

🎁 Subscription Management

  • Subscription Catalog: Create and manage subscription products
  • Billing Cycles: Support for multiple billing cycles

πŸ“¦ Order Management

  • Order Processing: Complete order lifecycle management
  • Order Status Tracking: Real-time status updates (pending, confirmed, shipped, delivered)
  • Payment Status: Track payment states (pending, paid, refunded)
  • Fulfillment Management: Handle shipping and delivery
  • Order Details: Comprehensive order information and customer data

πŸ‘₯ Customer Management

  • Customer Profiles: Detailed customer information
  • Address Management: Multiple shipping and billing addresses
  • Order History: Track customer purchase history
  • Marketing Preferences: Manage email marketing consent
  • Customer Analytics: Spending patterns and behavior insights

πŸ“Š Analytics & Reporting

  • Sales Dashboard: Real-time sales metrics
  • Revenue Tracking: Monthly and total revenue reports
  • Top Products: Best-selling product analytics
  • Customer Insights: Customer acquisition and retention metrics
  • Conversion Tracking: Monitor store performance

🎯 Marketing Tools

  • Discount Codes: Create percentage, fixed amount, and free shipping discounts
  • Promotional Campaigns: Time-limited offers
  • Customer Segmentation: Target specific customer groups
  • Usage Limits: Control discount code usage

πŸ“„ Content Management

  • Custom Pages: Create Custom Ecommerce pages
  • Page Templates: Pre-built templates for different page types
  • SEO Meta Tags: Optimize pages for search engines
  • Content Editor: Rich text editing capabilities

βš™οΈ Store Settings

  • General Settings: Store name, description, currency, timezone
  • Payment Integration: Stripe, PayPal, Cash on Delivery, Bank Transfer
  • Shipping Configuration: Zones, rates, and free shipping thresholds
  • Tax Management: Configurable tax rates
  • Inventory Settings: Stock tracking and low stock alerts

Installation

  1. The plugin is included with WX Eclipse by default
  2. Navigate to the Plugins section in your WX Eclipse dashboard
  3. Activate the E-commerce plugin
  4. Configure your store settings

Quick Start

1. Initial Setup

// Access the e-commerce dashboard from the sidebar

2. Configure Store Settings

  1. Go to Settings β†’ General
  2. Set your store name, description, and currency
  3. Configure payment methods in Settings β†’ Payments
  4. Set up shipping zones in Settings β†’ Shipping

3. Add Your First Product or Subscription

  1. Navigate to Products
  2. Click Add Product
  3. Fill in product details:
    • Name and description
    • Price and cost
    • If it's a subscription, tick the "Is Subscription" checkbox
      • Billing cycles (multiple allowed)
      • SKU's will be required for each billing cycle
      • Prices for each billing cycle along with compare at price
    • SKU and inventory
    • Category and tags
    • Product images

Note: If you're using Stripe, product SKU's are required and must be tied to a Stripe product via the Stripe dashboard here. E.g "price_1234"

4. Create Store Pages

  1. Go to Pages
  2. The plugin automatically generates:
    • Shop page (/shop)
    • Product detail pages (/products/{slug})
    • Checkout (/checkout)

API Reference

Product Interface

export type Product = {
  type: 'product' | 'subscription';
  id: string;
  name: string;
  description: string;
  shortDescription: string;
  price: number;
  compareAtPrice?: number;
  cost: number;
  sku: string;
  barcode?: string;
  trackQuantity: boolean;
  quantity: number;
  weight: number;
  weightUnit: 'kg' | 'lb' | 'oz' | 'g';
  category: string;
  tags: string[];
  status: 'active' | 'draft' | 'archived';
  productType: string;
  images: string[];
  variants: ProductVariant[];
  seoTitle?: string;
  seoDescription?: string;
  createdAt: string;
  updatedAt: string;
  slug: string;
} & (
  | {
      type: 'subscription';
      billingCycles: SubscriptionBillingCycle[];
    }
  | {
      type: 'product';
    }
);

Subscription Interface

interface Subscription {
  id: string;
  name: string;
  description: string;
  price: number;
  billingCycle: 'monthly' | 'annually' | 'biennially' | 'triennially';
  status: 'active' | 'inactive';
  createdAt: string;
  updatedAt: string;
}

interface SubscriptionBillingCycle {
  name: 'monthly' | 'annually' | 'biennially' | 'triennially';
  price: number;
  sku: string;
  compareAtPrice?: number;
}

Order Interface

interface Order {
  id: string;
  orderNumber: string;
  customer: Customer;
  items: OrderItem[];
  subtotal: number;
  tax: number;
  shipping: number;
  total: number;
  status: 'pending' | 'confirmed' | 'shipped' | 'delivered' | 'cancelled';
  // ... additional fields
}

Customer Interface

interface Customer {
  id: string;
  firstName: string;
  lastName: string;
  email: string;
  phone?: string;
  totalSpent: number;
  ordersCount: number;
  addresses: Address[];
  // ... additional fields
}

More documentation can be found in the API Reference.

Components

Builder Components

The plugin provides several pre-built components for the WX builder:

  • Product List (wx-product-list): Display products in a grid layout
  • Product Detail (wx-product-detail): Show individual product information
  • Checkout (wx-checkout): Complete checkout process

Customization

Styling

The plugin uses CSS classes with the wx-ecom- prefix. Override these styles in your theme:

.wx-ecom-card {
  /* Custom card styling */
}

.wx-ecom-button {
  /* Custom button styling */
}

.wx-ecom-product-grid {
  /* Custom product grid styling */
}

Settings Configuration

const storeSettings: StoreSettings = {
  storeName: 'My Store',
  currency: 'USD',
  enableInventoryTracking: true,
  enableTaxes: true,
  taxRate: 10,
  // ... other settings
};

Integrations

Payment Gateways

  • Stripe: Credit card processing
  • PayPal: PayPal payments
  • Cash on Delivery: Pay on delivery option
  • Bank Transfer: Direct bank transfers

Third-party Services

  • Google Analytics: Website analytics
  • Visitor Tracking: Visitor tracking

Data Storage

The plugin uses the WX Eclipse storage system:

  • Data is stored using useStorage hook
  • Automatic persistence across sessions
  • Export/import capabilities

Security

  • Input validation on all forms
  • XSS protection
  • CSRF protection
  • Secure payment processing
  • Data encryption for sensitive information

Performance

  • Lazy loading of product images
  • Pagination for large product catalogs
  • Optimized database queries
  • Caching for frequently accessed data

Browser Support

  • Chrome 70+
  • Firefox 65+
  • Safari 12+
  • Edge 79+

Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Add tests if applicable
  5. Submit a pull request

Support

For support and questions:

License

This plugin is part of the WX Eclipse project and follows the same license terms.

Changelog

v1.0.0

  • Initial release
  • Complete e-commerce functionality
  • Product, order, and customer management
  • Analytics dashboard
  • Payment integrations
  • Marketing tools

Made with ❀️ by the WX Eclipse team

About

Provides a full Ecommerce Suite, A plugin for Wx Eclipse

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published