Plugin Setup
Install and configure WooNuxt Settings plugin
The WooNuxt Settings plugin is the cornerstone of your WooNuxt setup. It automatically installs dependencies and provides a central configuration hub for your headless WooCommerce store.
Installation Steps
Upload to WordPress
- In WordPress admin, navigate to Plugins > Add New
- Click the Upload Plugin button at the top
- Click Choose File and select
woonuxt-settings.zip - Click Install Now
- Click Activate once installation completes
Access Settings
After activation, find the settings page:
- Go to Settings > WooNuxt in WordPress admin
- You'll see a comprehensive dashboard with multiple sections
What the Plugin Does
The WooNuxt Settings plugin handles the heavy lifting of WordPress configuration for your headless WooCommerce store.
Automatically downloads and activates WPGraphQL, WooGraphQL, and Headless Login plugins
Exposes all WooCommerce and WooNuxt settings via GraphQL API
Handles Stripe payment intent creation and exposes payment settings
Manages global product attributes for advanced filtering capabilities
Configure logo, primary colors, and visual branding
Trigger Netlify/Vercel builds directly from WordPress
Required Dependencies
The plugin will automatically install these dependencies for you:
Name: WPGraphQL
Purpose: GraphQL API for WordPress
Description: Provides GraphQL endpoint at /graphql
Auto-installed: ✅ Yes
Name: WPGraphQL WooCommerce (WooGraphQL)
Purpose: WooCommerce GraphQL integration
Description: Exposes WooCommerce data via GraphQL
Auto-installed: ✅ Yes
Name: WPGraphQL Headless Login
Purpose: Headless authentication
Description: Enables login/logout via GraphQL mutations
Auto-installed: ✅ Yes
Auto-Installation Process
When you visit Settings > WooNuxt for the first time:
- The plugin checks for required dependencies
- Shows "Required Plugins" section with install buttons
- Click Install Now for each plugin
- Plugins are downloaded, installed, and activated automatically
- Once all plugins are installed, the section changes to deployment options
The plugin uses secure AJAX requests with nonce verification to handle installations. Each plugin status is checked in real-time via jQuery.
Plugin Settings Overview
Once installed, the WooNuxt Settings plugin provides these configuration options:
Global Settings
| Setting | Description | GraphQL Field |
|---|---|---|
| Logo | Your site logo URL | logo |
| Frontend URL | Your Nuxt site URL (not WordPress) | frontEndUrl |
| Products Per Page | Pagination limit (default: 24) | productsPerPage |
| Primary Color | Brand color in hex format | primary_color |
| Build Hook | Netlify/Vercel deployment webhook | - |
Global Attributes
Configure product attributes for filtering:
- Custom Label - Display name for the filter
- Attribute - WooCommerce attribute taxonomy (e.g.,
pa_color) - Show Count - Display product count per term
- Hide Empty - Hide attributes with no products
- Open By Default - Expand filter by default
These settings are exposed via GraphQL as global_attributes array.
SEO Settings
Add social media handles:
- Provider - Social platform (Facebook, Twitter, Instagram, etc.)
- Handle - Your username/handle
- URL - Full profile URL
Stripe Configuration
Stripe settings are automatically exposed via GraphQL:
- Reads from WooCommerce > Settings > Payments > Stripe
- Exposes
stripeSettingswith:enabled- Whether Stripe is activetestmode- Test or live modepublishable_key- Public key based on environment
GraphQL Schema
After installation, the plugin adds woonuxtSettings to your GraphQL schema:
query getWooNuxtSettings {
woonuxtSettings {
primary_color
logo
publicIntrospectionEnabled
frontEndUrl
domain
maxPrice
productsPerPage
wooCommerceSettingsVersion
global_attributes {
slug
showCount
openByDefault
label
hideEmpty
}
stripeSettings {
enabled
testmode
test_publishable_key
publishable_key
}
}
}
Verification
After installation, verify everything is working:
- WooNuxt Settings plugin is activated
- All required plugins show as "Installed" in Settings > WooNuxt
- GraphQL endpoint is accessible at
/graphql - WPGraphQL shows in WordPress admin sidebar
- WooCommerce products are visible in GraphQL IDE
Common Issues
Plugin auto-installation fails? Ensure WordPress is 6.9.4+ and you have admin access. Manual installation: download from WordPress.org and GitHub releases.
GraphQL endpoint not accessible? Go to Settings > Permalinks and click Save Changes to flush rewrite rules.
Plugin Configuration
After installing the WooNuxt Settings plugin, configure it to connect your WordPress backend with your Nuxt frontend.
Accessing Settings
Navigate to Settings > WooNuxt in your WordPress admin dashboard.
You'll see different sections based on whether all required plugins are installed. If dependencies are missing, you'll see the "Required Plugins" section first.
Logo Configuration
Upload or specify your site logo:
Logo URL: https://yoursite.com/wp-content/uploads/logo.svg
How to set:
- Upload logo to Media Library
- Copy the file URL
- Paste into the Logo field
- Click Save Changes
Best practices:
- Use SVG format for best quality
- Recommended size: 200x50px to 400x100px
- Transparent background works best
- Logo appears in your Nuxt frontend header
Frontend URL
Specify your Nuxt application URL (not your WordPress URL):
Frontend URL: https://your-store.netlify.app
This should be your Nuxt site URL, not your WordPress backend URL. Example:
- ✅ Correct:
https://mystore.netlify.app - ❌ Wrong:
https://wordpress.mystore.com
Use cases:
- Links in emails point to frontend
- Redirects after login/logout
- CORS configuration
- Social sharing links
Products Per Page
Set pagination limit for product listings:
Products Per Page: 24 (default)
Common values:
- 12 - Fewer products, faster loading
- 24 - Balanced (default)
- 48 - More products per page
This value is exposed via GraphQL and used by your Nuxt frontend for pagination.
Primary Color
Define your brand's primary color:
Primary Color: #7F54B2 (default)
Features:
- Color picker interface
- Live preview of frontend elements
- Hex color code input
- Affects buttons, links, and interactive elements
The color is exposed via GraphQL as primary_color for your Nuxt theme.
Build Hook
Trigger deployments from WordPress:
Build Hook: https://api.netlify.com/build_hooks/your_unique_id
Where to find:
- Netlify: Site Settings > Build & Deploy > Build Hooks
- Vercel: Project Settings > Git > Deploy Hooks
When to use:
- After publishing new products
- After updating content
- After changing settings
- Automatic deployments on save
Once configured, a Deploy button appears in the WooNuxt toolbar.
Global Attributes
Global Attributes enable advanced product filtering on your frontend.
What Are Global Attributes?
Product attributes in WooCommerce (like Color, Size, Material) that you want to use as filters across all product pages.
Adding a Filter:
- Click Add New button
- Enter a custom label (e.g., "Filter by Color")
- Select the attribute from dropdown (e.g., Color)
- Configure display options:
- ☑️ Show Count - Display number of products
- ☑️ Hide Empty - Hide terms with 0 products
- ☑️ Open By Default - Start expanded
- Click Save Changes
Create product attributes first in Products > Attributes before configuring global attributes in WooNuxt Settings.
SEO Settings
Configure social media profiles for rich meta tags:
Adding Social Profiles:
- Click Add new button
- Enter provider name (e.g., "facebook", "twitter", "instagram")
- Add your handle (e.g., "@yourstore")
- Add full profile URL (e.g., "https://facebook.com/yourstore")
- Click Save Changes
These settings populate Open Graph and Twitter Card meta tags on your frontend for better social sharing.
Stripe Configuration
Stripe settings are automatically pulled from WooCommerce:
- Configure Stripe in WooCommerce > Settings > Payments > Stripe
- WooNuxt Settings automatically exposes these via GraphQL
- Your Nuxt frontend reads the appropriate key based on environment
The plugin intelligently returns test or live keys based on your WooCommerce Stripe mode setting.
Verification
After configuring settings, verify in GraphQL IDE:
query TestSettings {
woonuxtSettings {
logo
primary_color
frontEndUrl
productsPerPage
global_attributes {
label
slug
showCount
hideEmpty
openByDefault
}
stripeSettings {
enabled
testmode
publishable_key
}
}
}
What's Next
With WordPress fully configured, you're ready to start building with WooNuxt!