Home › Forums › WoodMart support forum › How to set quantity presets ?
How to set quantity presets ?
- This topic has 5 replies, 2 voices, and was last updated 2 days, 12 hours ago by
Aizaz Imtiaz Awan.
-
AuthorPosts
-
October 4, 2025 at 5:44 pm #689190
MaxorParticipantHi
i would like to set quantity presets 10 / 20 / 30
depending on products or categories
how can i do that
see example in private url
thank you
October 6, 2025 at 8:55 am #689231
Aizaz Imtiaz AwanKeymasterHello,
I’ve checked the example link you shared. You can achieve the same setup in WooCommerce with the following steps:
1. Create a “Quantity” attribute:
Navigate to Products > Attributes in your WordPress dashboard > Add a new attribute (for example, “Quantity”) > Add your desired values such as 10 | 20 | 30.
2. Assign it to the product:
Edit the product where you want this feature > In the Attributes tab, select “Quantity” and choose the values you want to use > Mark it as Used for variations and save.
3. Create variations:
In the Variations tab, click “Create variations from all attributes > You’ll now be able to set a different price for each quantity value .
10 pcs → $20
20 pcs → $35
30 pcs → $45This way, the customer can select a quantity preset like 10 / 20 / 30 directly from the product page, similar to your example link.
Best Regards,
October 11, 2025 at 1:24 pm #690360
MaxorParticipantOk thank you but how can it be linked to quantities in woocommerce
i mean if the client seclect the attribute “10 pcs → $20”, how can it automatically select quantity = 10 ?thank you
October 11, 2025 at 3:03 pm #690379
Aizaz Imtiaz AwanKeymasterHello,
By default, WooCommerce doesn’t automatically link variation attributes like 10 pcs to the actual quantity input field; they work independently. The “10 pcs > $20” variation simply represents a pricing option for that quantity, but it won’t automatically set the quantity field to 10 when selected.
Best Regards,
October 11, 2025 at 6:08 pm #690395
MaxorParticipantok then this solution cannot work then ?
October 13, 2025 at 9:02 am #690509
Aizaz Imtiaz AwanKeymasterHello,
Yes, with WooCommerce’s default functionality, this specific setup won’t automatically adjust the quantity field when a variation like “10 pcs” is selected. The variation only represents a pricing option and doesn’t control the quantity input directly.
If you want the quantity field to update automatically based on the selected variation, You need to find a third-party plugin to achieve more functionality that best suits you.
Best Regards,
-
AuthorPosts
- You must be logged in to create new topics. Login / Register