• I tried this in my functions.php:
    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 ); but this does not do anything. The upsell section does not go away.

    I also tried this: remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 ); and this seems to remove the tabs section.

    Does anyone know what’s happening?

    https://wordpress.org/plugins/woocommerce/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor royho

    (@royho)

    That code should work just fine. Perhaps you need to clear your cache?

    Thread Starter wrip

    (@wrip)

    @royho, clearing cache does not help.

    I also tried changing the positions of upsell and tabs sections:

    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 15 );
    add_action( 'woocommerce_after_single_product_summary', 'woocommerce_upsell_display', 10 );
    remove_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 10 );
    add_action( 'woocommerce_after_single_product_summary', 'woocommerce_output_product_data_tabs', 15 );

    The above code adds upsell section followed by tabs followed by another upsell section. That means remove_action for upsell isn’t working. Looks like I have to use CSS to hide the upsell section.

    Plugin Contributor royho

    (@royho)

    It could very well be your theme that is causing it, so check there as well. Please note that this works perfectly fine for me on my end.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Cannot remove Upsell section from the product page’ is closed to new replies.