TYPO3 4.2 E-Commerce - Adrian Zimmerman - E-Book

TYPO3 4.2 E-Commerce E-Book

Adrian Zimmerman

0,0
31,19 €

-100%
Sammeln Sie Punkte in unserem Gutscheinprogramm und kaufen Sie E-Books und Hörbücher mit bis zu 100% Rabatt.

Mehr erfahren.
Beschreibung

The popularity of online shopping has increased drastically over the past few years. TYPO3 is fully equipped to meet all the challenges of modern electronic commerce. TYPO3 can be enlarged afrom a pure content-based online catalog to a fully-grown shop system with a variety of extensions. It may be easy to plan a website but when it comes to implementing the design and developing a successful e-commerce site, you might come across a lot of difficulties.This book teaches all the aspects of quickly setting up a feature-packed, easy-to-build e-commerce site—from basic installation and configuration of TYPO3 through adding features step-by-step to an example website. It demonstrates the setting up of an online TYPO3 e-commerce site from scratch and walks you through lucrative tips on attracting customers and maximizing profit.This book takes you through the creation of an appealing online shop in steps. It starts with the basics of TYPO3 and TYPO3 installation and shows how to use its standard features to begin construction of an online shop. It will help you improve the selling interface and handling of orders with new modules and other customizations. It discusses various template configurations and plugins. You will learn how to build attractive product catalogs, profiles for registered and unregistered users, and online shop SEO. You will also learn to provide effective search facilities for systematic navigation of your site. Further, various modules for payment and delivery will be discussed. Finally, you will learn how to manage and market your site.

Das E-Book können Sie in Legimi-Apps oder einer beliebigen App lesen, die das folgende Format unterstützen:

EPUB

Seitenzahl: 180

Veröffentlichungsjahr: 2010

Bewertungen
0,0
0
0
0
0
0
Mehr Informationen
Mehr Informationen
Legimi prüft nicht, ob Rezensionen von Nutzern stammen, die den betreffenden Titel tatsächlich gekauft oder gelesen/gehört haben. Wir entfernen aber gefälschte Rezensionen.



Table of Contents

TYPO3 4.2 E-Commerce
Credits
About the Authors
About the Reviewers
Preface
What This Book Covers
Who this book is for
Conventions
Reader Feedback
Customer Support
Errata
Piracy
Questions
1. TYPO3 Installation and Extension Selection
Installation of TYPO3
Installing TYPO3
TYPO3 Install tool
Database access information
Choosing a database
Importing the database
Configuring your TYPO3 installation
Settings at localconf.php file
Installing TYPO3 extensions
Summary
2. Template Configuration
Configuring templates to add design
Types of templates
Template development and integration
TypoScript setup and configuration
Inserting a template using TypoScript
Adding and testing content
Upgrading TYPO3 to a newer version
TYPO3 minor version update
TYPO3 update
Summary
3. Singularity of TYPO3 E-Commerce Plugins
TYPO3 E-Commerce plugins
Payment add-ins
Setting up a PayPal test account
Upgrading to a newer version
Summary
4. Catalogue—Setting Up Online Shop Requirements
Framework and content
Adding products to the online shop
Creating product records
Extra options
Summary

TYPO3 4.2 E-Commerce

Edgars Karlsons

Inese Liberte

TYPO3 4.2 E-Commerce

Copyright © 2010 Packt Publishing

All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.

Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the authors, Packt Publishing, nor its dealers or distributors will be held liable for any damages caused or alleged to be caused directly or indirectly by this book.

Packt Publishing has endeavored to provide trademark information about all the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.

First published: April 2010

Production Reference: 1230410

Published by Packt Publishing Ltd. 32 Lincoln Road Olton Birmingham, B27 6PA, UK.

ISBN 978-1-847198-52-5

www.packtpub.com

Cover Image by Karl Moore (<[email protected]>)

Credits

Authors

Inese Liberte

Edgars Karlsons

Reviewers

Ingo Schmitt

Peter Proll

Simon Browning

Acquisition Editor

Rashmi Phadnis

Development Editor

Neha Patwari

Technical Editor

Ajay Shanker

Copy Editor

Lakshmi Menon

Editorial Team Leader

Akshara Aware

Project Team Leader

Lata Basantani

Project Coordinator

Poorvi Nair

Proofreader

Aaron Nash

Indexer

Rekha Nair

Production Coordinator

Adline Swetha Jesuthas

Cover Work

Adline Swetha Jesuthas

About the Authors

Inese Liberte is an entrepreneur from Latvia with more than 10 years experience in IT. She has been professionally involved in areas such as information processing, data analysis, visual applications, and process management.

