# Apply Discount Coupon Code via Link

### <span style="color: #3b82f6;">Installation and User Guide for Magento 1 Apply Discount Coupon code via link</span>

**Table of Contents**

1. [Installation ](#bkmrk-installation)
    - Disable Compilation Mode
    - Upload Package
    - Clear Caches
2. [Configuration Settings for Auto Apply Coupon Code ](#bkmrk-configuration-settin)
    - General Settings
3. [Discount Setup](https://docs.scommerce-mage.com/apply-discount-coupon-code-via-link.md#discount-setup)
4. [Discount Link](#bkmrk-discount-link)
5. [Front-end Site View](#bkmrk-front-end-site-view)
    - Successful Applied Discount Message on the Front-end
    - Successful Applied Discount Message on the Cart Page
    - Coupon Code on the Checkout Page

### <span style="color: #3b82f6;">Installation</span> [](#bkmrk-)

- <span style="color: #f97316;">**Disable Compilation Mode:**</span> To check that this is disabled, go to **System &gt;Tools&gt; Compilation**. If the compiler status is 'Disabled', you are ready to go. If not, simply click the 'Disable' button on the right hand side of the screen.
- <span style="color: #f97316;">**Upload Package:**</span> 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.
- <span style="color: #f97316;">**Clear Caches:**</span> This can be done from the admin console by navigating to the cache management page (**System &gt; Cache Management**), selecting all caches, clicking 'refresh' from the drop-down menu, and submitting the change.

### <span style="color: #3b82f6;">Configuration Settings for Auto Apply Coupon Code</span> [](#bkmrk--1)

Go to **Admin &gt; Stores &gt; Configuration &gt; Scommerce Configuration &gt; Auto Apply Coupon Code**

#### <span style="color: #f97316;">General Settings</span> [](#bkmrk--2)

- **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 <support@scommerce-mage.com>.
- **Message after applying code –** Message which will displays on the site after successful application of coupon code.

[![image - 2025-06-18T163314.530.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-18t163314-530.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-18t163314-530.jpg)

### <span style="color: #3b82f6;">**Discount Setup**</span>

You can set up the discount coupon code from **Admin &gt; Promotions&gt; Shopping Cart Price Rules** &gt; 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.

[![image - 2025-06-18T163409.009.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-18t163409-009.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-18t163409-009.jpg)

### <span style="color: #3b82f6;">**Discount Link**</span>

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}}&returning_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 - 2025-06-18T163457.444.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-18t163457-444.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-18t163457-444.jpg)

### <span style="color: #3b82f6;">Front-end Site View</span> [](#bkmrk--6)

- <span style="color: #f97316;">**Successful Applied Discount Message on the Front-end –**</span> The message set from **Admin &gt; Configuration &gt; Auto Apply Coupon Code &gt; Message After Applying Code**, will be shown on the front-end homepage.

[![image - 2025-06-18T163611.868.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-18t163611-868.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-18t163611-868.jpg)

- <span style="color: #f97316;">**Successful Applied Discount Message on the Cart Page -**</span>

<span style="color: #f97316;">**[![image - 2025-06-18T163648.455.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-18t163648-455.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-18t163648-455.jpg)**</span>

- <span style="color: #f97316;">**Coupon Code on the Checkout Page –**</span> Applied discount coupon code will be shown on the front-end checkout page under "Order Summary" section.

[![image - 2025-06-18T163735.618.jpg](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/scaled-1680-/image-2025-06-18t163735-618.jpg)](https://docs.scommerce-mage.com/uploads/images/gallery/2025-06/image-2025-06-18t163735-618.jpg)

If you have a question related to this extension please check out our [**FAQ Section**](https://www.scommerce-mage.com/magento-apply-coupon-via-link.html#faq) first. If you can't find the answer you are looking for then please contact [**support@scommerce-mage.com**](mailto:core@scommerce-mage.com)**.**