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

Filtering UK postcodes or US ZIP codes from your Drupal Commerce store


There are certain types of store that may find it helpful to restrict the ability to order from particular regions of a country. This may be due to prohibitive delivery costs or different laws between states.

Drupal Commerce has a module that enables you to block orders either by a whitelist or blacklist of postcodes (for the UK) or ZIP codes (for the US). This recipe will take you through configuring the Commerce Postal Code Filter module to achieve this goal.

Getting started

Log in to your Drupal Commerce store administration panel. Download the Commerce Postal Code Filter module from Drupal.org at http://drupal.org/project/commerce_postal_code_filter.

How to do it...

To enable the filtering, you will need to install the module and configure it for your needs:

  1. Install the Commerce Postal Code Filter module in your Drupal Commerce store and navigate to Modules.

  2. Enable the module by checking the box. You will find it grouped...