• Resolved SSmeredith

    (@ssmeredith)


    Hello!

    Since we’re using a table for our “donation” products, I am testing out functions to remove the product links in cart and checkout so customer bypasses the Shop and product page altogether.

    I am using just some basic functions but they don’t seem to be working.

    add_filter( ‘woocommerce_order_item_permalink’, ‘__return_false’ );
    add_filter( ‘woocommerce_cart_item_permalink’, ‘__return_null’ );

    Is it possible the plugin is overriding these function snippets?

    Thanks!

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author flinnn

    (@flinnn)

    No, the plugin does not use these hooks. Maybe it works with a higher priority?

    add_filter( ‘woocommerce_order_item_permalink’, ‘__return_false’, 99 );
    add_filter( ‘woocommerce_cart_item_permalink’, ‘__return_null’, 99 );

    Thread Starter SSmeredith

    (@ssmeredith)

    Must be something else then, that’s not working. But thank you, as always for your help! 🙂

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Looking to disable WC product links’ is closed to new replies.