Discover millions of ebooks, audiobooks, and so much more with a free trial

Only $11.99/month after trial. Cancel anytime.

Getting Started with Drupal Commerce
Getting Started with Drupal Commerce
Getting Started with Drupal Commerce
Ebook290 pages1 hour

Getting Started with Drupal Commerce

Rating: 0 out of 5 stars

()

Read preview

About this ebook

A simple yet concise step-by-step tutorial that starts from scratch and builds up your knowledge with focused examples that will enable you to set up and run an e-commerce website.This book is for beginners and will take you through the installation and configuration of Drupal Commerce from scratch, but some familiarity with Drupal 7 will be an advantage. All examples are based on development on a local computer – you do not need a hosted Drupal environment.
LanguageEnglish
Release dateSep 24, 2013
ISBN9781783280247
Getting Started with Drupal Commerce
Author

Richard Jones

Richard Jones has more than fifteen years of experience in the creative arts and worked in a children's library for over a decade. Combining his two passions, he began illustrating children's books in 2016. Winter Dance is his first picture book in the US. He lives in Devon, England. www.paintedmouse.com

Read more from Richard Jones

Related to Getting Started with Drupal Commerce

Related ebooks

E-Commerce For You

View More

Related articles

Reviews for Getting Started with Drupal Commerce

Rating: 0 out of 5 stars
0 ratings

0 ratings0 reviews

What did you think?

Tap to rate

