Creating Content

Creating content in Drupal is really straightforward. Once logged in, there is an option on the main menu to Create content as shown The Create content screen lists all of the different types of content that we can create the list is dynamically based on the installed modules. By default we only have the Page and Story options available however as we have installed the e-Commerce module in Chapter 1 we also have the option to add products. Future version notice This has been changed in...

Creating a Shippable Product

The sample Shippable Product we discussed in Chapter 3 Planning Your Shop was a T-Rex model, so let's add it to our store We should start by typing in the products Name and Description (both of which are mandatory fields) Our 1 meter scale model of T-Rex (model TR15) is bound to scare anyone, especially with its new motion sensor, which sets off a lifelike This model Is a must-have for any model dinosaur lover it is made of durable, shock resistant plastic complete with fantastic hand-painted...

Creating a Non Shippable Product

In this section let's make two types of non-shippable products Repair service For repairs on damage to models. Education information sheets Information booklets, which can be downloaded on purchase. This requires a few extra modules to be installed. The repair service product is just a standard Non-Shippable Product from the list of product types. The options available for a Non-Shippable Product are nearly identical to those in a Shippable Product with the following exceptions No inventory...

Picture Says a Thousand Words

Further down the line we will add photographs to our product listings. Here are some advice and tips to consider when taking photographs, which will help take great pictures for your store. _ These tips were provided courtesy of award-winning photographer T Martin Baker who has a website dedicated to photography and image I engineering The camera and support equipment we use are very important. We don't particularly need an expensive camera, but the following features really A camera with a...

Downloading the Module

The e-Commerce module's website is located at http drupal.org project ecommerce and the download link for the module is near the bottom of the page. We want to download the file for 5.x-3.3 or a newer version if available. Official Official We also need another module, called the Token module. The e-Commerce module depends upon this module, so let's download that from its project page http drupal.org project token. We want the version for Drupal 5.x, which is version 1.8 or newer version 1.9...

Index

Advert space, buying 222 automatic directories 224 directories 224 directories, types 224 free directories 224 newsletters 224 paid directories 224 PPC advertising networks 223 PPC advertising networks, working 223 product search 224 professional advertising networks 223 professional advertising networks, links 223 image, listing as attachment 139 images, embedding into description 139 CAPTCHA module about 177 challenges 178 image challenge 178 math challenge 178 setting up 179, 180 text...

Template Files

These are the default template files with a theme Block within a sidebar block.tpl.php Generic container for the main area of the site box.tpl.php Comment theme comment.tpl.php These files can then be edited with our favorite text editor and we can import our design into the template files. We now need to examine each of these files and transfer our HTML template to these, and replace the CSS file with the one from our template. If we start with the page.tpl.php file we can get a basic design...

Securing Deploying and Maintaining Your Shop

Our store is now fully working and can handle taxes, payment, and shipping let's now look at securing, deploying, and maintaining our store. If we are working on our store on our own computer and not online, a few things could not work correctly such as the pingback requests from PayPal so we will have to make a few changes. Password and phishing security Handling orders although we will look at it in more detail in Chapter 11 Invoices and CRM Backing up and restoring your store We need to...

Roles and Permissions

On their own, users have no permissions instead permissions are grouped into Roles, which are then assigned to users. All registered users who log in, automatically receive permissions from the authenticated user role which is available by default combined with additional roles that we decide to assign to them users who are not logged in or are first time users are considered anonymous. The two default roles available are These roles can be edited but they cannot be renamed nor can they be...

Customer Roles

Doug wants a couple of different roles for his customers The general roles won't provide any real extra features, but will be used to classify customers. However, customers can purchase a special support plan, which provides them access to additional areas of the site. The support plan customer role will allow users to see a number of extra pages and features, which other users will not be able to see. This is a support resource that Doug wants to provide to customers Support section Provides...

Grouping the Products

Doug wants to have a special offer on his T-Rex model and also its service plan with a 15 saving on buying both together. To create the parcel, go to the Create content menu, select Products and then Collection of Products. The options on this screen are almost the same as a Non-Shippable Product no inventory control or availability estimates because they depend upon the individual products within the package but it has a field for the list of all products. The ID numbers are the ID numbers...

Product Information

The product information page contains more information on the product as defined by our use of the lt --break-- gt line in our description additionally we can add the product to our shopping cart from this page. T-Rex with sound effects 1m Edit Tife, 02 12 200B - 07 57 Michael Ourl meter scale model of T-Rex modet TR15 Is bound to scare anyone, especially with its new motion sensor, which sets off a lifelike 'Roar1. This model is a must-have for any model dinosaur lover it is made of durable,...

Bulk Purchases

The Quantity Discount module is a third-party add on, which can be downloaded from let's download and install the module before setting it up. Sets price discounts based on purchased quantity. Once it is installed we have a new option under E-Commerce configuration called Quantity discount, within this we can define up to 15 discount rules, each containing up to six conditions for discount. For each discount rule we can set Up to six conditions, each consisting of Operator either percentage or...

Permissions and Taxonomy Access Control

The default permissions that can be applied to roles are quite limited in the overall context of a website, and focus primarily on access control features of the site, whereas when it comes to customers we may prefer to provide them access to special areas of the site. To do this we need Taxonomy Access Control. Taxonomy Access Control is not available by default, so we would need to install the Taxonomy Access Control module, which can be downloaded from Once downloaded and uploaded to our...

How to Customize the Checkout Process

A number of parts of the checkout process can be customized including The order of some of the checkout screens Payment methods available looked at in detail in Chapter 8 Creating a Better Selling Experience How the payment method works The emails sent to the customer Global anonymous purchase policy Whether or not the site administrator is notified about transactions Overview text for a user's order history How a user adds a product to their shopping cart Continuing shopping after adding a...

Installing WAMP

In order to install Drupal e-Commerce on our own computer, we need a development environment in which to run it, including Various PHP and web server libraries to utilize additional features WampServer is a package providing all of these, and more, for Microsoft Windows systems. Now we know what we need to install, let's get started Firstly, we need to download the software from the Internet. WampServer is available at from here we click the DOWNLOAD WampServer 2.0 link, which then takes us to...

Error Reporting

The Error reporting settings are for two main purposes Which pages to display if a page does not exist or the user is not permitted access to the page How to handle technical Drupal, PHP and MySQL error messages The error page settings are shown This page is displayed i-ihen the requested docurnent is denied tp the currant user. If unsure, specify nothing This page is displayed vnher no other concent matches Che requested document. If unsure, specify nothing. If a user is not authorized to view...

Invoices and CRM

Our Drupal e-Commerce store is fully functioning and running live on the Internet, and we have secured it and looked into how to keep our store maintained as well as how to manage orders and transactions. Let's now look at generating invoices and reports for our store. In this chapter you will learn How to customize the layout of these invoices How to create and manage invoices using the invoices module How to install CiviCRM, and integrate it with our Drupal installation Within Drupal...

Checkout Screen Order

With the modules we have currently installed, the order of the following pages can be configured Anonymous user page where the user enters their email address or logs in These settings are under E-Commerce Configuration in the Screen order page. For practical reasons, however, the ec_anon and cart pages are restricted to being the first and last page respectively. This is because if the user is not logged in we first need to either get their details or ask them to login, and the cart itself...

Configuring the Payment Gateway

Now let's set up and configure our store for the PayPal payment gateway, then let's have a brief look at the configuration involved in the other gateways. This assumes we have already set up an account with our payment I gateway and set up the account so that we can receive money. To configure our store to use PayPal we need to go into the PayPal section within the E-Commerce configuration section in the Administer menu. Configuration for the PayPal payment gateway This section provides us with...