Book Image

Getting Started with Drupal Commerce

By : Richard Jones
Book Image

Getting Started with Drupal Commerce

By: Richard Jones

Overview of this book

Drupal Commerce is emerging as the preferred option for open source e-commerce, and it also stands up to comparison against established proprietary systems. Getting Started with Drupal Commerce is an introductory guide to building an online store using Drupal Commerce in Drupal 7. Getting Started with Drupal Commerce takes you step-by-step through a complete e-commerce website build, from a clean installation of Drupal to a working example store. Starting with how to set up a Drupal development environment, we then discuss the planning of an e-commerce site and the typical questions you should be asking before getting started. Next, we walk through all of the essential setup required for most types of e-shop, including taxes, shipping, discounts and coupons, the checkout process, and backend order management. By the end of Getting Started with Drupal Commerce, you will be fully-equipped to plan and build your own store and you will understand the fundamental principles of Drupal Commerce that will enable you to progress to more complex store builds.
Table of Contents (18 chapters)
Getting Started with Drupal Commerce
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Coupons


Coupons or offer codes are a popular way of offering discounts to selected customers or via advertising.

To use Coupons in Drupal Commerce, we need to install some new modules:

Enable the following modules:

  • Commerce Coupon

  • Commerce Coupon Fixed Amount

  • Commerce Coupon Percentage Amount

  • Commerce Coupon UI

  • Entity Reference

You will now have an extra menu in your store settings, named Coupons.

Fixed discount on your order

Our first example is to give a customer £10 off their order, by using the following steps:

  1. Click on Create coupon and you will be presented with a choice of creating a fixed price coupon or a percentage coupon.

  2. Click on Create Fixed coupon.

  3. Enter the £10 value and OFFER as an offer code, as shown in the following screenshot:

  4. Now that the coupon module has been enabled, an extra checkout pane will...