Magento 2 Apply Discount coupon Code Via Link

Installation and User Guide for Magento 2 Apply Discount Coupon Code via Link Extension

Table of Contents

  1. Installation
    • Installation via app/code
    • Installation via Composer
  2. Configuration Settings for Auto Coupon
    • General Settings
  3. Discount Setup
  4. Discount Link
  5. Front-end site view
    • Successful Applied Discount Message on the Front-end
    • Coupon Code On the Checkout Page

Installation

https://docs.scommerce-mage.com/magento-2-extensions/installation-via-composer/installation-via-composer

Configuration Settings for Auto Coupon

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

General Settings

image (14).png

Discount Setup

You can set up the discount coupon code from Admin > Marketing > Cart Price Rules > Click "Add New Rule", it redirects on **"**新ew Cart Price Rule" and by providing all the required details you can create the new rule and set up the discount code.

image (15).png

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. Site url – Site base URL.
  2. Discount Code – Discount code as set up in discount.
  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.

image (6).jpg

Front-end Site View

image (7).jpg

image (8).jpg

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 support@scommerce-mage.com.


Revision #4
Created 19 May 2025 13:18:41 by scommerce
Updated 24 October 2025 10:09:21 by scommerce