Skip to main content

WooCommerce Integration Guide

Learn how to integrate Fanfare experiences with your WooCommerce store on WordPress.

Overview

This guide covers integrating Fanfare virtual queues, draws, and auctions with WooCommerce. You can use either the official WordPress plugin or implement a custom integration. What you’ll learn:
  • Installing the Fanfare WordPress plugin
  • Embedding experiences on product pages
  • Connecting to WooCommerce checkout
  • Processing orders via webhooks
  • Customizing the experience display
Complexity: Intermediate Time to complete: 40 minutes

Prerequisites

  • WordPress site with WooCommerce installed
  • Fanfare account with active organization
  • Access to WordPress admin panel
  • Basic understanding of WordPress hooks and filters

Installation Options

  1. Download the Fanfare plugin from WordPress Plugin Directory
  2. Upload to your WordPress installation
  3. Activate the plugin
  4. Navigate to Fanfare > Settings
  5. Enter your Organization ID and API Key

Option 2: Manual Integration

Add the Fanfare SDK directly to your theme:
Build fanfare-integration.js with the current @fanfare-io/fanfare-sdk-core package, initialize it with the localized organization ID and publishable key, and render from journey.view$. See Custom Platform Integration for the framework-agnostic pattern.

Step 1: Configure Organization Settings

Plugin Settings Page

Navigate to Fanfare > Settings in WordPress admin:

Manual Configuration

Step 2: Product Meta Box

Add Fanfare configuration to products:

Step 3: Frontend Integration

Display Experience on Product Page

JavaScript Integration

Step 4: Server-Side Handling

Store Admission Data

Preserve Cart Item Data

Step 5: Order Processing

Save Fanfare Data to Order

Complete Admission on Order

Step 6: Webhook Handling

Register Webhook Endpoint

Styling

Default Styles

Shortcode Usage

Usage:

Troubleshooting

Experience Not Loading

  1. Check browser console for JavaScript errors
  2. Verify Organization ID is configured
  3. Ensure SDK script is loaded (check network tab)
  4. Verify experience ID exists and is active

Cart Issues

Webhook Not Working

  1. Verify webhook URL is accessible: https://yoursite.com/wp-json/fanfare/v1/webhook
  2. Check webhook secret is configured
  3. Review server error logs
  4. Test with webhook debugging tool

Session Issues

What’s Next