Apply Discount Coupon Code via Link

Table of Contents

  1. Installation

    • Disable Compilation Mode

    • Upload Package

    • Clear Caches

  2. 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

Installation

  • Disable Compilation Mode: To check that this is disabled, go to System >Tools> 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.

  • 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.

  • Clear Caches: This can be done from the admin console by navigating to the cache management page (System > Cache Management), selecting all caches, clicking ‘refresh’ from the drop-down menu, and submitting the change.

Configuration Settings for Auto Apply Coupon Code

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

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

  • 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 > Promotions> Shopping 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}}&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.

Front-end Site View

  • Successful Applied Discount Message on the Front-end – The message set from Admin > Configuration > Auto Apply Coupon Code > Message After Applying Code, will be shown on the front-end homepage.

  • Successful Applied Discount Message on the Cart Page -

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

Last updated