Home › Forums › General Issues › ACF and Woocomerce Surcharge › Reply To: ACF and Woocomerce Surcharge
Where is the field located/associated? On the product?
If it is then you will need to supply the product ID get_field(
surcharge, $product->ID);
The question you have to answer is how do you get the product ID inside of this WC filter?
If the field is located somewhere else then you will also need to supply the correct ID for ACF to find the field? If not on the product then where is the field?
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!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.