WooCommerce is a WordPress plugin for e-commerce. Follow these steps to add the LiveChat widget to your WooCommerce store. The chat button will appear on all pages including product pages, cart, checkout, and shop pages.
https://www.poplivechat.com for production deploymentThis method is the safest and most persistent. The code will survive theme updates.
Go to Plugins → Add New in your WordPress admin. Search for "Insert Headers and Footers" by WPBeginner and click Install Now, then Activate.
The code below is sample code for demonstration purposes. The YOUR_COMPANY_ID shown is a placeholder.
To get your actual installation code with your Account ID, please log in to your LiveChat Dashboard
and navigate to the "Installation Code" section.
Go to Settings → Insert Headers and Footers. Paste the code below into the "Scripts in Footer" section:
<!-- PopLiveChat Widget -->
<script>
window.LiveChatWidgetConfig = { companyId: 'YOUR_COMPANY_ID' };
</script>
<link rel="stylesheet" href="https://www.poplivechat.com/css/chat-widget.css">
<script src="https://www.poplivechat.com/js/chat-widget.js"></script>
<!-- End PopLiveChat Widget -->
⚠️ Important: This is sample code. Replace YOUR_COMPANY_ID with your actual Account ID.
Get your personalized installation code from your Dashboard → Installation Code page.
Click Save to apply the changes.
For developers who prefer adding code via PHP hooks. Go to Appearance → Theme File Editor and select functions.php.
The code below is sample code for demonstration purposes. The YOUR_COMPANY_ID shown is a placeholder.
To get your actual installation code with your Account ID, please log in to your LiveChat Dashboard
and navigate to the "Installation Code" section.
Add the following code at the end of functions.php:
<?php
// Add LiveChat widget to WordPress footer
function add_livechat_widget() {
?>
<!-- PopLiveChat Widget -->
<script>
window.LiveChatWidgetConfig = { companyId: 'YOUR_COMPANY_ID' };
</script>
<link rel="stylesheet" href="https://www.poplivechat.com/css/chat-widget.css">
<script src="https://www.poplivechat.com/js/chat-widget.js"></script>
<!-- End PopLiveChat Widget -->
<?php
}
add_action('wp_footer', 'add_livechat_widget');
?>
⚠️ Important: This is sample code. Replace YOUR_COMPANY_ID with your actual Account ID.
Get your personalized installation code from your Dashboard → Installation Code page.
Note: If you update your theme, code added to functions.php will be lost. Use a Child Theme to prevent this.
Chat widget not appearing?
Widget not showing on checkout page?
If you encounter any issues during installation, please contact our support team:
📧 Email: contact@items7.com
🏠 Access Dashboard |
All Installation Guides