Custom fields for WooCommerce product variations instead of parent products
-
We are using WooCommerce with the WoodMart theme.
We need to add custom fields at the individual product variation level rather than only at the parent product level.
For example, a product may have multiple size variations, and each variation needs its own custom field values.
Could you advise on the best way to enable custom fields for product variations? We are happy to manage the field names and values ourselves once this functionality is available.
Ideally, the solution should be update-safe and not require modifications to the theme files.
Hello,
You can add custom data directly to each variation using the Product Data > Variations section. When you expand a variation (for example, Size: M, L, XL), WooCommerce allows you to store custom meta data per variation. This is the safest update-friendly method because it uses WooCommerce’s native structure.
If you need more advanced fields (textareas, dropdowns, repeaters, etc.), you need to find a plugin to achieve more functionality that best suits you.
Best Regards