WooCommerce Integration | CallMeBack Documentation
Integrate CallMeBack with your WooCommerce-powered WordPress site to capture leads and provide instant callback requests for your e-commerce business.
Get CallMeBack live on your WooCommerce site in under 5 minutes using the WordPress theme editor method.
This method adds the CallMeBack widget to all pages of your WooCommerce site.
</head>
tag</head>
tagAlways backup your theme files before making changes. Consider using a child theme for better safety.
Add the widget only to WooCommerce pages like product pages, cart, and checkout.
// Add CallMeBack to WooCommerce pages only
function add_callmeback_to_woocommerce() {
if (is_woocommerce() || is_cart() || is_checkout() || is_account_page()) {
// Your CallMeBack integration code here
echo '<script>/* Your CallMeBack code */</script>';
}
}
add_action('wp_head', 'add_callmeback_to_woocommerce');
This method ensures the widget only appears on WooCommerce pages, keeping your main site clean.
Use WooCommerce-specific hooks to place the widget in strategic locations.
// Add CallMeBack to WooCommerce product pages
function add_callmeback_to_product_pages() {
if (is_product()) {
echo '<div class="callmeback-product-widget">';
echo '<script>/* Your CallMeBack code */</script>';
echo '</div>';
}
}
add_action('woocommerce_single_product_summary', 'add_callmeback_to_product_pages', 25);
// Add to cart page
function add_callmeback_to_cart() {
if (is_cart()) {
echo '<script>/* Your CallMeBack code */</script>';
}
}
add_action('woocommerce_after_cart_table', 'add_callmeback_to_cart');
This method places the widget exactly where your customers are most likely to need assistance.
Integrate CallMeBack with WooCommerce forms like checkout and contact forms.
https://api.callmeback.com/webhook
This method integrates CallMeBack directly with your existing WooCommerce forms for seamless lead capture.
CallMeBack works with various WooCommerce form types:
You can customize the widget appearance to match your WooCommerce theme:
/* Add this to your theme's CSS */
.callmeback-widget {
/* Your custom styles here */
}
.callmeback-button {
background-color: #your-woocommerce-primary-color !important;
border-radius: 4px !important;
font-family: inherit !important;
}
/* WooCommerce specific styling */
.woocommerce .callmeback-widget {
margin: 20px 0;
}
Most WooCommerce themes use specific CSS classes and color schemes. You can match these to create a seamless integration.
If you're having trouble with your WooCommerce integration:
Create your CallMeBack account and start capturing leads today.