Skip to content
Fixes core Magento 2 issue related to "Payment Method" condition in discount rules
Branch: master
Clone or download
Latest commit 06c419d Mar 20, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Controller/Checkout Reload totals when selecting a payment method Aug 22, 2016
etc Reload totals when selecting a payment method Aug 22, 2016
view/frontend Reload totals when selecting a payment method Aug 22, 2016
README.md
registration.php Init new module Aug 22, 2016

README.md

magento2-fix-discount-rules

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.

How to install:

  • 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:

    cd /path/to/your/magento
    
  • Install the new module using the command below:

    php bin/magento setup:upgrade
    

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

You can’t perform that action at this time.