How to get all coupon code which can apply on cart page in magento 2
$getRules = $objectManager->create('Magento\SalesRule\Model\Rule')->getCollection();
using the above code i get the all list of coupon codes. I want to display coupon code which can apply
Best Answer
There is already a full fledged free extension available on magento's marketplace and github
magento: https://marketplace.magento.com/ambab-module-couponlist.html
github: https://github.com/ambab-infotech/couponlist
This might help someone.