• Resolved jacobx

    (@jacobx)


    I have set the product card using the theme so that related products are at the very top of the theme, but this plugin also adds the same thing to the bottom of the page that I want to remove, how do I do that?

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @jacobx,

    Thank you for reaching out.

    The plugin includes a related products widget that is displayed by default. If you’d like to remove this from the bottom of the product page, you can enable the “Disable recommendations” option from the plugin settings. Please note that enabling this will remove the related products widget added by our plugin site-wide.

    To ensure we understand your requirement correctly—are you looking to completely disable the plugin’s related products section across all product pages, or just prevent it from appearing on specific parts of the layout?

    Your clarification will help us guide you better.

    Thread Starter jacobx

    (@jacobx)

    Hi, thanks for the quick response. I have the option to add a widget in the theme that shows related products and it has an appropriately adapted appearance. However, the plugin adds related products at the very bottom of the product card, which I would like to disable while maintaining this theme widget so that it works. However, when I checked Disable recommendation in the plugin, this widget was also removed from the theme.

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @jacobx,

    Thanks for checking that!

    If disabling the related products option didn’t remove the section, could you please share the URL of the product page where it’s still showing? That’ll help us inspect the page and provide a code snippet to hide it if needed.

    Thread Starter jacobx

    (@jacobx)

    The site is currently being rebuilt, but I will send the code and the code that helped me hide this widget for now.

      document.addEventListener("DOMContentLoaded", function () {
    const relatedElements = document.querySelectorAll(".related.wt-related-products");
    if (relatedElements.length > 1) {
    relatedElements[1].style.display = "none";
    }
    });

    this 1 code is from your plugin, it adds such a section at the end of the page, but I want only the code that is visible in the second picture to remain, I have previously disabled this second element on the page with the JS code, but maybe there is a better solution

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @jacobx,

    Thanks for sharing the code snippet.

    The solution you mentioned is actually good. If it’s not working as expected or if you’re facing any layout or functionality issues, feel free to share the following so we can take a closer look:

    1. Your site URL
    2. Your WooCommerce system status report WooCommerce → Status → Get system report → Copy for support

    You can submit both securely via this link.

    Thread Starter jacobx

    (@jacobx)

    This solution that I proposed can stay, I thought that you had a similar situation. If I could give something from myself, it would be a proposal to add a field in the settings so that the plugin does not show up on the product card but only fulfills its functionality in terms of appropriate selection of related products.

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @jacobx,

    Thanks for your reply.

    By default, the Related Products for WooCommerce plugin displays related products on the product page below the description, following WooCommerce’s native layout structure.

    In your case, it seems the related products are appearing at the top of the product page, which is likely due to how your theme handles product page layout. Some themes reposition or override WooCommerce hooks, which can change where elements like related products are displayed.

    If you’d like to adjust the position, we’d be happy to help point you in the right direction if you can share your site URL and system status report via this link.

Viewing 7 replies - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.