• Resolved luxworx

    (@luxworx)


    Is it possible to display related product only form the last category.
    So my product have categories: Grandparent > Parent > Child. And I want to display related products only form Child category. Now the related categories display products form Grandparent and Parent and of course Child. But I want to display only form Child category.

    I want to set it up globally for all my products (I have 10000 products). And as well set globally related by atribute? Is it possible?

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

    (@webtoffeesupport)

    Hi @luxworx,

    Greetings from WebToffee Support!

    Thank you for reaching out to us regarding the requirement you are seeking. Regarding your request to display related products only from the Child category, you can achieve this by using a custom code snippet. However, please note that this snippet will only work if you choose ‘Display related products from option’ as ‘Category’. You can copy the code snippet provided in the article here and paste it into your active theme’s functions.php file (WordPress Dashboard > Appearance > Theme Editor > functions.php), or you can use a Code Snippet plugin to do that for you.

    As for setting up global related products by attribute, unfortunately, the Related Products for WooCommerce plugin doesn’t provide a built-in option for this feature. Currently, the plugin only provides the provision to display related products globally based on category and tag.

    Feel free to reach out if you need any further assistance or have any other questions.

    Plugin Support WebToffee Support

    (@webtoffeesupport)

    Hi @luxworx,

    It has been quite some time since our last communication, so we will mark this thread as resolved. Please open a new thread if you are still facing issues or have questions that you need us to answer.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Related products only from last category’ is closed to new replies.