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

Embedding videos on Drupal Commerce products


With the growing uptake of higher bandwidth Internet connections throughout the world, video is becoming increasingly accessible as a means of displaying your products.

Adding a video of your products to your website can be a great way of showing your product to customers from more angles, as well as giving you a chance to provide narration about the features and benefits of your products.

Getting started

Log in to your Drupal Commerce store's administration panel.

How to do it...

Now that you are logged in to Drupal Commerce as an administrator, perform the following steps:

  1. Navigate to Products | Manage products.

  2. Click on the edit link in the Operations column of the product that you want to add the video to:

  3. Now that you're editing the product, you will see the Body field that contains the description of the product.

  4. Navigate to www.youtube.com (or other video sharing website) and locate the video of your product that you want to embed.

    Note

    You'll need a YouTube account to upload videos, but don't worry, it's free to sign up.

  5. Navigate to the Share tab on YouTube.com, and then select the Embed tab to reveal the HTML to embed this video:

  6. The HTML will look similar to the following:

    <iframe width="420" height="315" src="http://www.youtube.com/embed/895eSm4oQRw" frameborder="0" allowfullscreen></iframe>
  7. Return to your Drupal Commerce administration panel, and insert this HTML into your page where you want the video to appear:

  8. Finally, click on the Save button at the bottom of this screen ensuring that full HTML is allowed to be posted within your product display's Body fields, and return to your store's frontend to view the product as a customer would see it.

How it works...

You can use videos that you have uploaded to video sharing websites such as YouTube on your website by embedding them with the code that YouTube provides on its Share tab.

Note

Note that you'll only be able to embed videos that aren't protected on YouTube.

Video can be a great way to demonstrate your product to potential customers and give them a better understanding of what they can expect from their purchase.