Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1100781
    jonecky816739
    Participant

    Dear Sir.

    Just managed to succeed with my struggling to include enquiry Contact Form after single product summary on Woocommerce Product Page, it was quite simple after all. I just made a form first, then function and finally included that function with add_action to “woocommerce_after_single_product_summary”.

    Now, next thing I want to get rid off is related products, which is on bottom of page under product tabs. I found out that the function “x_woocommerce_output_related_products” is added to “woocommerce_after_single_product_summary” on line 387 in file woocommerce.php (path x/framework/functions/global/plugins/) and so I thought I could simply remove it by adding following line to my child theme functions.php:

    remove_action( 'woocommerce_after_single_product_summary', 'x_woocommerce_output_related_products');

    When I do this, nothing happens but if I comment the line 387 under X, related products is disabled but this is not a solution since everything should be done thru child theme. I also tried to make exact same path (framework/functions/global/plugins/) under my child theme and locate woocommerce.php there but still no effect.

    I know I could hide the related products with following CSS but I don’t want them even loaded hidden:

    .woocommerce .related, .woocommerce .cross-sells {
        display: none !important;
    }
    

    Can you help me ?

    #1100795
    Christian
    Moderator

    Hey there,

    No need to code for that as you can turn that off in Appearance > Customize > WooCommerce (see attachment).

    Thanks.

    #1100827
    jonecky816739
    Participant

    Stupid me! I searched and searched under WooCommerce settings how to turn on/off tabs and finally it hit me in form of your example image 😀

    THX!!

    #1100848
    Thai
    Moderator

    You’re most welcome 🙂

    If you need anything else please let us know.

  • <script> jQuery(function($){ $("#no-reply-1100781 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>