Help with a filter – removing chained product from cart
-
I am trying to hide chained products from appearing on the cart page, after reading this doc from woocommerce; I am stuck on how to make this filter… The Option name is sa_show_chained_items_to_customer and I just need the default changed from Yes to No…
The code I made:
add_filter( 'sa_show_chained_items_to_customer', 'is_show_chained_items' ); function is_show_chained_items() { $is_show = get_option( 'sa_show_chained_items_to_customer', 'no' ); if ( $is_show == 'yes' ) { return false; } else { return true; } }
Any help would be appreciated.
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Help with a filter – removing chained product from cart’ is closed to new replies.