Hidding product’s shipment info: weight and dimensions

5 replies2 participantsUpdated by Jack Richardson

  • Avatar: javi_web
    javi_web
    Participant

    Hello,
    I have added this code to my theme child functions.php file, in order to hide weight and dimensions from the product detail Info tab.

    add_filter( ‘woocommerce_product_enable_dimensions_display’, ‘__return_false’ );

    It didn’t work. Could you tell me how to do it?

    Regards,
    Javi.

    Files is visible for topic creator and
    support staff only.

    5 Answers

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @javi_web,

    Upon reviewing the code in the WooCommerce plugin, we were unable to locate the filter you used. However, there is another filter, ‘wc_product_enable_dimensions_display’, that you might consider using (https://prnt.sc/UZfSAunObSXu). Please try adding the snippet add_filter('wc_product_enable_dimensions_display', '__return_false'); in place of your current code. If the content continues to be displayed, kindly provide us with temporary wp-admin access and the URL of any product exhibiting this data in the product tabs.

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Avatar: javi_web
    javi_web
    Participant

    Hello Jack,
    Your snippet didn’t work neither.
    Please, info needed in private content.

    Regards,
    Javi

    Please contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @javi_web,

    We hope this message finds you well.

    We attempted to log in to your website and also tried accessing it using a VPN. However, we are still encountering restrictions with the following message: “Your access to this site has been temporarily limited by the site owner.”

    Best regards,
    Jack Richardson
    The 8Theme’s Team

    Files is visible for topic creator and
    support staff only.
    Avatar: javi_web
    javi_web
    Participant

    Hi,
    Please, provide me your IP address to enable it in the whitelist.

    Regards,
    Javi.

    Avatar: Jack Richardson
    Jack Richardson
    Support staff

    Hello @javi_web,

    Please, check private content.

    Kind regards, Jack Richardson
    The 8theme’s team

    Please contact administrator
    for this information.

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register