Skip to main content
Magento 2

How to Create Coupon Codes in Magento 2?

Complete guide to creating and managing coupon codes and promotional rules in Magento 2.

How to Create Coupon Codes in Magento 2?

Coupon codes are powerful marketing tools for driving sales. Learn how to create and manage them in Magento 2.

Why Use Coupon Codes

  • Increase sales volume
  • Attract new customers
  • Reward loyal customers
  • Clear old inventory
  • Track marketing campaign effectiveness
  • Control promotional budgets

Steps to Create a Coupon

  • Go to Marketing > Promotions > Cart Price Rules
  • Click “Add New Rule”
  • Enter rule name
  • Set rule description
  • Configure rule conditions
  • Set discount amount
  • Create coupon code
  • Save rule

Coupon Types

  • Fixed Amount Discount: $10 off
  • Percentage Discount: 20% off
  • Buy X Get Y: Purchase bundle offers
  • Free Shipping: Free shipping offer
  • Tiered Discounts: Different discounts based on quantity

Configuring Discount Rules

Set conditions for:

  • Minimum cart amount
  • Product categories
  • Specific products
  • Customer groups
  • Number of uses
  • Per-customer use limit
  • Expiration dates

Creating Coupon Codes

  • In rule, go to “Manage Coupon Codes” tab
  • Set code pattern or enter specific code
  • Set quantity of coupons to generate
  • Set uses per customer limit
  • Set expiration date
  • Generate codes

Code Generation Patterns

Examples:

  • SAVE10 (static)
  • SUMMER-[1-9]{2}[a-z]{3} (pattern)
  • PROMO[N] (numbered sequence)

Best Practices

  • Use memorable, short codes
  • Include brand name if possible
  • Limit coupon validity period
  • Set usage limits
  • Test coupons before launching
  • Track performance metrics
  • Update minimum purchase amounts

Managing Coupons

  • View coupon usage statistics
  • Monitor redemption rates
  • Adjust or deactivate underperforming coupons
  • Extend expiration dates if needed
  • Generate reports

Promotion Strategy

Effective coupon strategies:

  • Seasonal promotions (holidays)
  • First-time buyer incentives
  • Loyalty rewards
  • Cart abandonment recovery
  • Email campaign promotions
  • Social media exclusive offers

Need help with this?

Get managed Magento hosting tuned for performance.

Learn more