Overview
The shopping feature enables you to:- Tag products within story pages
- Connect to WooCommerce or Shopify stores
- Display product information with pricing
- Link directly to product pages
- Include product schema in structured data
Supported Platforms
The plugin includes native integrations for popular e-commerce platforms (fromincludes/Shopping/Shopping_Vendors.php:90-114):
WooCommerce
Native WordPress e-commerce integration. Automatically syncs your WooCommerce product catalog with the story editor.
Shopify
Connect your Shopify store to pull product data. Requires Shopify API credentials.
Setting Up Shopping
WooCommerce Integration
- Install and activate WooCommerce plugin
- Set up your WooCommerce store and add products
- Navigate to Stories > Settings > Shopping
- Select WooCommerce as your shopping provider
- Save settings
WooCommerce products are automatically available in the story editor after configuration. No additional API setup required.
Shopify Integration
- Log in to your Shopify admin panel
- Go to Apps > Develop apps (or create a private app)
- Create a new app with Storefront API access
- Copy your Storefront API token
- In WordPress, go to Stories > Settings > Shopping
- Select Shopify as your shopping provider
- Enter your Shopify store URL (e.g.,
yourstore.myshopify.com) - Enter your Storefront API token
- Save settings
Adding Products to Stories
Using the Product Picker
- Open a story in the editor
- Navigate to the page where you want to add a product
- Click the Shopping icon in the left toolbar
- Search for products from your connected store
- Select a product to add it to the page
- Position and style the product tag as desired
- Publish your story
Product Tag Options
Customize product display:Display Settings
Display Settings
- Product image: Show/hide product thumbnail
- Product title: Display product name
- Price: Show current price
- Brand: Display brand name (if available)
- Link: Direct link to product page
Style Options
Style Options
- Background color: Tag background
- Text color: Label text color
- Border radius: Rounded corners
- Shadow: Drop shadow effect
- Position: Place anywhere on the page
Product Data Structure
Products are stored as structured data in story metadata (fromincludes/Shopping/Product.php:56-369).
Product Schema
Storage
Product data is stored in post meta (fromincludes/Shopping/Product_Meta.php:44):
SEO and Structured Data
Products tagged in stories automatically generate rich schema.org metadata for improved SEO (fromincludes/Discovery.php:385-429).
Product Schema Output
Custom Shopping Integration
Developers can add custom shopping vendors using the plugin’s vendor system.Register Custom Vendor
Implement Product Query Interface
Create a class that implements theProduct_Query interface:
Product Analytics
Product interactions are tracked through the analytics integration:Tracked Events
- Product view: When a story page with products is viewed
- Product click: When user clicks on a product tag
- Outbound link: When user clicks through to product page
Custom Tracking
Best Practices
Product Selection
Product Selection
- Feature products relevant to story content
- Limit to 2-3 products per story page
- Choose products with high-quality images
- Ensure product links are working
- Update prices regularly
Visual Design
Visual Design
- Position product tags strategically
- Avoid covering important content
- Use consistent styling across stories
- Ensure tags are readable on all backgrounds
- Test on mobile devices
User Experience
User Experience
- Add clear call-to-action
- Include product benefits in story
- Show products in context/use
- Provide adequate product information
- Make links obviously clickable
Performance
Performance
- Optimize product images
- Minimize number of products per page
- Use lazy loading for product data
- Cache product information
- Monitor API rate limits
Troubleshooting
Products not appearing in editor
Products not appearing in editor
- Verify shopping integration is configured correctly
- Check that your e-commerce platform has published products
- Ensure API credentials are valid (Shopify)
- Check for PHP errors in debug log
- Try re-saving shopping settings
Product prices not updating
Product prices not updating
- Products are cached for performance
- Clear WordPress object cache
- Update story to refresh product data
- Check product still exists in source system
- Verify API connection is working
Shopify connection failing
Shopify connection failing
- Verify store URL format (yourstore.myshopify.com)
- Check API token has correct permissions
- Ensure Storefront API is enabled
- Test API credentials in Shopify admin
- Check for SSL/TLS connection issues
WooCommerce products missing
WooCommerce products missing
- Ensure products are published (not draft)
- Check products aren’t hidden from catalog
- Verify WooCommerce is active and up to date
- Clear WooCommerce transients
- Check product visibility settings