2

Here is the full customer group form file Magento\Customer\Block\Adminhtml\Group\Edit\Form with Rule fieldset. You should override this to your custom module and change according to your need. <?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Customer\Block\Adminhtml\Group\Edit; ...


2

If you look in Magento\SalesRule\Model\Utility which can be found at vendor/magento/module-sales-rule/Model/Utility.php. From what I can find canProcessRule() is where it starts. It will then mark the rule as invalid when certain conditions aren't met.


1

You can achieve this by using below code: namespace Vendor\ModuleName\Controller\Index; use Magento\Sales\Model\ResourceModel\Order\CollectionFactory; use Magento\SalesRule\Model\RuleFactory; class YOURClass extends \Magento\Framework\App\Action\Action { /** * @var OrderCollection */ private $orderCollection; /** * @var ...


Only top voted, non community-wiki answers of a minimum length are eligible