Add inline widget to product display
You could probably do something like this:


Add hidden form element with product SKU
Read the SKU in a JavaScript Drupal.behavior


The key is making the SKU available in the DOM and using Drupal.behaviors to read it, as they run / are reattached after the AJAX form update.

i.e: 

/**
 * Implements hook_form_FORM_ID_alter
 */
function MYMODULE_form_commerce_cart_add_to_cart_form_alter(&amp;$form, &amp;$form_state){

  // Add a hidden SKU element to the add to cart form
  if (isset($form_state['default_product']-&gt;sku)){
    $form['product_sku'] = array(
      '#type' =&gt; 'hidden',
      '#value' =&gt; $form_state['default_product']-&gt;sku,
    );
  }

}


Then in your JS file

(function ($) {

  Drupal.behaviors.pswtb_loader = {
    attach: function (context, settings) {
     if($('input[name=product_sku]').length &gt; 0){
       pswtb.loader.show({
         widgetConfigurationId: "3a4acc53-216e-48da-8e92-bfaeb58168a7", 
         sku: "US_" +  $('input[name=product_sku]').val();
       }); 
     }
    }
  };

})(jQuery);