How to get shopping cart rule information? I need to change/add custom logic when the cart rule apply in the shopping cart page.

1 Answer 1


Magento2 save current applied cart rules at quote table. It means you can get applied rules id from quote object.

First look at database table quote at applied_rule_ids columns Magento save respective cart rules id.

table view

  • When i'm going to shopping cart page, I need to get current cart rule id and need to change cart rule logic based on respective prodcuts/customers
    – Vamsi
    Commented Jul 5, 2018 at 9:59
  • Thanks @amit bera its help me to get a applied_rule_id Commented Nov 21, 2019 at 11:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.