нашел, вдруг кому понадобиться
получение ID друзей
$friend = ( bp_displayed_user_id() ) ? bp_displayed_user_id() : bp_loggedin_user_id();
$friend_ids = friends_get_friend_user_ids( $friend );
получение корзины друга
$saved_cart = get_user_meta( (ID друга), '_woocommerce_persistent_cart', true );
$cart = $saved_cart['cart'];