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

Using Google Fonts with your Drupal Commerce theme


The Web used to be very restricted in its typography, but with the advent of @font-face, web designers have more choice than ever before. Now that you're not stuck with the likes of Arial and Helvetica, you can truly customize your store's appearance to match your branding.

This recipe will take you through using a web font from Google Font in to your Drupal Commerce theme.

Getting started

Visit Google Fonts at http://www.google.com/fonts and select the font you wish to use. You will need the URL of the particular font variations you will be using, which will look something like the following:

http://fonts.googleapis.com/css?family=PT+Sans

How to do it...

Once you have the font in mind you wish to use in your Drupal Commerce, follow these steps:

  1. Open your theme's CSS file; if you have used the example theme we used earlier in this chapter, this will be the defacto.css file in the /sites/all/themes directory of your Drupal installation.

  2. At the top...