Product display hidden quantity field
Hi,
I would like to display the quantity input of the add to cart form.
I render the add to cart form like this:
$form_id = commerce_cart_add_to_cart_form_id(array($produit->product_id));
$line_item = commerce_product_line_item_new($produit);
$line_item->data['context']['product_ids'] = array($produit->product_id);
$form = drupal_get_form($form_id, $line_item);
print render($form);
in a node--display-product.tpl.php
Moreover, I have set the display of this content type:
Widget quantity: active
and check the first checkbox ("display a widget of type text...")
But I don't understand why the quantity input is hidden !
Thanks for your help,
Adrien