Book Image

Building E-commerce Sites with Drupal Commerce Cookbook

By : Richard Carter
Book Image

Building E-commerce Sites with Drupal Commerce Cookbook

By: Richard Carter

Overview of this book

<p>Get to grips with Drupal Commerce, the new ecommerce framework based on the Drupal CMS , one of the most popular and powerful open source content management systems available.<br /><br />"Building E-commerce Sites with Drupal Commerce Cookbook" takes you through the installation, configuration, and customisation of your Drupal Commerce store. With clear, practical recipes with plenty of screenshots and tips this book will help you build attractive and profitable eCommerce sites.<br /><br />This book starts by showing you how to install and configure your Drupal Commerce store. Once your shop is up and running, you’ll then learn how to customise and optimise it to make it stand out and display your products better.<br /><br />Going further into customisation, you will learn to add custom product types before creating a stylish new Drupal theme for your store. Packed with tips, this book will also help guide you through common problems, as well as optimising and managing your store on a day to day basis.<br /><br />"Building E-commerce Sites with Drupal Commerce Cookbook" will guide you through everything you need to know to get your online store up and running and selling your products, with easy step-by-step guides and screenshots to help walk you through everything.</p>
Table of Contents (17 chapters)
Building E-commerce Sites with Drupal Commerce Cookbook
Credits
Foreword
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Creating products with a file upload field


As you have seen, customizing Drupal Commerce to allow additional fields for your products is relatively straightforward, once you know how. A common feature of websites that sell customized items—from t-shirts to stationery and everything in between—is to allow customers to print their picture or logo on the product, and this recipe covers how to go about achieving this for your Drupal Commerce store.

Getting started

Make sure you're logged in to your Drupal Commerce store as the administrator.

How to do it...

Once you are logged in to your Drupal Commerce store administration panel, follow these steps:

  1. Navigate to Products | Variation types:

  2. From here, you'll be presented with a list of your product types.

  3. Select the manage fields option in the Operations column to the right for the product type to which you wish to add the file upload field. The following example uses the T-shirt product (Machine name t_shirt_product) type:

  4. Towards the end of the list...