Could you please clarify your intention? Did you want to insert the custom field values to the products you have or did you want to show the values on the front end?
If you want to insert the value, I’m afraid there’s no easy way to automate it because ACF doesn’t know what you want to insert for a particular product.
If you want to show the values, please take a look at this page: https://www.advancedcustomfields.com/resources/displaying-custom-field-values-in-your-theme/.
The ID for the_field() function is not the group ID, but your post/product ID. To get it, please take a look at this page: http://stackoverflow.com/questions/27385920/woocommerce-get-current-product-id-or-title-within-sidebar.
I hope this helps!
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
© 2023 Advanced Custom Fields.