[Resolved] Woocommerce show content after related post

Home Forums Support [Resolved] Woocommerce show content after related post

Home Forums Support Woocommerce show content after related post

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1452233
    Daniele

    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

    #1452293
    Leo
    Staff
    Customer Support

    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.

    #1452463
    Daniele

    Thanks!

    #1452470
    Leo
    Staff
    Customer Support

    It worked?

    #1452488
    Daniele

    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?

    #1452491
    Leo
    Staff
    Customer Support

    I would say hooks 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.