How do I modify Merchandised Page headers?

Tagalys allows the inclusion of arbitrary variables and multiple banners for each merchandised page, depending on your subscription plan. By default, Tagalys renders banners uploaded as a carousel above the merchandised page's heading. You can override this header using a template. In the function that renders the template, the api_response variable gives you access to all the variables and banners uploaded in the Tagalys Dashboard for the specific merchandised page.

$.fn.tagalys_templates = $.fn.tagalys_templates || {};
$.fn.tagalys_templates.mpage_header = function(widget, api_response) {
  // here you have access to `api_response.variables` and `api_response.banners`
  return ...;