Hello Summer Sale!
Exclusive season-opening discount on TheGem theme.
Limited time offer.

Okay
  Public Ticket #2534394
How to remove "You may be interested in" section
Closed

Comments

  • Vijay-Ananth started the conversation

    Hello, 

    In my woocommerce single product page, there sections like "You may be interested in" and " New Products, Top products, On Sale". 

    I would like to know how i can add/remove these sections. Thanks for your help .

    Vijay

  •  7,280
    Oliver replied

    Hi,

    Add this code to the functions.php of the child theme:

    function thegem_child_woocommerce_output_related_products() {
        remove_action('thegem_woocommerce_after_single_product', 'woocommerce_output_related_products', 5);
    }
    add_action('init', 'thegem_child_woocommerce_output_related_products');
    

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver