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)

Managing affiliates (Simple)


Affiliate marketing is a very effective online marketing strategy. Simply put, people who have blogs or e-mail lists will advertise our products with their special tracking IDs and earn commissions whenever a sale is made through their links. Let's learn how to manage affiliates, commission rates, and sales.

How to do it...

Let's learn how to manage the affiliate system for our shop and disable it when we don't need it.

Managing affiliates

  1. People who are interested in joining our affiliate program will use the special link http://yourwebsite.com/index.php?route=affiliate/login mentioned at the base of the page.

  2. After they register for our affiliate program, we will need to approve them. For this purpose, we will use the page under Sales | Affiliates.

  3. After approval, the affiliate will get a notification e-mail. The person can now log in to the system and generate the links for products using his/her account menu located at http://yourwebsite.com/index.php?route=affiliate/tracking.

  4. We need to be sure that the commission rate and payment type for each affiliate is accurate. We can edit the affiliates using the Payment Details tab under Sales | Affiliates:

Disabling affiliate system

It is quite possible that an online shop owner won't use the affiliate system. By default, the affiliate system is enabled on OpenCart. In the current version, there is no administrative setting to deactivate/activate it. Still, we can disable it by removing the affiliate link from the base of the page and redirecting the affiliate login page to the main page. Here is how it is done.

  1. Let's edit the footer.tpl file located at catalog/view/theme/default/template/common and remove the following line:

    <li><a href="<?php echo $affiliate; ?>"><?php echo $text_affiliate; ?></a></li>
  2. Let's open the login.tpl file located at catalog/view/theme/default/template/affiliate.

  3. Let's add the following code at the top of the page:

    <?php header( 'Location: index.php?route=common/home' ) ; ?>
  4. Now all requests to the affiliate login page will be redirected to the main page.

Note

The default commission rate can be set for a store using the Option tab under System | Settings.