BrainPredict Commerce • E-commerce Integrations
BrainPredict Commerce WooCommerce Integration
10 min read•Last updated: January 2, 2025
WooCommerce Integration Guide
Integrate BrainPredict Commerce with your WooCommerce store using our WordPress plugin.
Method 1: WordPress Plugin (Recommended)
- Log in to your WordPress admin dashboard
- Navigate to Plugins → Add New
- Search for "BrainPredict Commerce"
- Click "Install Now" and then "Activate"
- Go to WooCommerce → BrainPredict Commerce Settings
- Enter your BrainPredict Commerce API key
- Configure features and save
Method 2: Manual Integration
Add this code to your theme's functions.php file:
function brainpredict-commerce_init() {
wp_enqueue_script('brainpredict-commerce', 'https://cdn.brainpredict.ai/brainpredict-commerce.js', array(), '1.0', true);
wp_localize_script('brainpredict-commerce', 'brainpredict-commerceConfig', array(
'apiKey' => 'YOUR_API_KEY',
'shopUrl' => get_site_url(),
'customerId' => get_current_user_id()
));
}
add_action('wp_enqueue_scripts', 'brainpredict-commerce_init');
Features Available
- Product recommendations on shop pages, product pages, cart
- Automated social media posts for new products
- Review aggregation from WooCommerce and external sources
- SEO optimization for product descriptions
- Fraud detection for orders
- Customer lifetime value predictions