O'Reilly logo

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Getting Started with Drupal Commerce

Book Description

Learn everything you need to know in order to get your first Drupal Commerce website set up and trading

  • Understand the key concepts of Drupal Commerce, its philosophy, and how it fits in the Drupal Ecosystem
  • Learn the essentials of planning your store to save time and frustration
  • Set up and configure your store including the catalogue, taxes, discounts, coupons, and shipping
  • Configure your cart and checkout process and integrate them with a payment gateway
  • Learn with the help of a step-by-step guide to creating a new e-store using a real life example

In Detail

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

  1. Getting Started with Drupal Commerce
    1. Table of Contents
    2. Getting Started with Drupal Commerce
    3. Credits
    4. Foreword
    5. About the Author
    6. About the Reviewers
    7. www.PacktPub.com
      1. Support files, eBooks, discount offers and more
        1. Why Subscribe?
        2. Free Access for Packt account holders
    8. Preface
      1. What this book covers
      2. What you need for this book
      3. Who this book is for
      4. Conventions
      5. Reader feedback
      6. Customer support
        1. Downloading the example code
        2. Errata
        3. Piracy
        4. Questions
    9. 1. Introducing Key Concepts
      1. An introduction to Drupal Commerce
      2. Products that can be sold
      3. Key terminology
        1. The Product module
        2. The Order module (commerce_order)
        3. The Line item module (commerce_line_item)
        4. The Customer profile module (commerce_profile)
        5. The Payment transaction module (commerce_payment_transaction)
      4. Prerequisites and dependencies
        1. The Views module
        2. The Rules module
        3. The Entity module
        4. The Address Field module
        5. The Chaos Tools module
        6. The Token module
        7. The Pathauto module
      5. Customizing and extending
      6. Summary
    10. 2. Installing Drupal Commerce
      1. System requirements
      2. Downloading Acquia Dev Desktop
      3. Setting up a new Drupal site
      4. Setting your memory limit
      5. Enabling Drupal Commerce modules
      6. Summary
    11. 3. Planning Your Store
      1. Defining the catalogue
        1. Base product definition
        2. Physical products
        3. Digital downloads
        4. Tickets
        5. Content access and subscriptions
      2. Customizing products
      3. Classifying products
        1. Pricing
        2. Currency
        3. Variable pricing
        4. Customers
        5. Taxes
        6. Payments
        7. Shipping
        8. Stock
        9. Legal compliance
        10. Customer communication
        11. Back office
        12. User experience
        13. The source of product data
      4. Summary
    12. 4. Products
      1. Setting up the store currency
      2. Planning our products
        1. Product entities and product displays
          1. Variations on a theme
          2. From a browsing perspective
          3. From a buying perspective
        2. Managing the product entity or product display marriages
          1. Terminology changes
        3. Ensuring unique product titles
        4. Defining a new product variation type
        5. Adding an Image field
        6. Adding a Pack size (Taxonomy) field
          1. Pack size as variation picker
        7. Adding a physical weight field
      3. Defining the product (display) node
        1. Variation management
      4. Catalog structure
      5. Entering product data
        1. Adding taxonomy terms
        2. Adding products
          1. Product (display)
          2. Product variations
        3. Product catalog
        4. Menu settings
        5. URL path settings
        6. Revision information
        7. Authoring information
        8. Publishing options
          1. Displaying the product
        9. Refining the layout
          1. Adding to cart field behavior
      6. Summary
    13. 5. Shopping Cart
      1. The Shopping cart page
        1. Format
        2. Fields
        3. Filter criteria
        4. Sort criteria
        5. Footer
        6. Advanced
      2. Customizing the Cart page
        1. The Cart block
      3. Summary
    14. 6. Checkout
      1. Checkout pages
      2. Checkout panes
        1. Pane settings
      3. Account information
      4. Billing information
      5. Completion message
      6. Checkout rules
        1. How a rule works
        2. Other default rules
          1. Assigning an anonymous order to a pre-existing user
          2. Creating a new account for an anonymous order
          3. Sending an order notification e-mail
      7. Payment gateways
        1. Selecting a payment gateway
          1. Types of payment gateway integration
          2. Offsite redirection
          3. Inline
          4. Direct
        2. Setting up PayPal
      8. The customers' view
        1. Customer view of the Checkout page
        2. Customer view of the Review order and Payment page
        3. Customer view of Order complete
      9. Summary
    15. 7. Shipping
      1. Definition of terms
        1. Shipping method
        2. Shipping service
      2. Setting up our Flat Rate shipping services
        1. The output shown to the customer
          1. Shipping address
          2. Calculating shipping rates via AJAX
        2. Presenting different shipping services based on the order conditions
          1. Free shipping when you spend a certain amount
          2. International shipping exempt from free shipping
            1. Checking the value of the order value is above a certain threshold
      3. Different billing and shipping addresses
      4. Order tracking
        1. Advanced order tracking
      5. Summary
    16. 8. Tax
      1. Tax types and tax rates
      2. Commerce Tax modules
      3. Setting up standard VAT
        1. VAT applied
        2. Determining which taxes apply
        3. Basic tax handling
        4. Advanced tax handling
        5. Handling prices
          1. Methods of determining applicable tax
          2. Adding a VAT code taxonomy
        6. Conditional tax rules
          1. Checking for the presence of a commerce product field
          2. Checking for the presence of a tax code field
          3. Checking for the value of a tax code field
          4. Repeating for zero rated tax
          5. Testing VAT conditions
      4. Summary
    17. 9. Managing Orders
      1. Configuring the back office
      2. Default order states and status codes
      3. Simple convention for the use of status codes
      4. Viewing payment transactions
      5. Summary
    18. 10. Discounts and Coupons
      1. Site-wide discounts
      2. Extra price discount format
      3. Limiting the discounts to a date range
        1. Creating your rule
          1. Testing your rule
      4. Coupons
        1. Fixed discount on your order
        2. Adding an expiry date to a coupon
      5. Summary
    19. Index