Book Image

Deep Inside osCommerce: The Cookbook

By : Monika Mathe
Book Image

Deep Inside osCommerce: The Cookbook

By: Monika Mathe

Overview of this book

osCommerce has been around since March 2000. At present there are over 10,000 live, registered osCommerce sites, and about 100,000 registered community members. Apart from providing ready-made solutions to problems, as well as a huge repository of information, the osCommerce community is a living entity with which we can all interact. With the rising success and popularity of this remarkable piece of software, things can only get better.
Table of Contents (17 chapters)
Deep Inside osCommerce: The Cookbook
Credits
Foreword
About the Author
About the Reviewers
Introduction

43. Add the Option to Donate during Checkout


If your shop is a part of a non-profit organization, such as a church, or if you take donations for any other reason, say for great help in some forums, you will be delighted to find this recipe that allows your customers to add any amount of donation just before choosing a payment gateway.

Presentation

Your Checkout Payment page will look like this with a Donation module added above the payment choices:

Further, your Checkout Confirmation page will look like this, specifying the donation amount in the totals section as well as in a prominent extra box:

The hostess always deserves recognition!

Ingredients

Note

New:

catalog/includes/modules/order_total/ot_donation.php

catalog/includes/languages/english/modules/order_total/ ot_donation.php

catalog/images/icons/donation.gifcatalog/includes/ modules/donation.php

Modified:

catalog/includes/classes/order_total.php

catalog/checkout_payment.php

catalog/checkout_confirmation.php

catalog/checkout_process...