Download the PHP package magestyapps/magento2-fix-discount-rules without Composer
On this page you can find all versions of the php package magestyapps/magento2-fix-discount-rules. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download magestyapps/magento2-fix-discount-rules
More information about magestyapps/magento2-fix-discount-rules
Files in magestyapps/magento2-fix-discount-rules
Package magento2-fix-discount-rules
Short Description Fix for shopping cart rules 'Payment Method' condition in Magento 2
License OSL-3.0 AFL-3.0
Informations about the package magento2-fix-discount-rules
Fix cart price rules by Payment Method in Magento 2
If you try to create a new discount rule in Magento 2, you'll see a condition called "Payment Method" there. This condition means that the discount will be applied in case a customer selects a certain payment method. But actually, this rule will not work due to a small omission in Magento 2 checkout. The module in the repo fixes the issue.
Installation
via Composer (recommended)
Run the following command from your Mangento root folder:
Manually
- Create folder 'app/code/MagestyApps/FixRules/' in you Magento setup
- Extract the repo files to the folder
- Open console (terminal)
-
In the console (terminal) navigate to your magento root folder:
- Install the new module using the command below:
Description
You can find some code explanations in our blog post: Cart Price Rules Based on Payment Method Don't Work
Some of code parts have been taken from our Payment Fees extension for Magento 2