Review must be at least 10 words

    Book preview

    Getting Started with Drupal Commerce - Richard Jones

    Table of Contents

    Getting Started with Drupal Commerce

    Credits

    Foreword

    About the Author

    About the Reviewers

    www.PacktPub.com

    Support files, eBooks, discount offers and more

    Why Subscribe?

    Free Access for Packt account holders

    Preface

    What this book covers

    What you need for this book

    Who this book is for

    Conventions

    Reader feedback

    Customer support

    Downloading the example code

    Errata

    Piracy

    Questions

    1. Introducing Key Concepts

    An introduction to Drupal Commerce

    Products that can be sold

    Key terminology

    The Product module

    The Order module (commerce_order)

    The Line item module (commerce_line_item)

    The Customer profile module (commerce_profile)

    The Payment transaction module (commerce_payment_transaction)

    Prerequisites and dependencies

    The Views module

    The Rules module

    The Entity module

    The Address Field module

    The Chaos Tools module

    The Token module

    The Pathauto module

    Customizing and extending

    Summary

    2. Installing Drupal Commerce

    System requirements

    Downloading Acquia Dev Desktop

    Setting up a new Drupal site

    Setting your memory limit

    Enabling Drupal Commerce modules

    Summary

    3. Planning Your Store

    Defining the catalogue

    Base product definition

    Physical products

    Digital downloads

    Tickets

    Content access and subscriptions

    Customizing products

    Classifying products

    Pricing

    Currency

    Variable pricing

    Customers

    Taxes

    Payments

    Shipping

    Stock

    Legal compliance

    Customer communication

    Back office

    User experience

    The source of product data

    Summary

    4. Products

    Setting up the store currency

    Planning our products

    Product entities and product displays

    Variations on a theme

    From a browsing perspective

    From a buying perspective

    Managing the product entity or product display marriages

    Terminology changes

    Ensuring unique product titles

    Defining a new product variation type

    Adding an Image field

    Adding a Pack size (Taxonomy) field

    Pack size as variation picker

    Adding a physical weight field

    Defining the product (display) node

    Variation management

    Catalog structure

    Entering product data

    Adding taxonomy terms

    Adding products

    Product (display)

    Product variations

    Product catalog

    Menu settings

    URL path settings

    Revision information

    Authoring information

    Publishing options

    Displaying the product

    Refining the layout

    Adding to cart field behavior

    Summary

    5. Shopping Cart

    The Shopping cart page

    Format

    Fields

    Filter criteria

    Sort criteria

    Footer

    Advanced

    Customizing the Cart page

    The Cart block

    Summary

    6. Checkout

    Checkout pages

    Checkout panes

    Pane settings

    Account information

    Billing information

    Completion message

    Checkout rules

    How a rule works

    Other default rules

    Assigning an anonymous order to a pre-existing user

    Creating a new account for an anonymous order

    Sending an order notification e-mail

    Payment gateways

    Selecting a payment gateway

    Types of payment gateway integration

    Offsite redirection

    Inline

    Direct

    Setting up PayPal

    The customers' view

    Customer view of the Checkout page

    Customer view of the Review order and Payment page

    Customer view of Order complete

    Summary

    7. Shipping

    Definition of terms

    Shipping method

    Shipping service

    Setting up our Flat Rate shipping services

    The output shown to the customer

    Shipping address

    Calculating shipping rates via AJAX

    Presenting different shipping services based on the order conditions

    Free shipping when you spend a certain amount

    International shipping exempt from free shipping

    Checking the value of the order value is above a certain threshold

    Different billing and shipping addresses

    Order tracking

    Advanced order tracking

    Summary

    8. Tax

    Tax types and tax rates

    Commerce Tax modules

    Setting up standard VAT

    VAT applied

    Determining which taxes apply

    Basic tax handling

    Advanced tax handling

    Handling prices

    Methods of determining applicable tax

    Adding a VAT code taxonomy

    Conditional tax rules

    Checking for the presence of a commerce product field

    Checking for the presence of a tax code field

    Checking for the value of a tax code field

    Repeating for zero rated tax

    Testing VAT conditions

    Summary

    9. Managing Orders

    Configuring the back office

    Default order states and status codes

    Simple convention for the use of status codes

    Viewing payment transactions

    Summary

    10. Discounts and Coupons

    Site-wide discounts

    Extra price discount format

    Limiting the discounts to a date range

    Creating your rule

    Testing your rule

    Coupons

    Fixed discount on your order

    Adding an expiry date to a coupon

    Summary

    Index

    Getting Started with Drupal Commerce


    Getting Started with Drupal Commerce

    Copyright © 2013 Packt Publishing

    All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

    Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing, and its dealers and distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

    Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

    First published: September 2013

    Production Reference: 1170913

    Published by Packt Publishing Ltd.

    Livery Place

    35 Livery Street

    Birmingham B3 2PB, UK.

    ISBN 978-1-78328-023-0

    www.packtpub.com

    Cover Image by Myles Davidson (<myles@i-kos.com>)

    Credits

    Author

    Richard Jones

    Reviewers

    Nick Abbott

    Sil Kogelman

    Acquisition Editors

    Andrew Duckworth

    Julian Ursell

    Commissioning Editor

    Nikhil Chinnari

    Technical Editors

    Novina Kewalramani

    Anita Nayak

    Project Coordinator

    Akash Poojary

    Proofreader

    Simran Bhogal

    Indexer

    Monica Ajmera Mehta

    Production Coordinator

    Aditi Gajjar

    Cover Work

    Aditi Gajjar

    Foreword

    Drupal Commerce is the fastest growing open source solution for building modern e-commerce websites. It extends the popular and proven Drupal CMS, bringing you the best of two worlds: e-commerce and rich, socially enabled content management, all in one package.

    Powerful tools require training and skill to use properly, and that's why you need this book. The author carefully sets the stage for a multitude of practical and common e-commerce needs, including a planning template that will help you succeed in e-commerce even before you dive into the details of the software.

    Careful planning can uncover many of the issues that a new merchant may overlook, at their own risk. For example, the presentation of products using multiple currencies, sales tax versus VAT, handling of refunds, and compliance issues such as PCI DSS are all important to account for and address.

    Drupal Commerce presents a large set of new topics and requires skills that layer on top of the already powerful Drupal software. These include creating products, customizing the cart and checkout processes, configuring taxes, managing orders and shipping, and stimulating sales with discounts and coupons.

    Getting Started with Drupal Commerce strikes a nice balance between the conceptual underpinnings of Drupal Commerce and practical guidance, with ongoing examples to create an actual example store. By the end, you have the hands-on experience of actually building something with Drupal Commerce.

    Welcome to the world of Drupal Commerce. Happy reading!

    Robert Douglass

    Director of Product Strategy, Commerce Guys

    About the Author

    Richard Jones is the Technical Director of i-KOS, a UK-based digital agency, specializing in Drupal and e-commerce. He has been working with the project

    Enjoying the preview?
    Page 1 of 1