Book Image

Building Online Stores with osCommerce: Beginner Edition

By : David Mercer
Book Image

Building Online Stores with osCommerce: Beginner Edition

By: David Mercer

Overview of this book

Using an easy-to-read and engaging style, this book introduces the fundamentals of osCommerce, and helps you build your first online store. It covers the out-of-the-box features of osCommerce, but it also shows you how to customize the application to your own needs. The book starts with the basics of downloading and installing osCommerce, or simply how to enable it on your Internet domain using the tools provided by your host. All of the most important configuration issues are explained, with clear instructions and advice to help you make the right choices. Once osCommerce is installed and configured, you will take a good look at how to work with your store's data including product information as well as other data which is responsible for keeping your site healthy. The all important topic of customization is also dealt with comprehensively. You will see how to develop attractive sites that will make your store a pleasure to browse and your products a pleasure to buy! Of course, no discussion on osCommerce would be complete without a look at how to obtain and treat payments. Using the modules provided with osCommerce you will be collecting money from your happy customers in no time! Once the reader has a fully fledged, and operational site it is time to look at deployment? an important topic for discussion if development has taken place on a development machine. The appendix will add a few tools to your armory and shed some light as to what is going on behind the scenes in case things go awry.
Table of Contents (13 chapters)

Introduction

The modern day entrepreneur, or indeed a business of any kind, small or large, can scarcely do without some form of presence on the Web. The pervasiveness of the Internet has brought about a new reality for business people. No longer is it sufficient to set up shop somewhere and sit quietly waiting for customers. Instead, the initiative must be taken with goods and services being marketed and sold online, reaching hitherto unheard of sizes of consumer markets, nationally and internationally.

With the added burden of the acquisition of IT skills, many small to medium-size enterprises have found themselves being outstripped by their larger cousins, who have the resources and manpower to harness and utilize the Internet properly. Prohibitively expensive development costs or ill-fitting off-the-shelf applications have hampered SME’s ability to compete on an even footing. Up until now that is!

With the advent of osCommerce and other open-source technologies like it, the door has been opened for anyone with a bit of determination to set up a sophisticated online store that will hold its own against any other site out there. It’s not surprising that osCommerce is growing in popularity as more and more people switch to the advantages of building and running their very own e-commerce website.

Unfortunately, while running and administering your own site is now within your grasp, you will find that you still have to work at it. There is a lot of information you need to learn about installing, configuring, customizing, securing and running osCommerce, and indeed the technologies you will be basing your business on. You can also benefit from some general wisdom and knowledge that programmers apply to their everyday work. Providing you with this knowledge is why I have written this book!

What This Book Covers

Chapter 1 introduces us to e-commerce and osCommerce and then provides an overview of the osCommerce community. Knowing how to use this excellent resource ensures you take full advantage of the entire osCommerce package, and not just the free software.

Chapter 2 covers setup and installation topics, which includes a discussion on what you should look for in an Internet servcice provider and how to make use of FTP to upload files, amongst other things. A troubleshooting section is also included and once this chapter is finished you should have a working osCommerce site up and running.

Chapter 3 deals with the most common configuration settings that you will need to familiarize yourself with and provides a basic grounding in the use of the administration tool.

Chapter 4 gets right to the heart of the matter with an in-depth look at data in osCommerce. Here you will learn not only how to add and remove products and manufacturers as well as administer orders and customers, but also how to properly design your category/product hierarchy.

Chapter 5 is where the standard look and feel of osCommerce gets a face-lift. After reading this, you will have a sound knowledge of the presentation related features of osCommerce. Additionally, we will discuss the all important topics of stylesheet modification, images, and language and show how to deal with them effectively. Get ready to get your hands dirty as there is plenty of work in here.

Chapter 6 takes you one step closer to running an online business by comprehensively dealing with taxes, payments, and shipping. Strategies for implementing various policies pertaining to money matters are also scrutinized and by the end of this chapter, you will be well versed in your site’s money matters.

Chapter 7 is arguably the most important of all. The integrity of your e-commerce site (and for many of you, your livelihood) rests on how well you can implement security and disaster recovery policies. Follow along here to learn how to gain a peaceful night’s sleep, safe in the knowledge that your precious business is safe. It also introduces you to some important tools, which will no doubt make your life a lot easier in the time to come. As well as this, it takes a more lighthearted look at some neat tricks and how to make a few nice touch additions.

Appendix A provides you with a look at various methods, which can be used to effectively deal with problems and errors. Having a programmer’s perspective and embracing a sound methodology will save you countless hours and frustration and is applicable to a wide range of software, not just osCommerce.

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.

There are three styles for code. 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:

if (substr(basename($PHP_SELF), 0, 8) != ‘checkout’) {
include(DIR_WS_BOXES . ‘languages.php’);

include(DIR_WS_BOXES . ‘currencies.php’);
}

When we wish to draw your attention to a particular part of a code block, the relevant lines or items will be made bold:

[if (substr(basename($PHP_SELF), 0, 8) != ‘checkout’) {
// include(DIR_WS_BOXES . ‘languages.php’);
include(DIR_WS_BOXES . ‘currencies.php’);
}

Any command-line input and output is written as follows:

mysql> insert into user values (
-> ‘localhost’,
-> ‘oscommerce’,
-> Password(‘password’),
-> ‘Y’,’Y’,’Y’,’Y’,’Y’,’Y’,’Y’,
-> ‘N’,’N’, ‘N’,’N’, ‘N’,’N’, ‘N’,’N’, ‘N’,’N’, ‘N’,
-> ‘N’,’N’, ‘N’,’N’, ‘N’,’N’, ‘N’,’N’, ‘N’,’N’);

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

Tips, suggestions, or important notes appear in a box 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, 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 http://www.packtpub.com or email.

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 Submit Errata link, and entering the details of your errata. Once your errata have been 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.

Questions

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