anchor.diff:    $('#product-show select').prop('selectedIndex', indexId);*/
   
     $('#product-show select').change(function(){
  -    var id = $(this).val();
  +    var price = $(this).val();
  +
  +    $('#product-show #price').text(price + " €");
  +
  +    var id = $(this).attr('id');
       //window.location.href = "/products/<%= @product.id %>/variants/" + id; 
       $("#add_cart_f").attr("action","/cart/add/" + id);
       $("#add_wishlist_f").attr("action","/wishlist/add/" + id);
  
positive.code: 
    $("#add_cart_bt").click(function(){
      if(parseInt($("#add_cart_f #amount").val())>0){
        $("#add_cart_f").submit();
        alert("Adicionado ao carrinho");
      } 
      else alert("Quantidade inferior a 0.");
    });
  
    $("#add_wishlist_bt").click(function(){
      $("#add_wishlist_f").submit();
      alert("Adicionado ao carrinho");
    });
  
  });
  
negative.code:       <p><%= @product.rating %></p>
      </div>
      <div class="span5">
        <h2 id="price"><%= @variant.price %> €</h2>
      </div>
    </header>
  
  