@param \WC_Product $product The product. * @return string The inTheCartText string. */ private function get_in_the_cart_text( $product ) { if ( $product->is_type( ProductType::GROUPED ) ) { return __( 'Added to cart', 'woocommerce' ); } return sprintf( /* translators: %s: product number. */ __( '%s in cart', 'woocommerce' ), '###' ); } /** * Get the view cart link html. * * @return string The view cart html. */ private function get_view_cart_html() { return sprintf( '', esc_url( wc_get_cart_url() ), esc_attr__( 'View cart', 'woocommerce' ), esc_html__( 'View cart', 'woocommerce' ) ); } }