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

13. Add Boxes Dedicated to Specified Countries


This recipe is highly useful for displaying focused information to customers from a particular country. There is no need to bug customers from a different country about "free shipping over a certain amount" if they are not eligible for it; of course, you will have this information on your shipping page for everyone to view, just not as a box popping up annoyingly in their face.

Presentation

This Free Shipping! box will only show with a logged in customer from a particular country (we will use USA in our recipe). It is linked to the shipping.php page.

American Cheddar, French Brie, or Swiss Emmental, let's cheese it up!

Ingredients

Note

New:

catalog/includes/boxes/information_usa_only.php

Modified:

catalog/includes/languages/english.php catalog/includes/column_right.php

Cooking

  1. 1. In Administration | Modules | Order Total, click on Shipping, and edit the shipping module, so you offer free shipping for national orders only.

  1. 2. Add the following...