cancel
Showing results for 
Search instead for 
Did you mean: 

How to change cart price rule default setting? Discard Subsequent Rules --> no

How to change cart price rule default setting? Discard Subsequent Rules --> no

Hi all,

Since the default setting of Discard Subsequent Rules is yes for every rule, I sometimes forget to change it to No, which leads to a rule crash.

Any way to change the default setting?

Thank you!

 

 

1 REPLY 1

Re: How to change cart price rule default setting? Discard Subsequent Rules --> no

Hi @connieatpc9691 ,

 

You need to over right below ui components in your custom module and in your custom module you can set default value for field name stop_rules_processing.

 

How to over right ui component in magento 2?

Here is the answer:

https://magento.stackexchange.com/questions/335123/magento-2-override-view-adminhtml-ui-component-xm...

 

Files that you need to oveeright (you just need to add stop_rules_processing field in over righted file with default value):

vendor/magento/module-catalog-rule/view/adminhtml/ui_component/catalog_rule_form.xml

vendor/magento/module-sales-rule/view/adminhtml/ui_component/sales_rule_form.xml

 

Problem Solved? Accept as Solution!

 

Hope it helps!

Thanks

Ankit Jasani