A message from our CEO about the future of Stack Overflow and Stack Exchange. Read now.
2

Please add this code in your file. Youo will get what you want $currentGroupId = $this->_customerSession->getCustomer()->getGroupId(); $_salesRulecollectionByCustomerGroup = $this->_salesRuleCollectionFactory->create()->addCustomerGroupFilter($currentGroupId); $collection = $this->_customerGroupCollection->load($...


2

In your block constructor inject \Magento\SalesRule\Model\ResourceModel\Rule\CollectionFactory $salesRuleCollectionFactory, and then filter the sales rules collection by customer group id $_salesRulecollectionByCustomerGroup = $this->_salesRuleCollectionFactory->create()->addCustomerGroupFilter($currentGroupId);


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