Since her studies at the gymnasium, the author has a deep interest in the natural sciences, technologies, IT, and programming. This is reflected in her professional pursuits too. One of her professional experiences was giving lectures on the topic of using MS Office in the fields of economics and accounting. The teaching experience not only gave professional insights, but also revealed the different ways in which people perceive IT, learn, and use it. This experience was relevant for developing various projects, including IT projects, data analysis, and telecommunication projects.

Creativity, communication skills, and positive thinking are among the main characteristics of Inese Liberte. One of her greatest experiences was working with a leading Latvian news portal.

She also writes poetry and many of her poems have been published. In 2006, her book "Dream... Life" was published, which is a collection of more than 40 different stories about people's dreams, ideas, and their realizations.

The knowledge of IT and the creative part of Inese is the basis for entrepreneurial activities where she develops ideas and offers services that are dynamically adjusted to the specific needs of the customers.

Since 2008, Inese Liberte is the co-owner of private enterprise "Netberries", which specializes in developing web pages on the basis of TYPO3 CMS. The company has managed to find its specific approach to clients by both ensuring functionality of a web page and adjusting it to a custom design. There is a positive feedback from the customers about the technical development of the web pages, the maintenance, consulting, and also customer services.

The author's leading notion in the field of technologies is creativity—that it is possible to attach an edge of individuality even to the rigid technological process. Therefore, it is important to dare to experiment and to search for new opportunities.

I would like to express gratitude to my family and friends for supporting me during the writing of this book. Special thanks to Mārtiņš Liberts (IT, "TietoEnator Alise", Latvia) and Reinis Rotkalis (graphic design, "Give Us Work", Latvia).

Also, we would like to say thanks to Packt Publishing for the great chance to write this book, to Poorvi, to our reviewers—Ingo and Simon, and to our editors—Neha Patwari and Rashmi for valuable advice. And many thanks to all our readers—you are the reason we wrote this book.

Edgars Karlson has worked for more than seven years in the field of web development. He started as a freelancer but over the years he has improved his profession in both providing a quality service and also in pursuit of new technological solutions. Along with web solutions, Edgars has worked with web graphics and applications programming.

Along with IT project management, Edgars Karlsons has gained some teaching experience—he has given seminars on using specific technological products, on transmitting packet data, and working with several application programs. He has also gained experience in practical psychology, which is of also great use in the field of IT, when a complicated problem has to be solved.

The management skills of Edgars Karlsons have improved during his career—from leading small interest groups to managing large international IT projects. One of his most important professional notions is high precision.

In 2006, Edgars Karlsons saw the creative potentiality in TYPO3 CMS. This resulted in establishing a private enterprise that specializes in developing web pages basing on TYPO3 CMS.

Netberries Ltd. has been successful for several years; it has developed JSON (JavaScript Object Notation) based applications, custom jQuery scripts, and xHTML/CSS websites. Since 2008, the company has been working with TYPO3 CMS. Netberries installs TYPO3 websites, creates the design, trains the clients, and provides maintenance.

Recently, the company has started development of TYPO3 extensions. There is an in-house team of IT specialists, but outsourcing is also used.

Edgars Karlsons saw writing this book about creating an online shop as a challenge to his skills and knowledge about TYPO3 systems.

This project certainly would not be possible without the official TYPO3 mailing list—thanks for the help! I would like to express gratitude to my family that has supported me throughout my life, thus giving me the opportunity to write this book.

Special thanks to my dog Zhannah who was especially patient and understanding while her master was writing this book and thus was not able to play with her. Likewise, thanks to my friends from Miera street Crew and also to one very special person, who has given me loads of motivation to work hard and strive for success.

About the Reviewers

Ingo Schmitt, was born in 1974, studied Electrical Engineering at the 'Universität Gesamthochschule Duisburg', Germany, learned Pascal, C++, discovered the Web with Netscape 1.0, and started working for Marketing Factory Consulting GmbH, Düsseldorf in 1996. Working with PHP, he developed web-based applications, releasing his first extranet online shop in 1998. As the CTO of Marketing Factory Consulting GmbH, he started working with TYPO3 in 2002, including developing his own extensions. Ingo Schmitt is the founder and main developer of TYPO3 Commerce, TYPO3 Certified Engineer, and 'IHK Prüfer für Fachinformatiker'.

Marketing Factory Consulting GmbH is one of the top TYPO3 Agencies in Germany, developing Web and Portal applications for clients such as Henkel, Ista, Metabo, Wrigley, and Westfalia. Marketing Factory also runs its own websites, such as heimwerker.de (the biggest DIY site in German language), ratgeber.de, and online shops like blumenbutler.de.

