Magento 2 : How to Override Model

Configuration of Module: Create module.xml in app/code/Techievolve/Product/etc and add the following code to it: Module Registration: Create registration.php in app/code/Techievolve/Product and add the following code to it: Override Product.php Run the following commands using ssh or terminal:

Magento :: Shopping Cart Rule Causing Internal Sever Error 500

Copy Subselect.php:. From: app/code/core/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php To: app/code/local/Mage/SalesRule/Model/Rule/Condition/Product/Subselect.php Based on comments on @kalpesh link this also solved the problem for me. (adding the fix here for future reference) There is a patch for this https://gist.github.com/piotrekkaminski/54529dadb0bc01a62a2d It is marked for EE but the Read more…