IntegrationWooCommerce Integration

WooCommerce Integration Guide

Compatibility

  • WordPress 5.5+
  • WooCommerce 4.0+
  • PHP 7.4+

Integration Methods

Obtain Partner ID

Retrieve your unique Calnita Partner ID from dashboard.

Choose Integration Approach

Select between theme modification or plugin method.

Configure Widget Script

<?php
// functions.php
function calnita_widget_enqueue() {
    $partner_id = get_option('calnita_partner_id');
    
    wp_enqueue_script(
        'calnita-widget', 
        "https://plugin.calnita.com/api/widget?partnerId={$partner_id}",
        [],
        '1.0',
        true
    );
}
add_action('wp_enqueue_scripts', 'calnita_widget_enqueue');