Simon Browning is the founder of SeeThrough Web (www.seethroughweb.com), a Toronto, Canada-based web design and hosting company that serves a wide range of clients throughout the small to medium-sized business community, and also provides development services to design and marketing agencies.

With 15 years of information technology experience, including managing the Canadian Information Systems group of a large multi-national, Simon is of the attitude "get it done right, get it done on-time, and keep it simple". This attitude was a guiding factor in the selection of TYPO3 as SeeThrough Web's preferred and recommended content management system. Since 2005, SeeThrough Web has used TYPO3 in over 100 client projects, ranging from small corporate websites to high traffic online portals.

Preface

The popularity of online shopping has increased drastically over the past few years. TYPO3 is fully equipped to meet all the challenges of modern electronic commerce. TYPO3 can be enlarged from a pure content-based online catalog to a fully-grown shop system with a variety of extensions.

It may be easy to plan a website but when it comes to implementing the design and developing a successful e-Commerce site, you might come across a lot of difficulties.

This book teaches all the aspects of quickly setting up a feature-packed, easy-to-build e-Commerce site—from basic installation and configuration of TYPO3, through adding features step-by-step to an example website. It demonstrates the setting up of an online TYPO3 e-Commerce site from scratch and walks you through lucrative tips on attracting customers and maximizing profit.

This book takes you through the creation of an appealing online shop in steps. It starts with the basics of TYPO3 and TYPO3 installation and shows you how to use its standard features to begin construction of an online shop. It will help you improve the selling interface and handling of orders with new modules and other customizations. It discusses various template configurations and plugins. You will learn how to build attractive product catalogs, profiles for registered and unregistered users, and online shop SEO. You will also learn to provide effective search facilities for systematic navigation of your site. Further, various modules for payment and delivery will be discussed. Finally, you will learn how to manage and market your site.

This book is a step-by-step, instruction-packed tutorial that teaches you to build a TYPO3 e-Commerce website through practical examples.

What This Book Covers

Chapter 1, TYPO3 Installation and Extension Selection explains how to install TYPO3 and choose the appropriate extension.

Chapter 2, Template Configuration describes the TYPO3 template configuration. Using TYPO3, you can set up templates in the same way as for statistical HTML web pages.

Chapter 3, Singularity of TYPO3 E-Commerce Plugins describes the TYPO3 e-Commerce plugins you can use to provide a payment possibility in your online shop. Also, we will describe the most popular payments, such as online and offline payments using a card and the PayPal system, which is the most popular form of payment at the moment.

Chapter 4, Catalogue - Setting Up Online Shop Requirements describes the requirements for setting up an online shop, explaining how to set up a catalogue of products, how to prepare product-descriptive information (images and textual information), and how to organize the structure of the catalogue.

Chapter 5, Shop Users - Profiles for Unregistered and Registered Users describes the organization of unregistered and registered users, and how to add features for advanced users' options.

Chapter 6, Navigation Inside the Online Shop and Content Search describes navigation and searching possibilities inside shop content. This chapter also describes how to organize common, supplementary, and linked content navigation.

Chapter 7, Ordering Organization - Modules of Payment and Delivery describes how to add modules of payment and delivery for ordering and buying products.

Chapter 8, Administrative Interface in TYPO3 describes the possibilities of administrating shop content using the administrative interface in TYPO3 backend.

Chapter 9, Online Shop SEO Development describes online shop web page optimization corresponding to SEO requirements, and explains how to increase web presence on search engines.

Chapter 10, Managing and Marketing Your Site describes the most important aspects for managing and marketing the site.

Who this book is for

If you want to create a captivating online shop using TYPO3 and optimize your profit, this book is for you. Some knowledge of TYPO3, PHP, and TypoScript is required.

Conventions

In this book, you will find a number of styles of text that distinguish between different kinds of information. Here are some examples of these styles, and an explanation of their meaning.

Code words in text are shown as follows: "We can include other contexts through the use of the include directive."

A block of code will be set as follows:

<div class="menu">###MENU###</div> <div class="left-col">###LEFTCOL###</div> <div class="main-cont">###MAINCONT###</div> <div class="footer">###FOOTER###</div>

New terms and important words are introduced in a bold-type font. Words that you see on the screen, in menus or dialog boxes for example, appear in our text like this: "clicking the Next button moves you to the next screen".

Note

Warnings or important notes appear in a box like this.

Note

Tips and tricks appear like this.

Reader Feedback

Feedback from our readers is always welcome. Let us know what you think about this book, what you liked or may have disliked. Reader feedback is important for us to develop titles that you really get the most out of.

