Is it possible to add some custom fields to products which buyers fill? So this would be kind of toolset form+woocommerce product.
The buyer should be able to give some measures in the purchase process. But is this possible with Toolset custom fields for WooCommerce?
Hello,
I don't think it is a good idea to let users to add fields into product posts, it will require user to edit your product posts.
As a workaround, you can use a custom post type to store those custom fields. For example:
1) Create a custom post type "my-cpt", setup custom fields in this post type.
https://toolset.com/documentation/user-guides/custom-content/create-a-custom-post-type/
https://toolset.com/documentation/user-guides/custom-content/using-custom-fields/
2) Setup one-to-many relationship between post type "Product" and "my-cpt"
https://toolset.com/documentation/post-relationships/
3) Follow our document to setup a post form for creating new "my-cpt", and charge users when they submit the form:
https://toolset.com/documentation/user-guides/front-end-forms/using-cred-commerce-to-add-payments-to-forms/
4) Setup some custom PHP codes, after user complete Woocommerce order, use action hook "cred_commerce_after_order_completed" to trigger a PHP function
https://toolset.com/documentation/programmer-reference/cred-commerce-api/#cred_commerce_after_order_completed
in this PHP function, relate the new "my-cpt" post with the "Product" post
https://toolset.com/documentation/customizing-sites-using-php/post-relationships-api/#toolset_connect_posts
5) So in a single "Product" post, you can display related "my-cpt" posts:
https://toolset.com/documentation/post-relationships/how-to-display-related-posts-with-toolset/#displaying-many-related-items