Hi,
I have to connect some accessories to some products.
Accessories of a product must be displayed on the product page, so you may add them to your cart.
Can I do all this with ACF Pro?
Thanks a lot.
HI @elenacabo85
Yes this can easily be achieved with ACF.
You will only need to create some custom fields via the ACF admin UI and then call the values within the Woocommerce filter responsible for displaying content on the product page. For info on this filter, you will need to consult the Woocommerce docs.
Here is a beginner’s guide on displaying ACF values on your theme: http://www.advancedcustomfields.com/resources/displaying-custom-field-values-in-your-theme/
This reply has been marked as private.
It is adding the same drop-down item many times into the cart, but I want only 1 quantity to add to cart. It seems that add_to_cart function runs many times.