To send us general feedback, simply drop an email to <[email protected]>, making sure to mention the book title in the subject of your message.

If there is a book that you need and would like to see us publish, please send us a note in the SUGGEST A TITLE form on www.packtpub.com or email <[email protected]>.

If there is a topic that you have expertise in and you are interested in either writing or contributing to a book, see our author guide on www.packtpub.com/authors.

Customer Support

Now that you are the proud owner of a Packt book, we have a number of things to help you to get the most from your purchase.

Errata

Although we have taken every care to ensure the accuracy of our contents, mistakes do happen. If you find a mistake in one of our books—maybe a mistake in text or code—we would be grateful if you would report this to us. By doing this you can save other readers from frustration, and help to improve subsequent versions of this book. If you find any errata, report them by visiting http://www.packtpub.com/support, selecting your book, clicking on the let us know link, and entering the details of your errata. Once your errata are verified, your submission will be accepted and the errata added to the list of existing errata. The existing errata can be viewed by selecting your title from http://www.packtpub.com/support.

Piracy

Piracy of copyright material on the Internet is an ongoing problem across all media. At Packt, we take the protection of our copyright and licenses very seriously. If you come across any illegal copies of our works in any form on the Internet, please provide the location address or website name immediately so we can pursue a remedy.

Please contact us at <[email protected]> with a link to the suspected pirated material.

We appreciate your help in protecting our authors, and our ability to bring you valuable content.

Questions

You can contact us at <[email protected]> if you are having a problem with some aspect of the book, and we will do our best to address it.

Chapter 1. TYPO3 Installation and Extension Selection

TYPO3 is one of the most functional and powerful content management systems (CMS). Offering both functionality and expansiveness, TYPO3 is a relevant competitor for commercial solutions. Considering that there are thousands of extensions available at the moment ("plugins" are called extensions in the TYPO3 community), this chapter explains how to install TYPO3 and choose the appropriate extension. The topics covered here include:

Ways to install TYPO3Extension installation

By the end of this chapter, you will have installed TYPO3 for a particular domain.

Installation of TYPO3

TYPO3 is developed and is in use as GNU General Public License (a free, copyleft license for non-profit and commercial homepages). This software was created in 1997 and is still being supplemented with new functions. The basic server requirements are:

A web server with Apache (recommended)—Apache (under Linux, Windows, Unix platforms) or IIS (under Windows platform)PHP—TYPO3 version 4.2 onwards; you need a PHP 5.2 or higherMySQL database

These server extras are also recommended:

GraphicsMagick (standalone). ImageMagick will work too.GDlib/Freetype (compiled with PHP).zlib (compiled with PHP).Apache with mod_gzip/mod_rewrite.A PHP-cache (for example, PHP-accelerator/Zend Accelerator, Unix only).

There are a few basic steps to start your first TYPO3-driven shop:

First, you need a copy of TYPO3. In this example, we used the dummy and core package that is needed for a new installation. You can get your free copy at http://typo3.org/download.

Note

If you prefer using the SSH/Shell Access (especially in a Unix server), we recommend downloading the *.tgz package. This package contains symbolic links (symlinks). If you use a Unix server with the ability to create symlinks, download the *.tgz package.

You will find detailed information about TYPO3 installation on different servers at TYPO3Wiki: http://wiki.typo3.org/index.php/TYPO3_Installation_Basics

Choose one of the installer packages if you don't have a web server, or choose the zip or tar.gz packages option if you do have a web server.Unzip the copy of TYPO3 with a decompressing software such as WinZip, WinRar, or 7Zip—the choice is up to you.Upload a copy of TYPO3 to your FTP web space with the accordant FTP software. To start the installation you need to add an extra file—the ENABLE_INSTALL_TOOL. You have to create this file independently. For example, you could create the file ENABLE_INSTALL_TOOL.txt and upload this file to your TYPO3 installation folder /TYPO3-ROOT-FOLDER/typo3conf. Then, delete the file extension *.txt.

Note

To be safe, we recommend FileZilla and the SFTP mode if possible.

Base requirements for different operational systems and installation in different operational systems' environments are described on the TYPO3Wiki page: http://wiki.typo3.org/index.php/TYPO3_Installation_Basics. You could also go to the TYPO3 homepage: http://typo3.org/documentation/document-library/extension-manuals/doc_basicinstall/current/.

You can run the TYPO3 Install tool now.

Installing TYPO3

In the following section, we cover the installation of TYPO3 using the TYPO3 Install tool.

TYPO3 Install tool

