Book Image

Instant E-commerce with OpenCart: Build a Shop

By : Murat Yilmaz
Book Image

Instant E-commerce with OpenCart: Build a Shop

By: Murat Yilmaz

Overview of this book

<p>For years, starting an e-commerce shop was considered a hard task with the need of a significant amount of money, time, and resources. OpenCart makes this process easier and enables anyone to create an attractive and profitable e-commerce solution. This concise guide will show you how to create a robust and striking online store with OpenCart.</p> <p>"Instant E-Commerce with OpenCart: Build a Shop" teaches you how to build your own online shop with step-by-step, easy-to-follow instructions. You will learn how to install, configure, and customize your own shop in order to create an attractive and fully functional store in no time. If you have always wanted to create an online shop, but don’t know how, then this book is for you!</p> <p>In "Instant E-Commerce with OpenCart: Build a Shop", you will be taken through the required steps to create an awesome e-commerce solution. This book starts by showing you how to correctly set up and install OpenCart, before moving on to creating products and their attributes.</p> <p>If the world of payment gateways and shipping options sounds complicated, don’t worry. This guide will take you through the essentials required to set up and manage how your customers are going to pay for and receive their orders! Finishing with vouchers, templates, and SEO, this book will ensure you end up with a powerful, attractive, and profitable online store.</p>
Table of Contents (7 chapters)

Installation (Simple)


We will learn how to install a default OpenCart shop correctly.

Getting ready

First of all, we will need a domain to run our online shop. GoDaddy.com is the most popular registrar to buy a domain name if you don't have one. To be able to install OpenCart, we will also need to find a web hosting service that needs to be fully supported by all of the components on the following technical checklist: Apache Server, PHP 5.2 (minimum), MySQL, cURL, Fsock, and the cPanel administration tool.

How to do it...

  1. Let's download the latest OpenCart version on our computer using the following link (at the time of writing this book, the latest OpenCart version was v1.5.4.1):

    http://www.opencart.com/index.php?route=download/download

  2. Let's log in to the cPanel administration tool. It is usually located at http://yourwebsite.com/cpanel.

  3. Let's open File manager under the File section and click on the Web Root option. We will click on the Upload button situated at the top and choose our installation ZIP file.

  4. After the uploading process is completed, we will extract the contents to the folder shown in the following screenshot:

  5. We will navigate to the upload folder. The next step is to select all the files and move them to the root folder. Here is how this is done:

  6. We will configure the database settings by creating a database and a user, and we will then connect the user to the database.

  7. In cPanel, click on MySQL Database Wizard. It will ask you to provide a database name.

  8. Now, we need to provide a database username with the password. Let's make sure we generate a strong password with the help of the password generator. Take note of the password. We will need it later. The final step is to provide all the privileges to our user for the database. For this, select the ALL PRIVILEGES checkbox and then click on the Make Changes button to complete the process.

  9. Now let's browse to http://yourwebsite.com/install.

  10. We will accept the public license agreement and click on Continue. The next page deals with essential system checks. If there are no errors, we will go on to the database settings page. We will fill in the information that we had already provided during database creation:

  11. The installation ends here. But now we will delete the install folder using cPanel, for security reasons.