magestyapps/magento2-fix-discount-rules

Fix for shopping cart rules 'Payment Method' condition in Magento 2

Installs: 353

Dependents: 0

Suggesters: 0

Security: 0

Stars: 11

Watchers: 2

Forks: 3

Open Issues: 3

Language:JavaScript

Type:magento2-module

1.1.1 2020-05-18 10:36 UTC

This package is auto-updated.

Last update: 2024-11-18 21:52:38 UTC


README

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:

   composer require magestyapps/magento2-fix-discount-rules 

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:

    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