• With the update to WC 3.0, the code to remove Related Products from Single Product pages no longer works.

    Please advise solution for removing Related Products. I already have hand-selected “You May Also Like” products for these pages.

    Thanks for your help…

    RMT

Viewing 3 replies - 1 through 3 (of 3 total)
  • Rynald0s

    (@rynald0s)

    Automattic Happiness Engineer

    Hi there!

    Here you go:

    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );

    Cheers!

    Thread Starter thetasound

    (@thetasound)

    Uh… thanks for the code but that just broke the site and I don’t have ftp access at the moment.

    The problem is, and I didn’t spot this right away, the code in the e-mail had bee modified to:

    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_related_products', 20 );

    That’s what I pasted in to the functions.php (child theme).

    I then checked this post and saw that the “&#039” are not part of the code!

    Plugin Contributor Mike Jolley (a11n)

    (@mikejolley)

    Never apply custom code without FTP. Only takes one typo to bring it down… the code given looks fine to me though so may have been a copy/paste formatting mistake or bad quote chars.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘WC 3.0 – Related Products Are Back’ is closed to new replies.