Search…
Magento 2 Apply Discount coupon Code Via Link
Table of Contents
  1. 1.
    • Upload Package
    • Install Extension
  2. 5.
    • Successful Applied Discount Message on the Front-end
    • Coupon Code On the Checkout Page

Installation

  • Upload Package: Upload the content of the module to your root folder. This will not overwrite the existing Magento folder or files, only the new contents will be added.
  • Install Extension: After the successful upload of the package, run below commands on Magento 2 root directory.
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy

Configuration Settings for Auto Coupon

Go to Admin > Stores > Configuration > Scommerce Configuration > Auto Coupon

General Settings

  • Enabled – Select “Yes” or “No” to enable or disable the module.
  • License Key – Please add the license for the extension which is provided in the order confirmation email. Please note license keys are site URL specific. If you require license keys for dev/staging sites then please email us at [email protected]
  • Message After Applying Code – Message which will displays on the site after successful application of coupon code.

Discount Setup

You can set up the discount coupon code from Admin > Marketing > Cart Price Rules > Click "Add New Rule", it redirects on "New Cart Price Rule" and by providing all the required details you can create the new rule and set up the discount code.
Once the discount is set up then on the front-end it can be applied using the below link :-
http://{[siteurl}}/applydiscount/?code={[discount_code}}&redirect_url={[any_url_ of_your_site}}
  1. 1.
    Site url – Site base URL.
  2. 2.
    Discount Code – Discount code as set up in discount.
  3. 3.
    Returning Site URL – This is optional parameter. If defined, user will be redirected to this URL after successful application of the discount code. If not defined then User will be redirected to the Home page.

Front-end Site View

  • Successful Applied Discount Message on the Front-end - The message you have set from Admin > Stores > Configuration > Scommerce Configuration > Auto Coupon > Message After Applying Code, will be shown on the front-end homepage.
  • Coupon Code On the Checkout Page - Applied discount coupon code will be shown on the front-end checkout page under "Order Summary" section.
If you have a question related to this extension please check out our FAQ Section first. If you can't find the answer you are looking for then please contact [email protected].
Export as PDF
Copy link
On this page
Installation and User Guide for Magento 2 Apply Discount Coupon Code via Link Extension
Installation
Configuration Settings for Auto Coupon
Discount Setup
Discount Link
Front-end Site View