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

66. Display Full Information for Customer, Delivery, and Billing Addresses at a Glance


Default osCommerce doesn't offer a search function to search within the customers' addresses (either the address used to sign up, or the one for delivery, or the billing address). This recipe adds an address-driven search to your Orders page and allows you to view these three addresses at a glance.

Presentation

The following screenshot shows Administration | Customers | Orders with the new search option for address data and all address information displayed for a selected order row:

Brisket, Corned, and Jerky… all at hand!

Ingredients

Note

Modified:

catalog/admin/orders.php

catalog/admin/includes/languages/english/orders.php

Cooking

  1. 1. Open catalog/admin/orders.php and find this in line 91:

include(DIR_WS_CLASSES . 'order.php');
  • Here you will process the new address-search field to find the orders that use the search keyword in one of the order address fields. Replace it with the following code:...