Magento 2 Coupon Code Link


Magento 2 Coupon Code Link makes it easy to apply the coupon code using a link instead of customers having to manually type the code.


Table of Content

  1. Extension Installation Guide
  2. Configuration
  3. Social Share Settings
  4. Coupon Code Link Email Settings
  5. Cart Price Rules
  6. Manage Coupon Code Links
  7. Coupon Code Link in Frontend


  1. Extension Installation
  • Extract the zip folder and upload our extension to root the of your Magento 2 directory via FTP.
  • Login to your SSH and run below commands step by step:
    • php bin/magento setup:upgrade
    • For Magento version 2.0.x to 2.1.x - php bin/magento setup:static-content:deploy
    • For Magento version 2.2.x & above - php bin/magento setup:static-content:deploy–f
    • php bin/magento cache:flush
  • That’s it.


  1. Configuration
    To configure the extension, login to Magento 2, move to Stores > Configuration > Coupon Code Link where you can find various settings to enable the extension.
  • Coupon Code Link: Enable the Coupon Code Link extension from here.
  • Show Coupon Code Success & Error Message: Set YES to show success or error message after coupon code application in the frontend.
  • Coupon Code Success Message: Enter coupon code success message to show after the successful coupon code application.
  • Coupon Code Error Message: Enter coupon code error message to show on unsuccessful coupon code application.



  1. Social Share Settings
    The extension facilitates to enable social sharing of the Coupon Code Links.
  • Facebook App ID: Enter the Facebook app ID to enable coupon code sharing on Facebook.


  1. Coupon Code Link Email Settings
    The extension facilitates to send coupon code links in emails to customers. It encourages users to buy products with a discount.
  • Email Sender: Select the Email sender.
  • Email Template: Select the Email template for the coupon code link in Email.


  1. Cart Price Rules
    Prior to using the coupon code link extension, you need to make sure you have added at least a cart price rule to generate coupon code link and share it on various social media platforms and in Email. If you haven’t added any coupon code discount rule, add new from here.


  1. Manage Coupon Code Links
    Go to Coupon Code Link > Manage Coupon Code Links and click “Update Coupon Code Links” button to update the coupon code link list based on the cart price rules. Add redirect URL to generate coupon code link with redirection. Here, you can see a number of coupon code views for each coupon code link. Also, the admin can click “Share Link” and “Send Email” buttons to share coupon code link in social media and in Email respectively.


  • Share Coupon Code Link to Social Media
    On click of the “Share Link” button, a responsive popup is opened with share buttons for the various social media platforms. Click social share buttons to share coupon code link in respective social media platforms.


  • Coupon Code Link Shared to Social Media
    Immediately after clicking the social share button, you can add text and share coupon code link in social media.



  • Share Coupon Code Link to Email
    On click of the “Send Email” button, the admin can add user details and click “Send Now” button to share coupon code link via Email.


  • Coupon Code Link Shared in Email
    After clicking the “Send Now” button, the user gets an Email with the coupon code link. He can click the button to get redirected to the website and get the discount code auto-applied.


  1. Coupon Code Link in Frontend
    Once the extension is configured, whenever users click on the coupon code link from social media or from an Email, they get redirected to the website with coupon code applied automatically. They can see a successful coupon code application message in a popup.


  • Discount Code Applied on Products
    After the successful coupon code application, users add the products to cart and see the discount applied automatically.