I appreciate the help! Eventually I found out that using SessionFactory instead of Session worked out:
use Magento\Customer\Model\SessionFactory as Session;
class FeaturedProducts extends Template implements BlockInterface
* @var Session
The code for the part you're looking for is located in the sales_order_create_index.xml file in the layout folder of the backend in module-sales in a vendor folder.
If you want to completely remove Group dropdown and email field then you need to modify ( DO NOT directly modify the vendor file, use overriding mechanism by module or theme ):
Check if your module is enable: bin/magento module:status
Add the sequence (Magento_Sales) like explained here: https://devdocs.magento.com/guides/v2.4/extension-dev-guide/build/module-load-order.html
Make sure you run bin/magento setup:di:compile
If you always want to use General and you are pretty certain that your users don't do bad things the easiest way is just to hide it via CSS.
If you want to "properly" remove it you have to
A) remove it from the ui_component
B) extend the functionality to auto set the group as it as a required value.
This will override and/or extend a lot of core ...
Create WishlistProducts block
To get Wishlist Products Collection, firstly, you need to create a WishlistProducts block. To do that, follow the path Vendor/ModuleName/Block/WishlistProducts.php and add the below code: