WC Fields Factory is a wordpress plugin, which will help you to customize and extend your woocommerce products. by using this plugin you can add 11 different types fields to your woocommerce product page ( both front end as well as back end wp-admin product screen ).
It gives you vast amount of possibilities to customize your woocommerce product order flow, you can collect addiditional informations from customer while adding products to cart, add validation to each fields, display customized error messages, display those additonal information on Cart, Checkout, Order and Emails.
You can also assign fields to particular product, product categories, product tags and product types.
Log in to wp-admin and navigate to “Plugins” click “Add New” button and enter “WC Fields Factory” in the search field, Once you locate the plugin click “install” button.
Download it from here, Unzip it and upload contents of the plugin to your /wp-content/plugins/ directory, Activate the plugin through the ‘Plugins’ menu in WordPress Admin.
Wordpress 3.5 (or) above
Woocommerce 2.2 (or) above
How it works
After you activate WC Fields Factory, you will find a menu called “Fields Factory” in your wp-admin, Just go there and click the “Add Product Field” to create your first WC Product Fields Group.
The WC Fields Factory post editing screen contains 4 sections.
- Product Fields Group Title
- Product Fields Listing
- Fields Factory
Give a title to your Product Fields Group.
Use Fields Factory section to add custom fields. you can add as much as fields you want. You can also rearrange the order of fields by drag and drop.
Use Condition section to add rules for this Product Fields Group, like you can assign this fields group to a particular product, category, tag, product type. You can add as much as rules you want, and more than one rules can be combined with AND (or) OR logic.
Click “Publish” button, that’s it, your fields group will be added to all woocommerce products ( of course whichever meets those rules you have added ).
As of V1.2.1 all your custom fields are single set, eg. each product will have single set of custom fields ( added by you ), when customer adding a product to cart these custom fields also will get added as custom meta. What if customer add a product with 2 or more quantity, that time also only single set of custom fields added.
This limitation is over now. From V1.2.2 you have an Option called Fields Cloning you can enable this option from WC Fields Factory Setting page ( Fields Factory -> Settings ).
So whenever customer increase or decrease product quantity, they will have same set of fields as with quantity ( fields set per product quantity )
Right now WC Fields Factory Support 12 Field Types
- Checkbox Group
- Radio Button Group
- Select Box
- Date Picker
- Color Picker
Here is a complete guide of WC Fields Factory’s API wccpf api
If you wanted to change the way of rendering custom fields on product page read this article
If you wanted to achieve the same functionality without using any plugins, I have an in depth article adding custom fields without plugins