Getting Started with Drupal Commerce
()
About this ebook
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
Learning Drupal 8 Rating: 0 out of 5 stars0 ratingsHouse Guests, House Pests: A Natural History of Animals in the Home Rating: 4 out of 5 stars4/5Extreme Insects Rating: 0 out of 5 stars0 ratingsA Natural History of Insects in 100 Limericks Rating: 0 out of 5 stars0 ratingsCall of Nature: The Secret Life of Dung Rating: 4 out of 5 stars4/5Chasing Crows Rating: 0 out of 5 stars0 ratingsGhostly Tyne and Wear Rating: 0 out of 5 stars0 ratingsThe Little Book of Nits Rating: 0 out of 5 stars0 ratingsJourney Through the School of Groaning: A Prayer Devotional Rating: 0 out of 5 stars0 ratingsClimate Change: the Shiny Object in the Room: It’s Not What You Think You Know, It’s What You Need to Know! Rating: 0 out of 5 stars0 ratingsPrinciples of Biological Regulation: An Introduction to Feedback Systems Rating: 0 out of 5 stars0 ratingsThe Journey Continues: from Groaning to Dancing Rating: 0 out of 5 stars0 ratings
Related to Getting Started with Drupal Commerce
Related ebooks
Design pattern Third Edition Rating: 0 out of 5 stars0 ratingsLiveCode Mobile Development Cookbook Rating: 0 out of 5 stars0 ratingsUnified Modeling Language A Complete Guide Rating: 0 out of 5 stars0 ratingsMastering PostCSS for Web Design Rating: 0 out of 5 stars0 ratingsHow to Price Your Product Rating: 0 out of 5 stars0 ratingsGlobal Content Strategy Rating: 0 out of 5 stars0 ratingsGetting Started with nopCommerce Rating: 0 out of 5 stars0 ratingsMicrosoft Dynamics AX 2012 Services Rating: 0 out of 5 stars0 ratingsSignalR Blueprints Rating: 0 out of 5 stars0 ratingsPrestaShop Module Development Rating: 0 out of 5 stars0 ratingsHow to Build an Online Store - eCommerce Project Management: Beginners Guide Rating: 0 out of 5 stars0 ratingsGetting Started with Magento Extension Development Rating: 0 out of 5 stars0 ratingsQlikView Essentials Rating: 0 out of 5 stars0 ratingsWordPress 2.9 E-Commerce Rating: 0 out of 5 stars0 ratingsBeginning DotNetNuke Skinning and Design Rating: 0 out of 5 stars0 ratingsMEAN Blueprints Rating: 0 out of 5 stars0 ratingsCompiere 3 Rating: 0 out of 5 stars0 ratingsShopify Application Development Rating: 0 out of 5 stars0 ratingse-Strategy Pure & Simple (Review and Analysis of Robert and Racine's Book) Rating: 0 out of 5 stars0 ratingsWordPress 3 For Business Bloggers Rating: 5 out of 5 stars5/5Cloud Development and Deployment with CloudBees Rating: 0 out of 5 stars0 ratingsBuilding E-Commerce Solutions with WooCommerce - Second Edition Rating: 0 out of 5 stars0 ratingsBuilding Online Stores with osCommerce: Beginner Edition Rating: 5 out of 5 stars5/5Drupal Rules How-to Rating: 0 out of 5 stars0 ratingseBu$iness: 7 Steps to Get Your Small Business Online... and Making Money Now! Rating: 0 out of 5 stars0 ratingsImplementing Cloud Design Patterns for AWS Rating: 0 out of 5 stars0 ratingsConfiguring SAP ERP Financials and Controlling Rating: 4 out of 5 stars4/5Advanced Express Web Application Development Rating: 0 out of 5 stars0 ratingsMagento 2 Developer's Guide Rating: 0 out of 5 stars0 ratingsProfessional DevExpress ASP.NET Controls Rating: 0 out of 5 stars0 ratings
E-Commerce For You
The Bitcoin Standard: The Decentralized Alternative to Central Banking Rating: 4 out of 5 stars4/5The Psychology of Selling: Increase Your Sales Faster and Easier Than You Ever Thought Possible Rating: 4 out of 5 stars4/5DotCom Secrets (Review and Analysis of Brunson's Book) Rating: 4 out of 5 stars4/5The YouTube Formula: How Anyone Can Unlock the Algorithm to Drive Views, Build an Audience, and Grow Revenue Rating: 4 out of 5 stars4/5How to Write Copy That Sells: The Step-By-Step System For More Sales, to More Customers, More Often Rating: 4 out of 5 stars4/5Built to Last: Successful Habits of Visionary Companies Rating: 4 out of 5 stars4/5Building a StoryBrand: Clarify Your Message So Customers Will Listen Rating: 4 out of 5 stars4/5How I Made My First $1000 on Etsy (With No Social Media Following and No Money to Spend on Advertising Rating: 5 out of 5 stars5/5The Passive Income Cheat Sheet Rating: 4 out of 5 stars4/5Trade Like a Stock Market Wizard: How to Achieve Super Performance in Stocks in Any Market Rating: 5 out of 5 stars5/580/20 Sales and Marketing: The Definitive Guide to Working Less and Making More Rating: 4 out of 5 stars4/5A Beginner's Guide To Day Trading Online 2nd Edition Rating: 4 out of 5 stars4/5Influencer: Building Your Personal Brand in the Age of Social Media Rating: 4 out of 5 stars4/5Crushing It!: How Great Entrepreneurs Build Their Business and Influence—and How You Can, Too Rating: 4 out of 5 stars4/5The Beginner's Affiliate Marketing Blueprint Rating: 4 out of 5 stars4/5Sewing to Sell: How To Sell Locally & Online; The Beginner's Guide to Starting a Craft Business Rating: 5 out of 5 stars5/52022 Best Ways To Make Money Online Rating: 4 out of 5 stars4/5Online Investing Rating: 0 out of 5 stars0 ratingsJab, Jab, Jab, Right Hook: How to Tell Your Story in a Noisy Social World Rating: 5 out of 5 stars5/5Streams of Income: Living the Multiple Income Streams Dream Rating: 5 out of 5 stars5/5
Reviews for Getting Started with Drupal Commerce
0 ratings0 reviews
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