Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • @mikejolley I know this thread’s a few months old at this point, but perhaps you can help me out. The solution on that link isn’t working for me. Do you know if these snippets work in WC 2.4.12?

    /**
     * Does not filter related products by tag
     */
    add_filter( 'woocommerce_product_related_posts_relate_by_tag', '__return_false' );
    
    /**
     * Does not filter related products by category
     */
    add_filter( 'woocommerce_product_related_posts_relate_by_category', '__return_false' );

    My end goal will be to show related products that share a tag with the one being viewed, but filter out any that have a specific tag, “Discontinued”. That way when you view Widget A 2.0, you also see Widget B 2.0 but NOT Widget B 1.0.

    Thread Starter wastubbs

    (@wastubbs)

    Thank you, Guido! I think between your helpful suggestion and a little PHP of my own I should be able accomplish what I’m after.

    I’ll start with this Login Redirct plugin and see how far it takes me.

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