Troubleshooting
Widget Not Appearing on the Frontend
- Confirm Enabled is set to Yes in ShopChat settings.
- Check that the AI API key is entered and valid - the widget will not load without a valid key.
- Verify your theme calls
wp_footer()- the widget is injected there. - Check browser DevTools console for JavaScript errors.
- If using a caching plugin, clear the cache after enabling ShopChat.
AI Responding with Outdated Product Information
- Check when the knowledge base was last synced (WooCommerce → ShopChat → Knowledge Base → Last Sync).
- Click Sync Now to rebuild the index.
- Confirm the WooCommerce product has been published (draft products are not included).
Upsell Suggestions Not Appearing
- Confirm Enable Upsells is on.
- Verify products have upsell or cross-sell relationships set in WooCommerce product editor.
- If Category Scope is configured, confirm the upsell products are in the scoped categories.
ROI Data Not Recording
- Check that the
woocommerce_thankyouhook fires on order completion (some custom checkout flows skip it). - Confirm the ShopChat session cookie is not being blocked by a cookie consent plugin.
- Verify the
{prefix}shopchat_logtable exists and has write permissions.
Knowledge Base Sync Failing
- Check server PHP memory limit - syncing a large catalog requires at least 128MB.
- Confirm the AI API key has permissions to create embeddings (for OpenAI, this requires
text-embedding-3-smallmodel access). - Increase WordPress cron timeout if sync times out: add
define('WP_CRON_LOCK_TIMEOUT', 300);towp-config.php.
Check WooCommerce → ShopChat → Analytics for recent error events that can help pinpoint API or sync failures.