Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello,

    You can try this snippet. I’ve tried it on my test site and it works!

    Thread Starter cobrains

    (@cobrains)

    Hi MayKato!
    Thank you for the fast response, and it seems that my problem is solved now!

    But I have another one: sill in the related products it doesn’t seem to show the category related products, but completely random products.
    You can see this in this product: all of the products in that category (99 cents) has a different photo from the other, that has one single flower and not a pile. You can see all of 99cents’ category here.
    So you can clearly see that the related products are not so related.
    Any suggestion about how to solve this problem too?

    Thank you

    Hi,

    Related products are the ones that share the same tags or categories as the current product: https://woocommerce.com/document/related-products-up-sells-and-cross-sells/#section-3

    Looking at this product, I see that it belongs to 2 categories 99cents and Canapa Light.

    And all the products that are listed under Related products seem to be coming from either one of those categories, which is expected behavior.

    If you’d like to have more control over Related Products, you may want to consider using a plugin like this: https://www.ads-software.com/plugins/wt-woocommerce-related-products/

    Hi @cobrains

    We’ve not heard back from you in a while, so I’m marking this thread as resolved. If you have further questions, please feel free to open a new topic.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Show only in stock product in related products’ is closed to new replies.