Hi Team,
I want to get all the custom field from tool set from one time in woo commerce. Meanwhile when I will create the new field it will automatically show on the frontend .
Please take a look on the screenshot .
hidden link
Is there a similar example that we can see?
yeah please take a look on the below screenshot .
hidden link
What is the link to your site?
hidden link
Please share the Idea how we can get it in the PHP . Is there any method in which we can get all the custom field in one time and show in the frontend .
Thanks
Hello and thank you for contacting the Toolset support.
I am really sorry, but I am not sure to understand your request.
Are you trying to display the values of the custom fields in the frontend using PHP? If yes, you can use the types_render_field function. Check this article https://toolset.com/documentation/customizing-sites-using-php/functions/
You can also use the WordPress function get_post_meta. Just remember to prefix your field with "wpcf-".
https://developer.wordpress.org/reference/functions/get_post_meta/
If not, please elaborate more on your question.
I want to get all the custom field on a group with php code .
Please take a look below screenshot and let me know how to get all the field in one time using php code .
hidden link
hidden link
I want to get all the thing from above screenshot input , select as well as checkbox .
I want to use all these field in the homepage of website using form .
Please let me know the way so I can use the same function i already mentioned all and everything.
I am really sorry, but I still do not understand what do you mean?
What do you mean by using the fields in a form on the homepage?
Does a Toolset form not enough for the use case?
Are you trying to get the values of the fields for a post?
Could you please elaborate a little more on your question so I can better understand it?
Can you please take a look on the above discussion screenshot which I mention in the chat .
I could not find any previous chat with your account, and our systems team was not able to find it too. Have you created the chat with the same account(eclantechnologies@etc...).
Would it be possible to provide more details and explain what you are trying to do?
I can see the fields group on the screenshot but I don't understand what you would try to do.
What do you mean by using the fields in a form on the homepage?
Is a Toolset form not enough for the use case?
Are you trying to get the values of the fields for a post? Or would you like to create a form for submitting new posts? Or a form for a search page?
I am sure, you will agree, that if we don't understand your request well, we'll be helpless.
Let me explain to you again.
In the tool set I created a custom field group and in which i have 3 custom fields.
please take a look on the screenshot.
hidden link
when we open this one. it will have 3 fields.
hidden link
these are showing in the woo commerce subscription page look like as below .
hidden link
same form i want to call on the below page .can you please let me know the shortcode if you have any .
hidden link
I hope to show this form here and want to use it here with specific subscription .
Thanks,
Thank you for your feedback. I think I understand now. So, you want to put the custom fields as a form in the subscription page under the account page, right?
The account and subscription pages are managed by WooCommerce, check the following articles on how to customize the account page and check the subscription support team to ask how to extend the subscription page:
- https://woocommerce.com/products/my-account-page-editor/
- hidden link
Then, you can either create your own form and PHP logic to save values into the subscription custom fields.
Or, you can build a Toolset form, and put it inside the subscription page using the do_shortcode function. To get the full shortcode of the form, try to add it in a Toolset Fields&Text block on a test page and switch to HTML on the block to copy the whole shortcode.