Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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?
Comment | File | Size | Author |
---|---|---|---|
#10 | Blue Jeans-Commerce Kickstart.png | 145.27 KB | minakshiPh |
#7 | Bag Commerce Kickstart.png | 268.98 KB | minakshiPh |
Comments
Comment #2
shruti1803 CreditAttribution: shruti1803 at Iksula commentedHi 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.
Comment #3
minakshiPh CreditAttribution: minakshiPh at Iksula commentedIts working for me.. Thanks Shruti!!
Comment #4
AntiNSA CreditAttribution: AntiNSA commentedAbsolutely 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?
Comment #5
AntiNSA CreditAttribution: AntiNSA commentedComment #6
AntiNSA CreditAttribution: AntiNSA commentedComment #7
minakshiPh CreditAttribution: minakshiPh at Iksula commentedAs 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.
Comment #8
minakshiPh CreditAttribution: minakshiPh at Iksula commentedComment #9
AntiNSA CreditAttribution: AntiNSA commentedPerhaps 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.
Comment #10
minakshiPh CreditAttribution: minakshiPh at Iksula commentedAs 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!
Comment #11
AntiNSA CreditAttribution: AntiNSA commentedI 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.
Comment #12
rszrama CreditAttribution: rszrama at Centarro commentedCommerce Kickstart 2.x is in minimal maintenance mode. Closing out all outdated tickets now to maintain focus on Commerce Kickstart 3.x.