title: Ajax request to override controller in prestashop 1.6
body: <p>outside the conventional methods of ajax requests from a prestashop module, I would like to use a ajax method from product.js and retrieve data from an override controller.</p>
  
  <p>my function in product.js :</p>
  
  <pre><code>function attrReference(ref){
      $.ajax({
          url: baseUri,
          async: true,
          cache: false,
          type:'GET',
          dataType : "json",
          headers: { "cache-control": "no-cache" },
          data: {
                  controller :'product',
                  action :'attrReference',
                  token : token,
                  ajax: 1,
                  ref : ref
          },
          success: function(data){
  
          }
      });
  }
  </code></pre>
  
  <p>My override controller product :</p>
  
  <p>class ProductController extends ProductControllerCore{</p>
  
  <pre><code>public function displayAjaxAttrReference(){
     echo '&lt;pre style="background:yellow"&gt;';
     print_r($_GET);
     echo '&lt;/pre&gt;';
     exit;
  }
  </code></pre>
  
  <p>}</p>
  
  <p>From the documentation, i use displayAjax to recover data, unless this is not the right method, I tried many attempts but none are correct.</p>
  
  <p>Do you have any idea?</p>