Adding Quantity to an add to cart page?
I can't seem to figure out how to allow the costumer to select the quantity of items they'd like to purchase on the costumer's view of the page.
I created a view that displays:
-Commerce Product: Title
-Field: Image
-Commerce Product: Add to Cart form
but there is no option to add a field to change the quantity.
I'm digging around and I think this is because the quantity field is in another database table that may need to be joined. I looked at the relationships field in the advanced menu...no help.
Does anyone know what I'm doing wrong?
Thanks!!!


Comments
This solution can help you
This solution can help you :
In product display type set quantity for field : -Commerce Product: Add to Cart form
how to set : please look at the right this row, you will see : Quantity widget: Disabled
click it to setting to enable
Provided in the formatter
If you look at the format options in views for the reference field you'll see "Display a textfield quantity widget" as an option.
Wow
Totally missed that one! Thank you so much!!! Thought i was goin crazy :)
I am really not understanding this
Whilst I understand that quantity is a not requirement in some situations, it is in many instances a fairly basic bit of functionality. Why on earth is it so difficult to enable this feature?
Please can somebody tell me how to switch it on?
Which view should I be looking for?
Qunatity
Paul:
Choose Admin > Structure > Content Types > [ your product display content type ] > Manage Display
Click the gear icon (see attached screen shot) next to the Product Reference field. Enable the checkbox for Display a textfield quantity widget on the add to cart form
Hope this helps,
John McCormick / NEAR DARK
It is rather buried where it is
It is also a nuisance that it must be configured display by display. Better surely to have quantity as a global preference at admin/commerce/config/quantity-widget leaving individual displays for overrides.
I have couple of related questions.
Change 'Quantity' to 'Length'
I see where to add the 'quantity' widget, but I actually would like it to read 'length' rather than 'quantity' since we're setting up a shop where we are selling deck cords and lines (for boats). Any thoughts on how to change the 'quantity' field for one particular product type?