Archived topic
Woocommerce show content after related post
5 replies · Started by Daniele on September 21, 2020
Hi guys,
I'm creating fields with ACF pro and I need to output some fields to the single product.
Precisely I need to output fields after "woocommerce_after_single_product_summary" hook, right before the related products.
Could you tell me in your opinion which is the best practice to add these fields?
I'm trying to edit content-single-product.php but the related products came always first
thanks
Hi there,
That hook is included in the hook element module:
https://docs.generatepress.com/article/hooks-element-overview/
https://www.screencast.com/t/gdfLG5OBt0ks
Try setting the priority higher like 2.
If that doesn't work then you will need to check with WooCoommerce' support team.
Thanks!
It worked?
Yes I tried with some dummy text, Now I will try with php to add my ACF
Do you think the best practice is to use hooks or templates?
I would say hooks :)