anchor.diff:          });
           return false;
         });
  +
  +      $(function () {
  +        $("#add_variant_name.variant_autocomplete").variantAutocomplete();
  +      });
  +
       </script>
     <% end %>
   
  
positive.code:       <legend><%= t('add_related_product') %></legend>
        <div style="float:left;width:55%;margin-right:5%;">
          <%= label_tag :add_variant_name, t("name_or_sku") %>
          <%= text_field_tag :add_variant_name,  '', :class => 'fullwidth variant_autocomplete'  %>
        </div>
        <div style="float:left;width:10%;margin-right:5%;">
          <%= label_tag :add_discount, t("discount_amount") %>
  
negative.code:     <script type="text/javascript">
        var expand_variants = false;
  
        $(document).on("click","#add_related_product", function(){
          if($('#add_variant_name').val() == ''){ return false; }
          update_target = jQuery(this).attr("data-update");
  
  