You can use the 1-2-3 Install tool, which has three simple steps, to install TYPO3 on your hosting server.

To access the TYPO3 Install tool, open your web page: http://[yoursitename.com]/index.php and you will be redirected to the TYPO3 1-2-3 install script that provides an easy setup of TYPO3.

The default password is joh316. It is recommended that you change this password after the installation is complete. The following is a screenshot of the installation start-up:

The TYPO3 1-2-3 Install tool allows you, in three simple steps, to connect to the MySQL database and import the default tables from the database dump file. You can choose to create a new database and add tables to the main database. There were 36 tables in our installation for version 4.2.8.

Database access information

Using a hosting service can often lead to a situation where you need to create a database independently using the Control Panel tools. For example, if you use cPanel for creating a new database, you need to:

Authorize in Control Panel.Go to the section Databases and select MySQL Databases.Enter the name of the new database.Click on the Create Database button.

If you create a database this way, you should add the previously created user account to this database. If you choose to create the database and user account together, you have to select the function MySQL Database Wizard from the section Databases. This wizard contains the following steps:

Step 1: Create a Database (enter the database name). Step 2: Create Database user (enter username and password for user). Step 3: Add user to the Database (enable/disable user database privileges such as insert, edit, delete, and drop, among others). We recommend choosing All privileges in the checkbox for normal TYPO3 installation. Step 4: Complete the task. After these four steps, you can choose to return to the first page of admin tool, create another database, or create additional user accounts for the database.

This is Step 1 in the TYPO3 installation. Write the database access information in the respective fields—username and password. After this, approve the information and move onto the next step:

Here, enter the username and password to access your database:

Username—given usernamePassword—given passwordHost—often"localhost"

Choosing a database

This is Step 2 in the installation of TYPO3. With this step, you can choose the existent database or create a new one (recommended). Usually, hosting service providers offer already created databases wherein you won't have permissions to create a new one.

It is different if you use a website hosting service that allows managing your web space or if you are the web server administrator; then, you may be able to create a new database through the TYPO3 Install script.

Select an existing database or create a new one for the TYPO3 installation.

Importing the database

This is Step 3 in the installation of TYPO3. Import the database SQL file by pressing the Import database button.

After these three steps, you are done with TYPO3's basic installation.

For a complete installation, you should continue with the configuration—also called Normal mode, which secures additional options for TYPO3's complete functionality. Here you can continue page configuration, providing the preferred page operations. Using the section Basic Configuration, you can activate and set up the following:

ImageMagick or GraphicsMagick: for processing images (for TYPO3 image resizing, cropping, and special effects). If you choose ImageMagick, specify its location on the web server (in case ImageMagick is installed in the "non standard" folder and TYPO3 can't find it).GDLib: options for text processing and converting it to an image.TTF font size: 72 or 96 (look at the generated image—if it fits the box, you can leave it at size 72, or you can set it to 96).Format of image generation: take note that the *.png format files are more qualitative than the *.gif files. The maximum color scale of a *.gif file's is only 256 colors.

Configuring your TYPO3 installation

To switch to Normal mode, click on the link at the bottom of the TYPO3 Install tool. You will be able to configure the content management system in detail in the Normal mode. The following screenshot shows the configuration of TYPO3 settings:

We adjusted only a few points in our example that are related to image processing using GDLib and ImageMagick.

You can access Basic Configuration, All Configuration, and other useful, extra functions from here.

You can check your TYPO3 installation with basic settings at the section Basic Configuration:

Do directories have enough rights to write/read content from them? If not, you should CHMOD them in the command line (in Unix systems) or by using the chosen FTP software. You can set up marketable Install tool values. For maximum safety of your installation, please read the security actions described in the TYPO3 Security Cookbook. You can find information about this book at the TYPO3 homepage: http://typo3.org/teams/security/resources/.php.ini configuration check: usually, you will not be able to edit this file if you're not the administrator of the hosting space.

If your hosting administrator has granted access to some php.ini settings, you can overwrite some functions with the .htaccess file. For example, you can set the 'memory_limit', if it isn't enough, in your .htaccess file by adding an extra line:

php_value memory_limit 64M
GDLib and FreeType check: if there is a GDLib installed on your server and also format support check for GIF and PNG.ImageMagick check: checks the available installation of IM on your server. If the Install tool doesn't find it, it doesn't mean that you don't have it. We set the full path to IM by ourselves in our example.Basic database check: connection settings and credentials.Write configuration to localconf.php: add the needed values for site configuration and press the Update localconf.php button. Also, here you can make changes to some configuration flags. For example, give a name to your site. We called our example Berries Shop. The following screenshot shows the basic configuration: