Menu icon
RedCrackle
Menu icon
Services
01Design Transformation
About UsCase StudiesBlogContact Us

<

Blog post

Adding Coupons To Your Drupal Commerce Store

Neerav Mehta

Founder & CEO

This is tutorial #12 in the Drupal Commerce tutorial series. In the previous article, we added VAT tax functionality to your bills.

It’s easy to set up coupons for your Drupal-based online store. Drupal primarily allows you to configure 2 kinds of coupons – the first kind allows shoppers on your site to have a fixed amount deducted from the final bill. The second kind of coupons allows shoppers to have a percentage amount deducted from the bill.

By the end of this article, you will be able to create coupons of your own. Shoppers can then type in the coupon code and get a discount during the checkout process.

We will create two coupons – RC-Coupon & RC-Coupon-Per1 – and enter their codes during the checkout process. As you can see below, the codes have been accepted and a discount amount generated in the final bill. Ideally, you will have to provide these codes through email or advertising on your website.

Coupons

To get started, you will have to download and unzip the following modules:

  1. Commerce Coupon (drupal.org/project/commerce_coupon)
  2. Commerce coupon percentage (drupal.org/project/commerce_coupon_pct)
  3. Commerce coupon fixed amount (drupal.org/project/commerce_coupon_fixed_amount)

Before enabling the modules mentioned above, you will have to download and unzip the following module:

  • Entity Reference

Let’s now head over to enable these modules. Click “Modules”:

Coupons

Search for the “Entity Reference” module and enable it:

Coupons

Click “Save configuration” at the bottom of the page:

Coupons

Let’s now enable the following modules: “Commerce Coupon”, “Commerce Coupon Fixed Amount”, “Commerce Coupon Percentage Amount” and “Commerce Couple UI”.

Coupons

Let’s now add coupons you can use for your store. Click “Store”:

Coupons

You will notice a new link – Create Coupon – in the new page. Click it:

Coupons

Let’s start by creating a coupon that offers a fixed discount on a shopper’s bill. Click “Create Fixed coupon”:

Coupons

Fill in the following details:

  • Fixed Amount: The amount you wish to offer as a discount for the coupon.
  • Coupon Code: Provide an easy-to-remember code for your coupon.
  • Maximum number of Uses: How many times would you allow shoppers to use the coupon?
  • Active: Tick the box if you want to activate the coupon so that shoppers can use it.

Refer the screenshot below for more details. Click “Save Coupon” once you are done:

Coupons

Your coupon has been saved. Click “Create Coupon”:

Coupons

Click “Create Percentage coupon”:

Coupons

Fill in the coupon’s details just like you created a coupon for the fixed amount above. The only difference is the “Percentage Amount” field. It denotes the percentage deduction you wish to offer shoppers on their purchases:

Coupons

The two coupons have successfully been added:

Coupons

I’m going to check out my cart and use both the coupon codes to verify whether they are working or not:

Coupons

Confirm the products in your cart and click “Continue to next step”:

Coupons

You will reach a screen where you will be asked to type in your coupon code. I am typing in RC-Coupon, the coupon code I created a little while back. Click “Add coupon”:

Coupons

Let’s add the second coupon as well:

Coupons

Your coupons will be displayed as shown below along with the amount that will be deducted from final bill. Click “Continue to next step”:

Coupons

In the review order page, you will be able to view the discounted $3.50 and $7.56 as part of your final bill just like in the screenshot below:

Coupons

Next: Adding A Flat Shipping Rate To Orders

Neerav Mehta

Neerav Mehta

Founder & CEO

Neerav Mehta is the Founder & CEO of Red Crackle. With sterling qualities, Neerav’s technological acumen is firing a generation of progressive companies on the digital path. With an undergraduate degree in Electrical Engineering from India's most prestigious institution IIT Bombay and having spent seven years developing and contributing to the launch of AMD's innovative line of computer products, Neerav founded Red Crackle where he is lauded for his dynamic and innovative genius.

View all posts

>

Read Next

10 Tips For Entrepreneurs In 2015

10 Tips For Entrepreneurs In 2015

Learn more

10 Ways To Increase Productivity At Work

10 Ways To Increase Productivity At Work

Learn more

30 best WordPress widgets for your site

30 best WordPress widgets for your site

Learn more

Let’s get you started!

Contact Us

>

RedCrackle

Explore

About Us

Services

Contact Us

Our address

5346 Gerine Blossom Dr,

San Jose, CA 95123

USA

Socials

Twitter
LinkedIn

© 2023 RedCrackle. All rights reserved.