Skip to main content

Getting Started

Improved Coupon adds to Magento's cart price rules what shoppers and marketers usually miss in them:

Nothing changes in how Magento calculates discounts: Improved Coupon works with the cart price rules you already have.

Before you start​

  • Improved Coupon needs the ApBase module, version 1.6.57 or newer (it is included in the package).
  • The switches below work with a cart price rule that has one specific coupon code (Coupon: Specific Coupon, without Use Auto Generation). Rules without a coupon, and rules with generated codes, are not affected (the only exception is the personal coupon from a pool).
  • Supported: Magento Open Source and Adobe Commerce 2.4.7, 2.4.8 and 2.4.9, the Luma theme and the Hyvä theme (1.3, 1.4, 1.5).

Installation​

Back up your store before you install.

If you install from the Adobe Commerce Marketplace with Composer (the ApBase module is installed with it):

composer require mexbs/better-coupon
bin/magento module:enable Mexbs_ApBase Mexbs_BetterCoupon
bin/magento setup:upgrade
bin/magento cache:flush

If you install from the zip file:

  1. Unpack Mexbs_BetterCoupon_v1.0.0.zip and copy the content of its extension_files folder into your Magento root directory (the files go to app/code/Mexbs).
  2. Run:
bin/magento module:enable Mexbs_ApBase Mexbs_BetterCoupon
bin/magento setup:upgrade
bin/magento cache:flush

On a Hyvä store, also enable the Hyvä module (bin/magento module:enable Mexbs_BetterCouponHyva) before setup:upgrade, and see the Hyvä theme.

In production mode, run bin/magento setup:di:compile and bin/magento setup:static-content:deploy -f as well.

Where the settings are​

Almost everything is set on the cart price rule: Marketing > Cart Price Rules, in the Rule Information section. The new fields are:

FieldWhat it does
Auto-apply the couponApplies the coupon to every cart that qualifies
Show in the coupon listLists the coupon for carts that qualify
Text in the coupon listThe text next to the code in the list
Allow applying by linkMakes the coupon link work
Product SKU to add with the link, Quantity of the productA product added to the cart by the link
Offer a random mass-generated couponA personal coupon from the pool
Show an "almost there" hintTurns on the hint

The number of coupons a cart may have is in Stores > Configuration > Sales > Sales > Improved Coupon (see Several coupons).

Combining rules​

Coupons follow Magento's usual rules, so before you switch on several of them, keep two things in mind:

  • The priority of a rule decides which one is processed first (a lower number goes first).
  • Discard subsequent rules stops the rules after it. It is set to Yes by default in rules created in the Magento admin, so check it when two coupons do not combine. See Coupons that cannot be combined.