Am I missing something? I am having difficulty finding the quantity field in lists of existing fields to add to my custom product variations.... is there a setting somewhere in which you can select which content type quantity can be enabled on?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

AntiNSA created an issue. See original summary.

shruti1803’s picture

Status: Active » Needs review

Hi AntiNSA,

You have to add quantity field for product variation types. Go to admin/commerce/config/product-variation-types. Then click on "manage fields" of any variation types. Then add new field "Quantity" of "Integer" data type.
When you go to node/add/[variation type name] page, you will find the "Quantity" field.

minakshiPh’s picture

Status: Needs review » Reviewed & tested by the community

Its working for me.. Thanks Shruti!!

AntiNSA’s picture

Absolutely not working. If you see "Enter Quantity " on the demo product variation, it allows you to select the quantity of the product which goes into the shopping cart. This doesnt happen on the custom created products/variations. I am not looking toward creating a field which can be only edited by the site admin when editing the node, I am looking for a field like on the demo variation which allows you to update the quantity of pieces you wish to buy before you add it to the shopping cart. So, I wonder... how is it working for you?

AntiNSA’s picture

Status: Reviewed & tested by the community » Needs work
AntiNSA’s picture

Title: Unable to find quantity field to add to variations on producs/content? » Unable to add user adjustable quantity field on product variations as done in demo
minakshiPh’s picture

FileSize
268.98 KB

As per #2 it will just create the "Quantity" field which is handled by the admin and that is working for me.

I followed your steps and created new product and am able to update the quantity of my product before adding it to the shopping cart. Kindly review the attached screen shot for the same.

Requires more steps to re-generate your issue.

minakshiPh’s picture

Status: Needs work » Needs review
AntiNSA’s picture

Perhaps it works for you because you are using a pre-existing content type to add a new variety. I created an entire new content type for a new product, and added the field to both the variation and the content type. I only have a field which can be edited when editing the node.

minakshiPh’s picture

As mentioned, I have created new content type and added "Product variations" field into it through "manage fields". After that created new product variation type for the same and added fields to it like images, color etc. through "manage fields". Then created a new product (i.e. by clicking on "Add a Product" link) on which am able to lookout newly created product variation type.
Thats all is required..!
Please review attached screen shot for the same.

Thanks!

AntiNSA’s picture

I have followed the exact same process, using the stable release, and only have a field which is like every other text field.

On content variety type I have set the field as :

field_quantity Integer Text field

Now, when I create a product variation I can enter numbers into that field as I am creating the variation..

I do not however, see a selectable box with numbers as in your picture.

Under manage display of variety content type,Quantity field is set to visible, default, 1234
Display with prefix and suffix..

I am using a custom collection and category taxonomy.

There is no selectable box for customers to update quantity on the node:Full Content page.

rszrama’s picture

Status: Needs review » Closed (outdated)

Commerce Kickstart 2.x is in minimal maintenance mode. Closing out all outdated tickets now to maintain focus on Commerce Kickstart 3.x.