Hiding non-member message in cart and checkout
-
I want to hide the message that displays for non-members in my cart and checkout:
This item is discounted for members. Log in to claim it.
I found this code in class-wc-memberships-frontend.php:
/** * Get member login message * * @since 1.0.0 * @return string */ public function get_member_login_message() { if ( count( $this->get_cart_items_with_member_discounts() ) > 1 ) { $message = __( 'Some items in you cart are discounted for members. %sLog in%s to claim them.' ); } else if ( count( WC()->cart->get_cart() ) > 1 ) { $message = __( "An item in your cart is discounted for members. %sLog in%s to claim it." ); } else { $message = __( "This item is discounted for members. %sLog in%s to claim it." ); } return $message; }
Can I hide it using my child theme functions.php?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘Hiding non-member message in cart and checkout’ is closed to new replies.